summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorSubv <subv2112@gmail.com>2015-03-09 03:31:15 +0100
committerSubv <subv2112@gmail.com>2015-03-10 02:13:21 +0100
commit1248e291f0c9a29734b0f5175df8fa675cce930c (patch)
tree18218cbe496e5a2f42022a5e6741fa0665218874 /src/core
parentFrontend/Qt: Allow the framebuffer widget to inspect the depth buffer (diff)
downloadyuzu-1248e291f0c9a29734b0f5175df8fa675cce930c.tar
yuzu-1248e291f0c9a29734b0f5175df8fa675cce930c.tar.gz
yuzu-1248e291f0c9a29734b0f5175df8fa675cce930c.tar.bz2
yuzu-1248e291f0c9a29734b0f5175df8fa675cce930c.tar.lz
yuzu-1248e291f0c9a29734b0f5175df8fa675cce930c.tar.xz
yuzu-1248e291f0c9a29734b0f5175df8fa675cce930c.tar.zst
yuzu-1248e291f0c9a29734b0f5175df8fa675cce930c.zip
Diffstat (limited to 'src/core')
-rw-r--r--src/core/hw/gpu.cpp4
-rw-r--r--src/core/hw/gpu.h6
2 files changed, 5 insertions, 5 deletions
diff --git a/src/core/hw/gpu.cpp b/src/core/hw/gpu.cpp
index b7102b874..424ce2ca7 100644
--- a/src/core/hw/gpu.cpp
+++ b/src/core/hw/gpu.cpp
@@ -81,9 +81,9 @@ inline void Write(u32 addr, const T data) {
if (config.fill_24bit) {
// fill with 24-bit values
for (u8* ptr = start; ptr < end; ptr += 3) {
- ptr[0] = config.value_24bit_r;
+ ptr[0] = config.value_24bit_b;
ptr[1] = config.value_24bit_g;
- ptr[2] = config.value_24bit_b;
+ ptr[2] = config.value_24bit_r;
}
} else if (config.fill_32bit) {
// fill with 32-bit values
diff --git a/src/core/hw/gpu.h b/src/core/hw/gpu.h
index 5ca4a5450..737b1e968 100644
--- a/src/core/hw/gpu.h
+++ b/src/core/hw/gpu.h
@@ -100,10 +100,10 @@ struct Regs {
// Set to 1 upon completion.
BitField<0, 1, u32> finished;
- // 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
+ // 0: fill with 16- or 32-bit wide values; 1: fill with 24-bit wide values
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;
};