aboutsummaryrefslogtreecommitdiff
path: root/src/video_core/engines
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-10-05 22:53:22 -0400
committerGitHub <noreply@github.com>2018-10-05 22:53:22 -0400
commitd3bfb102d8f6aef7f05b7ddbb5f17c312fa038d7 (patch)
tree732f2d423b4d4d08fd0da6ddee59f709732c1aec /src/video_core/engines
parentd43769f93f09f3d53fbe63d096e9cbab741ea6a8 (diff)
parent3e2380327a99196ac2bb18668f6f53c4248bcca1 (diff)
Merge pull request #1438 from ReinUsesLisp/quads
gl_rasterizer: Implement quads topology
Diffstat (limited to 'src/video_core/engines')
-rw-r--r--src/video_core/engines/maxwell_3d.h6
1 files changed, 6 insertions, 0 deletions
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<GPUVAddr>((static_cast<GPUVAddr>(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<size_t>(first) *
+ static_cast<size_t>(FormatSizeInBytes());
+ }
} index_array;
INSERT_PADDING_WORDS(0x7);