diff options
| author | 2020-02-14 18:09:37 -0300 | |
|---|---|---|
| committer | 2020-02-14 18:09:40 -0300 | |
| commit | 91aa58e41072e648cd1d43d284b08c2a01af08a2 (patch) | |
| tree | a8d4f0ab607c9e0868cdb4da65163318312a714d /src/video_core/engines | |
| parent | Merge pull request #3401 from FernandoS27/synchronization (diff) | |
| download | yuzu-91aa58e41072e648cd1d43d284b08c2a01af08a2.tar.gz yuzu-91aa58e41072e648cd1d43d284b08c2a01af08a2.tar.xz yuzu-91aa58e41072e648cd1d43d284b08c2a01af08a2.zip | |
maxwell_3d: Unify draw methods
Pass instanced state of a draw invocation as an argument instead of
having two separate virtual methods.
Diffstat (limited to 'src/video_core/engines')
| -rw-r--r-- | src/video_core/engines/maxwell_3d.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/engines/maxwell_3d.cpp b/src/video_core/engines/maxwell_3d.cpp index 0b3e8749b..5a74d1c2a 100644 --- a/src/video_core/engines/maxwell_3d.cpp +++ b/src/video_core/engines/maxwell_3d.cpp | |||
| @@ -482,7 +482,7 @@ void Maxwell3D::FlushMMEInlineDraw() { | |||
| 482 | 482 | ||
| 483 | const bool is_indexed = mme_draw.current_mode == MMEDrawMode::Indexed; | 483 | const bool is_indexed = mme_draw.current_mode == MMEDrawMode::Indexed; |
| 484 | if (ShouldExecute()) { | 484 | if (ShouldExecute()) { |
| 485 | rasterizer.DrawMultiBatch(is_indexed); | 485 | rasterizer.Draw(is_indexed, true); |
| 486 | } | 486 | } |
| 487 | 487 | ||
| 488 | // TODO(bunnei): Below, we reset vertex count so that we can use these registers to determine if | 488 | // TODO(bunnei): Below, we reset vertex count so that we can use these registers to determine if |
| @@ -647,7 +647,7 @@ void Maxwell3D::DrawArrays() { | |||
| 647 | 647 | ||
| 648 | const bool is_indexed{regs.index_array.count && !regs.vertex_buffer.count}; | 648 | const bool is_indexed{regs.index_array.count && !regs.vertex_buffer.count}; |
| 649 | if (ShouldExecute()) { | 649 | if (ShouldExecute()) { |
| 650 | rasterizer.DrawBatch(is_indexed); | 650 | rasterizer.Draw(is_indexed, false); |
| 651 | } | 651 | } |
| 652 | 652 | ||
| 653 | // TODO(bunnei): Below, we reset vertex count so that we can use these registers to determine if | 653 | // TODO(bunnei): Below, we reset vertex count so that we can use these registers to determine if |