diff options
| author | bunnei <bunneidev@gmail.com> | 2015-08-30 17:12:33 -0400 |
|---|---|---|
| committer | bunnei <bunneidev@gmail.com> | 2015-08-30 17:12:33 -0400 |
| commit | e77dc4e9d2d43ec739c95dd4b92d6a404277b241 (patch) | |
| tree | 2aad23d2573e24d8c290383cc116535716ef1632 /src/video_core/command_processor.cpp | |
| parent | 5906d8b01cbe3178dfec22311d409ddb910445b8 (diff) | |
| parent | 12a11472f1cdc7a6071c1d161b09b56dab0bed51 (diff) | |
Merge pull request #1059 from Subv/vertex_offset
GPU: Implemented register 0x22A PICA_REG_DRAW_VERTEX_OFFSET
Diffstat (limited to 'src/video_core/command_processor.cpp')
| -rw-r--r-- | src/video_core/command_processor.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/video_core/command_processor.cpp b/src/video_core/command_processor.cpp index a78985510..682be89ec 100644 --- a/src/video_core/command_processor.cpp +++ b/src/video_core/command_processor.cpp @@ -235,7 +235,8 @@ static void WritePicaReg(u32 id, u32 value, u32 mask) { for (unsigned int index = 0; index < regs.num_vertices; ++index) { - unsigned int vertex = is_indexed ? (index_u16 ? index_address_16[index] : index_address_8[index]) : index; + // Indexed rendering doesn't use the start offset + unsigned int vertex = is_indexed ? (index_u16 ? index_address_16[index] : index_address_8[index]) : (index + regs.vertex_offset); // -1 is a common special value used for primitive restart. Since it's unknown if // the PICA supports it, and it would mess up the caching, guard against it here. |
