summaryrefslogtreecommitdiffstats
path: root/src/video_core/engines/maxwell_3d.cpp
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2019-04-23 01:27:36 +0200
committerFernando Sahmkow <fsahmkow27@gmail.com>2019-04-23 01:27:36 +0200
commit701ce1c9d03c6c6a70965cbba3e961ab06abf49c (patch)
treec7c50f939d9f79aa29900c62e8a42d224778c354 /src/video_core/engines/maxwell_3d.cpp
parentIntroduce skeleton of the GPU Compute Engine. (diff)
downloadyuzu-701ce1c9d03c6c6a70965cbba3e961ab06abf49c.tar
yuzu-701ce1c9d03c6c6a70965cbba3e961ab06abf49c.tar.gz
yuzu-701ce1c9d03c6c6a70965cbba3e961ab06abf49c.tar.bz2
yuzu-701ce1c9d03c6c6a70965cbba3e961ab06abf49c.tar.lz
yuzu-701ce1c9d03c6c6a70965cbba3e961ab06abf49c.tar.xz
yuzu-701ce1c9d03c6c6a70965cbba3e961ab06abf49c.tar.zst
yuzu-701ce1c9d03c6c6a70965cbba3e961ab06abf49c.zip
Diffstat (limited to '')
-rw-r--r--src/video_core/engines/maxwell_3d.cpp16
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..78810dbbb 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): {
+ 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;
}