diff options
| author | 2020-02-10 10:32:51 -0400 | |
|---|---|---|
| committer | 2020-02-10 10:44:54 -0400 | |
| commit | 8e9a4944dbbb4a22d149bb989faf32db0a979766 (patch) | |
| tree | 2c24fc758046e03929dcd8e42c76674580e0a34e /src/video_core/engines | |
| parent | Maxwell3D: Correct query reporting. (diff) | |
| download | yuzu-8e9a4944dbbb4a22d149bb989faf32db0a979766.tar.gz yuzu-8e9a4944dbbb4a22d149bb989faf32db0a979766.tar.xz yuzu-8e9a4944dbbb4a22d149bb989faf32db0a979766.zip | |
GPU: Implement GPU Clock correctly.
Diffstat (limited to 'src/video_core/engines')
| -rw-r--r-- | src/video_core/engines/maxwell_3d.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/video_core/engines/maxwell_3d.cpp b/src/video_core/engines/maxwell_3d.cpp index 2a5855795..a7e1dee04 100644 --- a/src/video_core/engines/maxwell_3d.cpp +++ b/src/video_core/engines/maxwell_3d.cpp | |||
| @@ -9,6 +9,7 @@ | |||
| 9 | #include "core/core_timing.h" | 9 | #include "core/core_timing.h" |
| 10 | #include "video_core/engines/maxwell_3d.h" | 10 | #include "video_core/engines/maxwell_3d.h" |
| 11 | #include "video_core/engines/shader_type.h" | 11 | #include "video_core/engines/shader_type.h" |
| 12 | #include "video_core/gpu.h" | ||
| 12 | #include "video_core/memory_manager.h" | 13 | #include "video_core/memory_manager.h" |
| 13 | #include "video_core/rasterizer_interface.h" | 14 | #include "video_core/rasterizer_interface.h" |
| 14 | #include "video_core/textures/texture.h" | 15 | #include "video_core/textures/texture.h" |
| @@ -533,7 +534,7 @@ void Maxwell3D::StampQueryResult(u64 payload, bool long_query) { | |||
| 533 | LongQueryResult query_result{}; | 534 | LongQueryResult query_result{}; |
| 534 | query_result.value = payload; | 535 | query_result.value = payload; |
| 535 | // TODO(Subv): Generate a real GPU timestamp and write it here instead of CoreTiming | 536 | // TODO(Subv): Generate a real GPU timestamp and write it here instead of CoreTiming |
| 536 | query_result.timestamp = system.CoreTiming().GetTicks(); | 537 | query_result.timestamp = system.GPU().GetTicks(); |
| 537 | memory_manager.WriteBlock(sequence_address, &query_result, sizeof(query_result)); | 538 | memory_manager.WriteBlock(sequence_address, &query_result, sizeof(query_result)); |
| 538 | } else { | 539 | } else { |
| 539 | memory_manager.Write<u32>(sequence_address, static_cast<u32>(payload)); | 540 | memory_manager.Write<u32>(sequence_address, static_cast<u32>(payload)); |