diff options
| author | 2018-10-05 22:53:22 -0400 | |
|---|---|---|
| committer | 2018-10-05 22:53:22 -0400 | |
| commit | d3bfb102d8f6aef7f05b7ddbb5f17c312fa038d7 (patch) | |
| tree | 732f2d423b4d4d08fd0da6ddee59f709732c1aec /src/video_core/engines | |
| parent | Merge pull request #1445 from lioncash/sched (diff) | |
| parent | gl_rasterizer: Implement quads topology (diff) | |
| download | yuzu-d3bfb102d8f6aef7f05b7ddbb5f17c312fa038d7.tar.gz yuzu-d3bfb102d8f6aef7f05b7ddbb5f17c312fa038d7.tar.xz yuzu-d3bfb102d8f6aef7f05b7ddbb5f17c312fa038d7.zip | |
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.h | 6 |
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: | |||
| 744 | return static_cast<GPUVAddr>((static_cast<GPUVAddr>(end_addr_high) << 32) | | 744 | return static_cast<GPUVAddr>((static_cast<GPUVAddr>(end_addr_high) << 32) | |
| 745 | end_addr_low); | 745 | end_addr_low); |
| 746 | } | 746 | } |
| 747 | |||
| 748 | /// Adjust the index buffer offset so it points to the first desired index. | ||
| 749 | GPUVAddr IndexStart() const { | ||
| 750 | return StartAddress() + static_cast<size_t>(first) * | ||
| 751 | static_cast<size_t>(FormatSizeInBytes()); | ||
| 752 | } | ||
| 747 | } index_array; | 753 | } index_array; |
| 748 | 754 | ||
| 749 | INSERT_PADDING_WORDS(0x7); | 755 | INSERT_PADDING_WORDS(0x7); |