summaryrefslogtreecommitdiffstats
path: root/src/video_core/engines
diff options
context:
space:
mode:
authorSubv <subv2112@gmail.com>2018-08-18 21:42:26 +0200
committerSubv <subv2112@gmail.com>2018-08-18 21:42:26 +0200
commite0f66c1fbfa7874df9970c2d269bd61e05758309 (patch)
treeadeffbdf54c36072ed820d56b9d55c073da3bd08 /src/video_core/engines
parentMerge pull request #1100 from ogniK5377/missing-pred (diff)
downloadyuzu-e0f66c1fbfa7874df9970c2d269bd61e05758309.tar
yuzu-e0f66c1fbfa7874df9970c2d269bd61e05758309.tar.gz
yuzu-e0f66c1fbfa7874df9970c2d269bd61e05758309.tar.bz2
yuzu-e0f66c1fbfa7874df9970c2d269bd61e05758309.tar.lz
yuzu-e0f66c1fbfa7874df9970c2d269bd61e05758309.tar.xz
yuzu-e0f66c1fbfa7874df9970c2d269bd61e05758309.tar.zst
yuzu-e0f66c1fbfa7874df9970c2d269bd61e05758309.zip
Diffstat (limited to 'src/video_core/engines')
-rw-r--r--src/video_core/engines/maxwell_3d.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/video_core/engines/maxwell_3d.h b/src/video_core/engines/maxwell_3d.h
index 771eb5abc..3c869d3a1 100644
--- a/src/video_core/engines/maxwell_3d.h
+++ b/src/video_core/engines/maxwell_3d.h
@@ -679,7 +679,19 @@ public:
INSERT_PADDING_WORDS(0x7);
- INSERT_PADDING_WORDS(0x46);
+ INSERT_PADDING_WORDS(0x20);
+
+ struct {
+ u32 is_instanced[NumVertexArrays];
+
+ /// Returns whether the vertex array specified by index is supposed to be
+ /// accessed per instance or not.
+ bool IsInstancingEnabled(u32 index) const {
+ return is_instanced[index];
+ }
+ } instanced_arrays;
+
+ INSERT_PADDING_WORDS(0x6);
Cull cull;
@@ -928,6 +940,7 @@ ASSERT_REG_POSITION(point_coord_replace, 0x581);
ASSERT_REG_POSITION(code_address, 0x582);
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(clear_buffers, 0x674);
ASSERT_REG_POSITION(query, 0x6C0);