summaryrefslogtreecommitdiffstats
path: root/src/video_core/engines
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-07-05 22:43:10 +0200
committerGitHub <noreply@github.com>2018-07-05 22:43:10 +0200
commit51bd76a5fda00b0ad9c6791193a15d83dfbadac3 (patch)
treeb26c8fa71f71916bde0eb433236235ace4c36703 /src/video_core/engines
parentMerge pull request #626 from Subv/shader_sync (diff)
parentGPU: Allow using the old NV04 values for the depth test function. (diff)
downloadyuzu-51bd76a5fda00b0ad9c6791193a15d83dfbadac3.tar
yuzu-51bd76a5fda00b0ad9c6791193a15d83dfbadac3.tar.gz
yuzu-51bd76a5fda00b0ad9c6791193a15d83dfbadac3.tar.bz2
yuzu-51bd76a5fda00b0ad9c6791193a15d83dfbadac3.tar.lz
yuzu-51bd76a5fda00b0ad9c6791193a15d83dfbadac3.tar.xz
yuzu-51bd76a5fda00b0ad9c6791193a15d83dfbadac3.tar.zst
yuzu-51bd76a5fda00b0ad9c6791193a15d83dfbadac3.zip
Diffstat (limited to 'src/video_core/engines')
-rw-r--r--src/video_core/engines/maxwell_3d.h30
1 files changed, 21 insertions, 9 deletions
diff --git a/src/video_core/engines/maxwell_3d.h b/src/video_core/engines/maxwell_3d.h
index cc1f90de6..5a7cf0107 100644
--- a/src/video_core/engines/maxwell_3d.h
+++ b/src/video_core/engines/maxwell_3d.h
@@ -281,14 +281,26 @@ public:
};
enum class ComparisonOp : u32 {
- Never = 0,
- Less = 1,
- Equal = 2,
- LessEqual = 3,
- Greater = 4,
- NotEqual = 5,
- GreaterEqual = 6,
- Always = 7,
+ // These values are used by Nouveau and most games, they correspond to the OpenGL token
+ // values for these operations.
+ Never = 0x200,
+ Less = 0x201,
+ Equal = 0x202,
+ LessEqual = 0x203,
+ Greater = 0x204,
+ NotEqual = 0x205,
+ GreaterEqual = 0x206,
+ Always = 0x207,
+
+ // These values are used by some games, they seem to be NV04 values.
+ NeverOld = 1,
+ LessOld = 2,
+ EqualOld = 3,
+ LessEqualOld = 4,
+ GreaterOld = 5,
+ NotEqualOld = 6,
+ GreaterEqualOld = 7,
+ AlwaysOld = 8,
};
struct Cull {
@@ -482,7 +494,7 @@ public:
u32 d3d_cull_mode;
- BitField<0, 3, ComparisonOp> depth_test_func;
+ ComparisonOp depth_test_func;
INSERT_PADDING_WORDS(0xB);