summaryrefslogtreecommitdiffstats
path: root/src/video_core/engines/maxwell_3d.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-11-28 23:46:55 +0100
committerGitHub <noreply@github.com>2018-11-28 23:46:55 +0100
commit3fe8ab0d996cb3bf1c29b0e003ee6d2d2e81c74a (patch)
tree0334cb24f1c656b432e408c5cc56720757cf37f6 /src/video_core/engines/maxwell_3d.h
parentMerge pull request #1817 from DarkLordZach/npad-idx-fix (diff)
parentImplement depth clamp (diff)
downloadyuzu-3fe8ab0d996cb3bf1c29b0e003ee6d2d2e81c74a.tar
yuzu-3fe8ab0d996cb3bf1c29b0e003ee6d2d2e81c74a.tar.gz
yuzu-3fe8ab0d996cb3bf1c29b0e003ee6d2d2e81c74a.tar.bz2
yuzu-3fe8ab0d996cb3bf1c29b0e003ee6d2d2e81c74a.tar.lz
yuzu-3fe8ab0d996cb3bf1c29b0e003ee6d2d2e81c74a.tar.xz
yuzu-3fe8ab0d996cb3bf1c29b0e003ee6d2d2e81c74a.tar.zst
yuzu-3fe8ab0d996cb3bf1c29b0e003ee6d2d2e81c74a.zip
Diffstat (limited to 'src/video_core/engines/maxwell_3d.h')
-rw-r--r--src/video_core/engines/maxwell_3d.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/video_core/engines/maxwell_3d.h b/src/video_core/engines/maxwell_3d.h
index 84471f181..2e896e5f2 100644
--- a/src/video_core/engines/maxwell_3d.h
+++ b/src/video_core/engines/maxwell_3d.h
@@ -902,8 +902,15 @@ public:
u32 viewport_transform_enabled;
- INSERT_PADDING_WORDS(0x25);
+ INSERT_PADDING_WORDS(0x3);
+
+ union {
+ BitField<0, 1, u32> depth_range_0_1;
+ BitField<3, 1, u32> depth_clamp_near;
+ BitField<4, 1, u32> depth_clamp_far;
+ } view_volume_clip_control;
+ INSERT_PADDING_WORDS(0x21);
struct {
u32 enable;
LogicOperation operation;
@@ -1224,6 +1231,7 @@ ASSERT_REG_POSITION(instanced_arrays, 0x620);
ASSERT_REG_POSITION(cull, 0x646);
ASSERT_REG_POSITION(pixel_center_integer, 0x649);
ASSERT_REG_POSITION(viewport_transform_enabled, 0x64B);
+ASSERT_REG_POSITION(view_volume_clip_control, 0x64F);
ASSERT_REG_POSITION(logic_op, 0x671);
ASSERT_REG_POSITION(clear_buffers, 0x674);
ASSERT_REG_POSITION(color_mask, 0x680);