From 12a11472f1cdc7a6071c1d161b09b56dab0bed51 Mon Sep 17 00:00:00 2001 From: Subv Date: Sat, 22 Aug 2015 22:09:00 -0500 Subject: GPU: Implemented register 0x22A. This is the equivalent of the "first" parameter in glDrawArrays, it tells the GPU the vertex index at which to start rendering. Register 0x22A doesn't affect indexed rendering. --- src/video_core/pica.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/video_core/pica.h') diff --git a/src/video_core/pica.h b/src/video_core/pica.h index 58b924f9e..03a56afe6 100644 --- a/src/video_core/pica.h +++ b/src/video_core/pica.h @@ -757,7 +757,12 @@ struct Regs { // Number of vertices to render u32 num_vertices; - INSERT_PADDING_WORDS(0x5); + INSERT_PADDING_WORDS(0x1); + + // The index of the first vertex to render + u32 vertex_offset; + + INSERT_PADDING_WORDS(0x3); // These two trigger rendering of triangles u32 trigger_draw; -- cgit v1.2.3