summaryrefslogtreecommitdiff
path: root/src/video_core/regs_framebuffer.h
diff options
context:
space:
mode:
authorGravatar Yuri Kunde Schlesner2017-05-16 10:00:37 -0700
committerGravatar GitHub2017-05-16 10:00:37 -0700
commit8d558777a6484162b0cffe20b89bb486e88478a3 (patch)
tree0c5578f14ef73a191a5d492118018d6d9bff7389 /src/video_core/regs_framebuffer.h
parentMerge pull request #2687 from yuriks/address-mappings (diff)
parentpica: correct bit field length for some registers (diff)
downloadyuzu-8d558777a6484162b0cffe20b89bb486e88478a3.tar.gz
yuzu-8d558777a6484162b0cffe20b89bb486e88478a3.tar.xz
yuzu-8d558777a6484162b0cffe20b89bb486e88478a3.zip
Merge pull request #2703 from wwylele/pica-reg-revise
pica: correct bit field length for some registers
Diffstat (limited to 'src/video_core/regs_framebuffer.h')
-rw-r--r--src/video_core/regs_framebuffer.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/video_core/regs_framebuffer.h b/src/video_core/regs_framebuffer.h
index 9ddc79243..a50bd4111 100644
--- a/src/video_core/regs_framebuffer.h
+++ b/src/video_core/regs_framebuffer.h
@@ -211,13 +211,14 @@ struct FramebufferRegs {
211 BitField<0, 2, u32> allow_depth_stencil_write; // 0 = disable, else enable 211 BitField<0, 2, u32> allow_depth_stencil_write; // 0 = disable, else enable
212 }; 212 };
213 213
214 DepthFormat depth_format; // TODO: Should be a BitField! 214 BitField<0, 2, DepthFormat> depth_format;
215
215 BitField<16, 3, ColorFormat> color_format; 216 BitField<16, 3, ColorFormat> color_format;
216 217
217 INSERT_PADDING_WORDS(0x4); 218 INSERT_PADDING_WORDS(0x4);
218 219
219 u32 depth_buffer_address; 220 BitField<0, 28, u32> depth_buffer_address;
220 u32 color_buffer_address; 221 BitField<0, 28, u32> color_buffer_address;
221 222
222 union { 223 union {
223 // Apparently, the framebuffer width is stored as expected, 224 // Apparently, the framebuffer width is stored as expected,