summaryrefslogtreecommitdiff
path: root/src/video_core/engines
diff options
context:
space:
mode:
authorGravatar bunnei2020-02-19 16:13:50 -0500
committerGravatar GitHub2020-02-19 16:13:50 -0500
commitb2bc7682b4f4fab68b49d51b50f8930f1ccdb157 (patch)
treed5c22b625e6cb0c734725c4db57dd51301585011 /src/video_core/engines
parentMerge pull request #3411 from ReinUsesLisp/specific-funcs (diff)
parentmaxwell_3d: Unify draw methods (diff)
downloadyuzu-b2bc7682b4f4fab68b49d51b50f8930f1ccdb157.tar.gz
yuzu-b2bc7682b4f4fab68b49d51b50f8930f1ccdb157.tar.xz
yuzu-b2bc7682b4f4fab68b49d51b50f8930f1ccdb157.zip
Merge pull request #3414 from ReinUsesLisp/maxwell-3d-draw
maxwell_3d: Unify draw methods
Diffstat (limited to 'src/video_core/engines')
-rw-r--r--src/video_core/engines/maxwell_3d.cpp4
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 842cdcbcf..b28de1092 100644
--- a/src/video_core/engines/maxwell_3d.cpp
+++ b/src/video_core/engines/maxwell_3d.cpp
@@ -489,7 +489,7 @@ void Maxwell3D::FlushMMEInlineDraw() {
489 489
490 const bool is_indexed = mme_draw.current_mode == MMEDrawMode::Indexed; 490 const bool is_indexed = mme_draw.current_mode == MMEDrawMode::Indexed;
491 if (ShouldExecute()) { 491 if (ShouldExecute()) {
492 rasterizer.DrawMultiBatch(is_indexed); 492 rasterizer.Draw(is_indexed, true);
493 } 493 }
494 494
495 // TODO(bunnei): Below, we reset vertex count so that we can use these registers to determine if 495 // TODO(bunnei): Below, we reset vertex count so that we can use these registers to determine if
@@ -654,7 +654,7 @@ void Maxwell3D::DrawArrays() {
654 654
655 const bool is_indexed{regs.index_array.count && !regs.vertex_buffer.count}; 655 const bool is_indexed{regs.index_array.count && !regs.vertex_buffer.count};
656 if (ShouldExecute()) { 656 if (ShouldExecute()) {
657 rasterizer.DrawBatch(is_indexed); 657 rasterizer.Draw(is_indexed, false);
658 } 658 }
659 659
660 // TODO(bunnei): Below, we reset vertex count so that we can use these registers to determine if 660 // TODO(bunnei): Below, we reset vertex count so that we can use these registers to determine if