diff options
author | Lioncash <mathew1800@gmail.com> | 2019-06-05 01:52:42 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2019-06-05 02:31:24 +0200 |
commit | 42f5fd0ab32b117901d0cae228103811719606ff (patch) | |
tree | 66fed7f7c35ba2448006f1393a9b868ed29632d5 /src/core/hle/service/nvdrv/devices/nvhost_ctrl_gpu.cpp | |
parent | core/core_timing_utils: Simplify overload set (diff) | |
download | yuzu-42f5fd0ab32b117901d0cae228103811719606ff.tar yuzu-42f5fd0ab32b117901d0cae228103811719606ff.tar.gz yuzu-42f5fd0ab32b117901d0cae228103811719606ff.tar.bz2 yuzu-42f5fd0ab32b117901d0cae228103811719606ff.tar.lz yuzu-42f5fd0ab32b117901d0cae228103811719606ff.tar.xz yuzu-42f5fd0ab32b117901d0cae228103811719606ff.tar.zst yuzu-42f5fd0ab32b117901d0cae228103811719606ff.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/service/nvdrv/devices/nvhost_ctrl_gpu.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/hle/service/nvdrv/devices/nvhost_ctrl_gpu.cpp b/src/core/hle/service/nvdrv/devices/nvhost_ctrl_gpu.cpp index 45812d238..f425305d6 100644 --- a/src/core/hle/service/nvdrv/devices/nvhost_ctrl_gpu.cpp +++ b/src/core/hle/service/nvdrv/devices/nvhost_ctrl_gpu.cpp @@ -185,7 +185,8 @@ u32 nvhost_ctrl_gpu::GetGpuTime(const std::vector<u8>& input, std::vector<u8>& o IoctlGetGpuTime params{}; std::memcpy(¶ms, input.data(), input.size()); - params.gpu_time = Core::Timing::cyclesToNs(Core::System::GetInstance().CoreTiming().GetTicks()); + const auto ns = Core::Timing::cyclesToNs(Core::System::GetInstance().CoreTiming().GetTicks()); + params.gpu_time = static_cast<u64_le>(ns.count()); std::memcpy(output.data(), ¶ms, output.size()); return 0; } |