summaryrefslogtreecommitdiffstats
path: root/src/video_core/engines
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2020-02-10 15:32:51 +0100
committerFernandoS27 <fsahmkow27@gmail.com>2020-02-10 15:44:54 +0100
commit8e9a4944dbbb4a22d149bb989faf32db0a979766 (patch)
tree2c24fc758046e03929dcd8e42c76674580e0a34e /src/video_core/engines
parentMaxwell3D: Correct query reporting. (diff)
downloadyuzu-8e9a4944dbbb4a22d149bb989faf32db0a979766.tar
yuzu-8e9a4944dbbb4a22d149bb989faf32db0a979766.tar.gz
yuzu-8e9a4944dbbb4a22d149bb989faf32db0a979766.tar.bz2
yuzu-8e9a4944dbbb4a22d149bb989faf32db0a979766.tar.lz
yuzu-8e9a4944dbbb4a22d149bb989faf32db0a979766.tar.xz
yuzu-8e9a4944dbbb4a22d149bb989faf32db0a979766.tar.zst
yuzu-8e9a4944dbbb4a22d149bb989faf32db0a979766.zip
Diffstat (limited to 'src/video_core/engines')
-rw-r--r--src/video_core/engines/maxwell_3d.cpp3
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 @@
#include "core/core_timing.h"
#include "video_core/engines/maxwell_3d.h"
#include "video_core/engines/shader_type.h"
+#include "video_core/gpu.h"
#include "video_core/memory_manager.h"
#include "video_core/rasterizer_interface.h"
#include "video_core/textures/texture.h"
@@ -533,7 +534,7 @@ void Maxwell3D::StampQueryResult(u64 payload, bool long_query) {
LongQueryResult query_result{};
query_result.value = payload;
// TODO(Subv): Generate a real GPU timestamp and write it here instead of CoreTiming
- query_result.timestamp = system.CoreTiming().GetTicks();
+ query_result.timestamp = system.GPU().GetTicks();
memory_manager.WriteBlock(sequence_address, &query_result, sizeof(query_result));
} else {
memory_manager.Write<u32>(sequence_address, static_cast<u32>(payload));