summaryrefslogtreecommitdiffstats
path: root/src/video_core/regs_framebuffer.h
diff options
context:
space:
mode:
authorwwylele <wwylele@gmail.com>2017-05-15 17:14:03 +0200
committerwwylele <wwylele@gmail.com>2017-05-16 18:24:06 +0200
commit86ee1f61012efc365eedc43fb856890be14c88cc (patch)
treee785f8dcaf5b7e84bff1384602fa7dd087a771cd /src/video_core/regs_framebuffer.h
parentMerge pull request #2669 from jroweboy/async_file_watcher (diff)
downloadyuzu-86ee1f61012efc365eedc43fb856890be14c88cc.tar
yuzu-86ee1f61012efc365eedc43fb856890be14c88cc.tar.gz
yuzu-86ee1f61012efc365eedc43fb856890be14c88cc.tar.bz2
yuzu-86ee1f61012efc365eedc43fb856890be14c88cc.tar.lz
yuzu-86ee1f61012efc365eedc43fb856890be14c88cc.tar.xz
yuzu-86ee1f61012efc365eedc43fb856890be14c88cc.tar.zst
yuzu-86ee1f61012efc365eedc43fb856890be14c88cc.zip
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 {
BitField<0, 2, u32> allow_depth_stencil_write; // 0 = disable, else enable
};
- DepthFormat depth_format; // TODO: Should be a BitField!
+ BitField<0, 2, DepthFormat> depth_format;
+
BitField<16, 3, ColorFormat> color_format;
INSERT_PADDING_WORDS(0x4);
- u32 depth_buffer_address;
- u32 color_buffer_address;
+ BitField<0, 28, u32> depth_buffer_address;
+ BitField<0, 28, u32> color_buffer_address;
union {
// Apparently, the framebuffer width is stored as expected,