diff options
| author | bunnei <bunneidev@gmail.com> | 2019-05-09 13:19:22 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-05-09 13:19:22 -0400 |
| commit | c27b81cb85d11b4c31f38c15a5e8e6d7c7211df2 (patch) | |
| tree | c91fe87f5a025effd3941d38653cda0920c68962 /src/video_core/engines/maxwell_3d.cpp | |
| parent | 0e9a17b029d54f7d08a3c50156af96ca048ce367 (diff) | |
| parent | e64c41efe88e8f88014fef912b06b71b3df17e85 (diff) | |
Merge pull request #2429 from FernandoS27/compute
Corrections and Implementation on GPU Engines
Diffstat (limited to 'src/video_core/engines/maxwell_3d.cpp')
| -rw-r--r-- | src/video_core/engines/maxwell_3d.cpp | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/src/video_core/engines/maxwell_3d.cpp b/src/video_core/engines/maxwell_3d.cpp index 9780417f2..d7b586db9 100644 --- a/src/video_core/engines/maxwell_3d.cpp +++ b/src/video_core/engines/maxwell_3d.cpp @@ -20,8 +20,8 @@ constexpr u32 MacroRegistersStart = 0xE00; Maxwell3D::Maxwell3D(Core::System& system, VideoCore::RasterizerInterface& rasterizer, MemoryManager& memory_manager) - : system{system}, rasterizer{rasterizer}, memory_manager{memory_manager}, macro_interpreter{ - *this} { + : system{system}, rasterizer{rasterizer}, memory_manager{memory_manager}, + macro_interpreter{*this}, upload_state{memory_manager, regs.upload} { InitializeRegisterDefaults(); } @@ -253,6 +253,18 @@ void Maxwell3D::CallMethod(const GPU::MethodCall& method_call) { ProcessSyncPoint(); break; } + case MAXWELL3D_REG_INDEX(exec_upload): { + upload_state.ProcessExec(regs.exec_upload.linear != 0); + break; + } + case MAXWELL3D_REG_INDEX(data_upload): { + const bool is_last_call = method_call.IsLastCall(); + upload_state.ProcessData(method_call.argument, is_last_call); + if (is_last_call) { + dirty_flags.OnMemoryWrite(); + } + break; + } default: break; } |
