From 3e2380327a99196ac2bb18668f6f53c4248bcca1 Mon Sep 17 00:00:00 2001 From: ReinUsesLisp Date: Tue, 2 Oct 2018 14:47:26 -0300 Subject: gl_rasterizer: Implement quads topology --- src/video_core/engines/maxwell_3d.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/video_core/engines') diff --git a/src/video_core/engines/maxwell_3d.h b/src/video_core/engines/maxwell_3d.h index 9f5581045..4290da33f 100644 --- a/src/video_core/engines/maxwell_3d.h +++ b/src/video_core/engines/maxwell_3d.h @@ -744,6 +744,12 @@ public: return static_cast((static_cast(end_addr_high) << 32) | end_addr_low); } + + /// Adjust the index buffer offset so it points to the first desired index. + GPUVAddr IndexStart() const { + return StartAddress() + static_cast(first) * + static_cast(FormatSizeInBytes()); + } } index_array; INSERT_PADDING_WORDS(0x7); -- cgit v1.2.3