diff options
author | bunnei <bunneidev@gmail.com> | 2018-04-17 17:34:22 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-17 17:34:22 +0200 |
commit | 0905dc1ff44ba87d73cee5620ea12a34959da50e (patch) | |
tree | 664653514751da1c4c92d186b06bd3e4616ae498 /src/video_core/engines/maxwell_3d.cpp | |
parent | Merge pull request #338 from bunnei/unrequire-shared-font (diff) | |
parent | gl_rendering: Use NGLOG* for changed code. (diff) | |
download | yuzu-0905dc1ff44ba87d73cee5620ea12a34959da50e.tar yuzu-0905dc1ff44ba87d73cee5620ea12a34959da50e.tar.gz yuzu-0905dc1ff44ba87d73cee5620ea12a34959da50e.tar.bz2 yuzu-0905dc1ff44ba87d73cee5620ea12a34959da50e.tar.lz yuzu-0905dc1ff44ba87d73cee5620ea12a34959da50e.tar.xz yuzu-0905dc1ff44ba87d73cee5620ea12a34959da50e.tar.zst yuzu-0905dc1ff44ba87d73cee5620ea12a34959da50e.zip |
Diffstat (limited to 'src/video_core/engines/maxwell_3d.cpp')
-rw-r--r-- | src/video_core/engines/maxwell_3d.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/video_core/engines/maxwell_3d.cpp b/src/video_core/engines/maxwell_3d.cpp index 98ed11ec5..0e1d6d785 100644 --- a/src/video_core/engines/maxwell_3d.cpp +++ b/src/video_core/engines/maxwell_3d.cpp @@ -165,6 +165,7 @@ void Maxwell3D::ProcessQueryGet() { void Maxwell3D::DrawArrays() { LOG_DEBUG(HW_GPU, "called, topology=%d, count=%d", regs.draw.topology.Value(), regs.vertex_buffer.count); + ASSERT_MSG(!(regs.index_array.count && regs.vertex_buffer.count), "Both indexed and direct?"); auto debug_context = Core::System::GetInstance().GetGPUDebugContext(); @@ -176,7 +177,8 @@ void Maxwell3D::DrawArrays() { debug_context->OnEvent(Tegra::DebugContext::Event::FinishedPrimitiveBatch, nullptr); } - VideoCore::g_renderer->Rasterizer()->AccelerateDrawBatch(false /*is_indexed*/); + const bool is_indexed{regs.index_array.count && !regs.vertex_buffer.count}; + VideoCore::g_renderer->Rasterizer()->AccelerateDrawBatch(is_indexed); } void Maxwell3D::ProcessCBBind(Regs::ShaderStage stage) { |