diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2020-02-13 23:16:07 +0100 |
---|---|---|
committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2020-02-13 23:16:07 +0100 |
commit | d6ed31b9faeb2b1ee7c04098e614a73ca11869af (patch) | |
tree | 9771a482e3e0bb5004bae4728820b969013918a5 /src/video_core/engines/maxwell_3d.cpp | |
parent | GPU: Implement GPU Clock correctly. (diff) | |
download | yuzu-d6ed31b9faeb2b1ee7c04098e614a73ca11869af.tar yuzu-d6ed31b9faeb2b1ee7c04098e614a73ca11869af.tar.gz yuzu-d6ed31b9faeb2b1ee7c04098e614a73ca11869af.tar.bz2 yuzu-d6ed31b9faeb2b1ee7c04098e614a73ca11869af.tar.lz yuzu-d6ed31b9faeb2b1ee7c04098e614a73ca11869af.tar.xz yuzu-d6ed31b9faeb2b1ee7c04098e614a73ca11869af.tar.zst yuzu-d6ed31b9faeb2b1ee7c04098e614a73ca11869af.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/engines/maxwell_3d.cpp | 7 |
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) { // Write the 128-bit result structure in long mode. Note: We emulate an infinitely fast // GPU, this command may actually take a while to complete in real hardware due to GPU // wait queues. - 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.GPU().GetTicks(); + LongQueryResult query_result{payload, system.GPU().GetTicks()}; memory_manager.WriteBlock(sequence_address, &query_result, sizeof(query_result)); } else { memory_manager.Write<u32>(sequence_address, static_cast<u32>(payload)); @@ -548,7 +545,7 @@ void Maxwell3D::ProcessQueryGet() { switch (regs.query.query_get.operation) { case Regs::QueryOperation::Release: { - u64 result = regs.query.query_sequence; + const u64 result = regs.query.query_sequence; StampQueryResult(result, regs.query.query_get.short_query == 0); break; } |