diff options
| author | 2018-11-28 17:46:55 -0500 | |
|---|---|---|
| committer | 2018-11-28 17:46:55 -0500 | |
| commit | 3fe8ab0d996cb3bf1c29b0e003ee6d2d2e81c74a (patch) | |
| tree | 0334cb24f1c656b432e408c5cc56720757cf37f6 /src/video_core/engines | |
| parent | Merge pull request #1817 from DarkLordZach/npad-idx-fix (diff) | |
| parent | Implement depth clamp (diff) | |
| download | yuzu-3fe8ab0d996cb3bf1c29b0e003ee6d2d2e81c74a.tar.gz yuzu-3fe8ab0d996cb3bf1c29b0e003ee6d2d2e81c74a.tar.xz yuzu-3fe8ab0d996cb3bf1c29b0e003ee6d2d2e81c74a.zip | |
Merge pull request #1786 from Tinob/DepthClamp
Add Depth Clamp Support
Diffstat (limited to 'src/video_core/engines')
| -rw-r--r-- | src/video_core/engines/maxwell_3d.h | 10 |
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: | |||
| 902 | 902 | ||
| 903 | u32 viewport_transform_enabled; | 903 | u32 viewport_transform_enabled; |
| 904 | 904 | ||
| 905 | INSERT_PADDING_WORDS(0x25); | 905 | INSERT_PADDING_WORDS(0x3); |
| 906 | |||
| 907 | union { | ||
| 908 | BitField<0, 1, u32> depth_range_0_1; | ||
| 909 | BitField<3, 1, u32> depth_clamp_near; | ||
| 910 | BitField<4, 1, u32> depth_clamp_far; | ||
| 911 | } view_volume_clip_control; | ||
| 906 | 912 | ||
| 913 | INSERT_PADDING_WORDS(0x21); | ||
| 907 | struct { | 914 | struct { |
| 908 | u32 enable; | 915 | u32 enable; |
| 909 | LogicOperation operation; | 916 | LogicOperation operation; |
| @@ -1224,6 +1231,7 @@ ASSERT_REG_POSITION(instanced_arrays, 0x620); | |||
| 1224 | ASSERT_REG_POSITION(cull, 0x646); | 1231 | ASSERT_REG_POSITION(cull, 0x646); |
| 1225 | ASSERT_REG_POSITION(pixel_center_integer, 0x649); | 1232 | ASSERT_REG_POSITION(pixel_center_integer, 0x649); |
| 1226 | ASSERT_REG_POSITION(viewport_transform_enabled, 0x64B); | 1233 | ASSERT_REG_POSITION(viewport_transform_enabled, 0x64B); |
| 1234 | ASSERT_REG_POSITION(view_volume_clip_control, 0x64F); | ||
| 1227 | ASSERT_REG_POSITION(logic_op, 0x671); | 1235 | ASSERT_REG_POSITION(logic_op, 0x671); |
| 1228 | ASSERT_REG_POSITION(clear_buffers, 0x674); | 1236 | ASSERT_REG_POSITION(clear_buffers, 0x674); |
| 1229 | ASSERT_REG_POSITION(color_mask, 0x680); | 1237 | ASSERT_REG_POSITION(color_mask, 0x680); |