diff options
author | Jannik Vogel <email@jannikvogel.de> | 2016-03-20 01:53:49 +0100 |
---|---|---|
committer | Jannik Vogel <email@jannikvogel.de> | 2016-05-10 08:58:52 +0200 |
commit | 4c98113b572551f34a907094ca059de8a724c9b1 (patch) | |
tree | fb9f11a97913786f7ff559a1e1045b864f0aa935 /src/video_core/pica.h | |
parent | Merge pull request #1704 from JayFoxRox/pod-config (diff) | |
download | yuzu-4c98113b572551f34a907094ca059de8a724c9b1.tar yuzu-4c98113b572551f34a907094ca059de8a724c9b1.tar.gz yuzu-4c98113b572551f34a907094ca059de8a724c9b1.tar.bz2 yuzu-4c98113b572551f34a907094ca059de8a724c9b1.tar.lz yuzu-4c98113b572551f34a907094ca059de8a724c9b1.tar.xz yuzu-4c98113b572551f34a907094ca059de8a724c9b1.tar.zst yuzu-4c98113b572551f34a907094ca059de8a724c9b1.zip |
Diffstat (limited to 'src/video_core/pica.h')
-rw-r--r-- | src/video_core/pica.h | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/src/video_core/pica.h b/src/video_core/pica.h index 5891fb72a..a81a7b984 100644 --- a/src/video_core/pica.h +++ b/src/video_core/pica.h @@ -70,7 +70,7 @@ struct Regs { INSERT_PADDING_WORDS(0x9); BitField<0, 24, u32> viewport_depth_range; // float24 - BitField<0, 24, u32> viewport_depth_far_plane; // float24 + BitField<0, 24, u32> viewport_depth_near_plane; // float24 BitField<0, 3, u32> vs_output_total; @@ -122,7 +122,20 @@ struct Regs { BitField<16, 10, s32> y; } viewport_corner; - INSERT_PADDING_WORDS(0x17); + INSERT_PADDING_WORDS(0x1); + + //TODO: early depth + INSERT_PADDING_WORDS(0x1); + + INSERT_PADDING_WORDS(0x2); + + enum DepthBuffering : u32 { + WBuffering = 0, + ZBuffering = 1, + }; + BitField< 0, 1, DepthBuffering> depthmap_enable; + + INSERT_PADDING_WORDS(0x12); struct TextureConfig { enum WrapMode : u32 { @@ -1279,10 +1292,11 @@ ASSERT_REG_POSITION(cull_mode, 0x40); ASSERT_REG_POSITION(viewport_size_x, 0x41); ASSERT_REG_POSITION(viewport_size_y, 0x43); ASSERT_REG_POSITION(viewport_depth_range, 0x4d); -ASSERT_REG_POSITION(viewport_depth_far_plane, 0x4e); +ASSERT_REG_POSITION(viewport_depth_near_plane, 0x4e); ASSERT_REG_POSITION(vs_output_attributes[0], 0x50); ASSERT_REG_POSITION(vs_output_attributes[1], 0x51); ASSERT_REG_POSITION(viewport_corner, 0x68); +ASSERT_REG_POSITION(depthmap_enable, 0x6D); ASSERT_REG_POSITION(texture0_enable, 0x80); ASSERT_REG_POSITION(texture0, 0x81); ASSERT_REG_POSITION(texture0_format, 0x8e); |