summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Zach Hilman2018-08-31 23:25:18 -0400
committerGravatar Zach Hilman2018-08-31 23:25:18 -0400
commitf32e28c7b86ebc0b597ad1a270046c66b097eeb3 (patch)
tree307491a51a6cbd99c102ea2e75ebda42f948c6e5
parentfilesystem: Implement OpenReadOnlySaveDataFilesystem (diff)
downloadyuzu-f32e28c7b86ebc0b597ad1a270046c66b097eeb3.tar.gz
yuzu-f32e28c7b86ebc0b597ad1a270046c66b097eeb3.tar.xz
yuzu-f32e28c7b86ebc0b597ad1a270046c66b097eeb3.zip
maxwell_3d: Use CoreTiming for query timestamp
-rw-r--r--src/video_core/engines/maxwell_3d.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/video_core/engines/maxwell_3d.cpp b/src/video_core/engines/maxwell_3d.cpp
index 68ff1e86b..e63ad4d46 100644
--- a/src/video_core/engines/maxwell_3d.cpp
+++ b/src/video_core/engines/maxwell_3d.cpp
@@ -5,6 +5,7 @@
5#include <cinttypes> 5#include <cinttypes>
6#include "common/assert.h" 6#include "common/assert.h"
7#include "core/core.h" 7#include "core/core.h"
8#include "core/core_timing.h"
8#include "core/memory.h" 9#include "core/memory.h"
9#include "video_core/debug_utils/debug_utils.h" 10#include "video_core/debug_utils/debug_utils.h"
10#include "video_core/engines/maxwell_3d.h" 11#include "video_core/engines/maxwell_3d.h"
@@ -194,8 +195,8 @@ void Maxwell3D::ProcessQueryGet() {
194 // wait queues. 195 // wait queues.
195 LongQueryResult query_result{}; 196 LongQueryResult query_result{};
196 query_result.value = result; 197 query_result.value = result;
197 // TODO(Subv): Generate a real GPU timestamp and write it here instead of 0 198 // TODO(Subv): Generate a real GPU timestamp and write it here instead of CoreTiming
198 query_result.timestamp = 0; 199 query_result.timestamp = CoreTiming::GetTicks();
199 Memory::WriteBlock(*address, &query_result, sizeof(query_result)); 200 Memory::WriteBlock(*address, &query_result, sizeof(query_result));
200 } 201 }
201 break; 202 break;