summaryrefslogtreecommitdiff
path: root/src/video_core/engines
diff options
context:
space:
mode:
authorGravatar Fernando Sahmkow2020-02-13 18:16:07 -0400
committerGravatar Fernando Sahmkow2020-02-13 18:16:07 -0400
commitd6ed31b9faeb2b1ee7c04098e614a73ca11869af (patch)
tree9771a482e3e0bb5004bae4728820b969013918a5 /src/video_core/engines
parentGPU: Implement GPU Clock correctly. (diff)
downloadyuzu-d6ed31b9faeb2b1ee7c04098e614a73ca11869af.tar.gz
yuzu-d6ed31b9faeb2b1ee7c04098e614a73ca11869af.tar.xz
yuzu-d6ed31b9faeb2b1ee7c04098e614a73ca11869af.zip
GPU: Address Feedback.
Diffstat (limited to 'src/video_core/engines')
-rw-r--r--src/video_core/engines/maxwell_3d.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/video_core/engines/maxwell_3d.cpp b/src/video_core/engines/maxwell_3d.cpp
index a7e1dee04..0b3e8749b 100644
--- a/src/video_core/engines/maxwell_3d.cpp
+++ b/src/video_core/engines/maxwell_3d.cpp
@@ -531,10 +531,7 @@ void Maxwell3D::StampQueryResult(u64 payload, bool long_query) {
531 // Write the 128-bit result structure in long mode. Note: We emulate an infinitely fast 531 // Write the 128-bit result structure in long mode. Note: We emulate an infinitely fast
532 // GPU, this command may actually take a while to complete in real hardware due to GPU 532 // GPU, this command may actually take a while to complete in real hardware due to GPU
533 // wait queues. 533 // wait queues.
534 LongQueryResult query_result{}; 534 LongQueryResult query_result{payload, system.GPU().GetTicks()};
535 query_result.value = payload;
536 // TODO(Subv): Generate a real GPU timestamp and write it here instead of CoreTiming
537 query_result.timestamp = system.GPU().GetTicks();
538 memory_manager.WriteBlock(sequence_address, &query_result, sizeof(query_result)); 535 memory_manager.WriteBlock(sequence_address, &query_result, sizeof(query_result));
539 } else { 536 } else {
540 memory_manager.Write<u32>(sequence_address, static_cast<u32>(payload)); 537 memory_manager.Write<u32>(sequence_address, static_cast<u32>(payload));
@@ -548,7 +545,7 @@ void Maxwell3D::ProcessQueryGet() {
548 545
549 switch (regs.query.query_get.operation) { 546 switch (regs.query.query_get.operation) {
550 case Regs::QueryOperation::Release: { 547 case Regs::QueryOperation::Release: {
551 u64 result = regs.query.query_sequence; 548 const u64 result = regs.query.query_sequence;
552 StampQueryResult(result, regs.query.query_get.short_query == 0); 549 StampQueryResult(result, regs.query.query_get.short_query == 0);
553 break; 550 break;
554 } 551 }