summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Liam2022-04-14 09:57:06 -0400
committerGravatar Liam2022-04-14 09:57:06 -0400
commita24e7ba61b11f84ec3d6388a13101f95cecca0d3 (patch)
tree434e536e8935bbcd20e5f89c3d3c9b8c083560c7 /src
parentMerge pull request #8190 from Docteh/palswap (diff)
downloadyuzu-a24e7ba61b11f84ec3d6388a13101f95cecca0d3.tar.gz
yuzu-a24e7ba61b11f84ec3d6388a13101f95cecca0d3.tar.xz
yuzu-a24e7ba61b11f84ec3d6388a13101f95cecca0d3.zip
maxwell3d: add small_index_2 register
Diffstat (limited to 'src')
-rw-r--r--src/video_core/engines/maxwell_3d.cpp5
-rw-r--r--src/video_core/engines/maxwell_3d.h7
2 files changed, 11 insertions, 1 deletions
diff --git a/src/video_core/engines/maxwell_3d.cpp b/src/video_core/engines/maxwell_3d.cpp
index 54a902f56..7399e760f 100644
--- a/src/video_core/engines/maxwell_3d.cpp
+++ b/src/video_core/engines/maxwell_3d.cpp
@@ -214,6 +214,11 @@ void Maxwell3D::ProcessMethodCall(u32 method, u32 argument, u32 nonshadow_argume
214 regs.index_array.first = regs.small_index.first; 214 regs.index_array.first = regs.small_index.first;
215 dirty.flags[VideoCommon::Dirty::IndexBuffer] = true; 215 dirty.flags[VideoCommon::Dirty::IndexBuffer] = true;
216 return DrawArrays(); 216 return DrawArrays();
217 case MAXWELL3D_REG_INDEX(small_index_2):
218 regs.index_array.count = regs.small_index_2.count;
219 regs.index_array.first = regs.small_index_2.first;
220 dirty.flags[VideoCommon::Dirty::IndexBuffer] = true;
221 return DrawArrays();
217 case MAXWELL3D_REG_INDEX(topology_override): 222 case MAXWELL3D_REG_INDEX(topology_override):
218 use_topology_override = true; 223 use_topology_override = true;
219 return; 224 return;
diff --git a/src/video_core/engines/maxwell_3d.h b/src/video_core/engines/maxwell_3d.h
index 3f5b38e55..d36dc3daa 100644
--- a/src/video_core/engines/maxwell_3d.h
+++ b/src/video_core/engines/maxwell_3d.h
@@ -1220,7 +1220,12 @@ public:
1220 BitField<16, 16, u32> count; 1220 BitField<16, 16, u32> count;
1221 } small_index; 1221 } small_index;
1222 1222
1223 INSERT_PADDING_WORDS_NOINIT(0x6); 1223 union {
1224 BitField<0, 16, u32> first;
1225 BitField<16, 16, u32> count;
1226 } small_index_2;
1227
1228 INSERT_PADDING_WORDS_NOINIT(0x5);
1224 1229
1225 INSERT_PADDING_WORDS_NOINIT(0x1F); 1230 INSERT_PADDING_WORDS_NOINIT(0x1F);
1226 1231