From ac557c1e5ae44a342a9c4b623e3f6b3259d5ff3c Mon Sep 17 00:00:00 2001 From: DanielSvoboda Date: Tue, 30 Jul 2024 12:24:52 -0300 Subject: [PATCH] Update pm4_cmds.h --- src/video_core/amdgpu/pm4_cmds.h | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/video_core/amdgpu/pm4_cmds.h b/src/video_core/amdgpu/pm4_cmds.h index 614baf6f8..ae216a30f 100644 --- a/src/video_core/amdgpu/pm4_cmds.h +++ b/src/video_core/amdgpu/pm4_cmds.h @@ -312,13 +312,6 @@ struct PM4CmdEventWriteEop { return data_lo | u64(data_hi) << 32; } - uint64_t GetGpuClock64() const { - auto now = std::chrono::high_resolution_clock::now(); - auto duration = now.time_since_epoch(); - auto ticks = std::chrono::duration_cast(duration).count(); - return static_cast(ticks); - } - void SignalFence() const { switch (data_sel.Value()) { case DataSelect::None: { @@ -333,7 +326,7 @@ struct PM4CmdEventWriteEop { break; } case DataSelect::GpuClock64: { - *Address() = GetGpuClock64(); + // Todo break; } case DataSelect::PerfCounter: {