diff options
author | bunnei <bunneidev@gmail.com> | 2018-03-27 04:30:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-27 04:30:03 +0200 |
commit | b4bf099793d8e9a065769c35bb4b8e20bf107549 (patch) | |
tree | 2a9adcdcc7b3947242f3d4717302dc29425e8b0d /src/video_core/engines/maxwell_3d.cpp | |
parent | Merge pull request #283 from Subv/tsc (diff) | |
parent | renderer_opengl: Use better naming for DrawScreens and DrawSingleScreen. (diff) | |
download | yuzu-b4bf099793d8e9a065769c35bb4b8e20bf107549.tar yuzu-b4bf099793d8e9a065769c35bb4b8e20bf107549.tar.gz yuzu-b4bf099793d8e9a065769c35bb4b8e20bf107549.tar.bz2 yuzu-b4bf099793d8e9a065769c35bb4b8e20bf107549.tar.lz yuzu-b4bf099793d8e9a065769c35bb4b8e20bf107549.tar.xz yuzu-b4bf099793d8e9a065769c35bb4b8e20bf107549.tar.zst yuzu-b4bf099793d8e9a065769c35bb4b8e20bf107549.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/engines/maxwell_3d.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/video_core/engines/maxwell_3d.cpp b/src/video_core/engines/maxwell_3d.cpp index 088d4357e..5359d21a2 100644 --- a/src/video_core/engines/maxwell_3d.cpp +++ b/src/video_core/engines/maxwell_3d.cpp @@ -7,8 +7,11 @@ #include "core/core.h" #include "video_core/debug_utils/debug_utils.h" #include "video_core/engines/maxwell_3d.h" +#include "video_core/rasterizer_interface.h" +#include "video_core/renderer_base.h" #include "video_core/textures/decoders.h" #include "video_core/textures/texture.h" +#include "video_core/video_core.h" namespace Tegra { namespace Engines { @@ -174,7 +177,9 @@ void Maxwell3D::ProcessQueryGet() { } void Maxwell3D::DrawArrays() { - LOG_WARNING(HW_GPU, "Game requested a DrawArrays, ignoring"); + LOG_DEBUG(HW_GPU, "called, topology=%d, count=%d", regs.draw.topology.Value(), + regs.vertex_buffer.count); + auto debug_context = Core::System::GetInstance().GetGPUDebugContext(); if (debug_context) { @@ -184,6 +189,8 @@ void Maxwell3D::DrawArrays() { if (debug_context) { debug_context->OnEvent(Tegra::DebugContext::Event::FinishedPrimitiveBatch, nullptr); } + + VideoCore::g_renderer->Rasterizer()->AccelerateDrawBatch(false /*is_indexed*/); } void Maxwell3D::BindTextureInfoBuffer(const std::vector<u32>& parameters) { |