mirror of
https://github.com/citra-emu/citra.git
synced 2024-11-26 07:30:06 +00:00
GPU: Corrected the 24 bit memory fills component order
This commit is contained in:
parent
93e32bce72
commit
a762f9c176
@ -81,9 +81,9 @@ inline void Write(u32 addr, const T data) {
|
|||||||
if (config.fill_24bit) {
|
if (config.fill_24bit) {
|
||||||
// fill with 24-bit values
|
// fill with 24-bit values
|
||||||
for (u8* ptr = start; ptr < end; ptr += 3) {
|
for (u8* ptr = start; ptr < end; ptr += 3) {
|
||||||
ptr[0] = config.value_24bit_b;
|
ptr[0] = config.value_24bit_r;
|
||||||
ptr[1] = config.value_24bit_g;
|
ptr[1] = config.value_24bit_g;
|
||||||
ptr[2] = config.value_24bit_r;
|
ptr[2] = config.value_24bit_b;
|
||||||
}
|
}
|
||||||
} else if (config.fill_32bit) {
|
} else if (config.fill_32bit) {
|
||||||
// fill with 32-bit values
|
// fill with 32-bit values
|
||||||
|
@ -100,10 +100,10 @@ struct Regs {
|
|||||||
// Set to 1 upon completion.
|
// Set to 1 upon completion.
|
||||||
BitField<0, 1, u32> finished;
|
BitField<0, 1, u32> finished;
|
||||||
|
|
||||||
// 0: fill with 16- or 32-bit wide values; 1: fill with 24-bit wide values
|
// If both of these bits are unset, then it will fill the memory with a 16 bit value
|
||||||
|
// 1: fill with 24-bit wide values
|
||||||
BitField<8, 1, u32> fill_24bit;
|
BitField<8, 1, u32> fill_24bit;
|
||||||
|
// 1: fill with 32-bit wide values
|
||||||
// 0: fill with 16-bit wide values; 1: fill with 32-bit wide values
|
|
||||||
BitField<9, 1, u32> fill_32bit;
|
BitField<9, 1, u32> fill_32bit;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user