summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSubv <subv2112@gmail.com>2018-08-21 01:42:36 +0200
committerSubv <subv2112@gmail.com>2018-08-21 01:42:36 +0200
commit6bcdf37d4fe1f77c7a6757c5889fda780b549071 (patch)
treea3bbef109e4f5b73efb869a3baba9292b8add3a2 /src
parentMerge pull request #1104 from Subv/instanced_arrays (diff)
downloadyuzu-6bcdf37d4fe1f77c7a6757c5889fda780b549071.tar
yuzu-6bcdf37d4fe1f77c7a6757c5889fda780b549071.tar.gz
yuzu-6bcdf37d4fe1f77c7a6757c5889fda780b549071.tar.bz2
yuzu-6bcdf37d4fe1f77c7a6757c5889fda780b549071.tar.lz
yuzu-6bcdf37d4fe1f77c7a6757c5889fda780b549071.tar.xz
yuzu-6bcdf37d4fe1f77c7a6757c5889fda780b549071.tar.zst
yuzu-6bcdf37d4fe1f77c7a6757c5889fda780b549071.zip
Diffstat (limited to '')
-rw-r--r--src/video_core/engines/maxwell_3d.h29
1 files changed, 28 insertions, 1 deletions
diff --git a/src/video_core/engines/maxwell_3d.h b/src/video_core/engines/maxwell_3d.h
index 3c869d3a1..d03bc1c0c 100644
--- a/src/video_core/engines/maxwell_3d.h
+++ b/src/video_core/engines/maxwell_3d.h
@@ -311,6 +311,25 @@ public:
AlwaysOld = 8,
};
+ enum class LogicOperation : u32 {
+ Clear = 0x1500,
+ And = 0x1501,
+ AndReverse = 0x1502,
+ Copy = 0x1503,
+ AndInverted = 0x1504,
+ NoOp = 0x1505,
+ Xor = 0x1506,
+ Or = 0x1507,
+ Nor = 0x1508,
+ Equiv = 0x1509,
+ Invert = 0x150A,
+ OrReverse = 0x150B,
+ CopyInverted = 0x150C,
+ OrInverted = 0x150D,
+ Nand = 0x150E,
+ Set = 0x150F,
+ };
+
struct Cull {
enum class FrontFace : u32 {
ClockWise = 0x0900,
@@ -695,7 +714,14 @@ public:
Cull cull;
- INSERT_PADDING_WORDS(0x2B);
+ INSERT_PADDING_WORDS(0x28);
+
+ struct {
+ u32 enable;
+ LogicOperation operation;
+ } logic_op;
+
+ INSERT_PADDING_WORDS(0x1);
union {
u32 raw;
@@ -942,6 +968,7 @@ ASSERT_REG_POSITION(draw, 0x585);
ASSERT_REG_POSITION(index_array, 0x5F2);
ASSERT_REG_POSITION(instanced_arrays, 0x620);
ASSERT_REG_POSITION(cull, 0x646);
+ASSERT_REG_POSITION(logic_op, 0x671);
ASSERT_REG_POSITION(clear_buffers, 0x674);
ASSERT_REG_POSITION(query, 0x6C0);
ASSERT_REG_POSITION(vertex_array[0], 0x700);