From 37014394fd3c783264f69cd3b4ebd5cd32a240c2 Mon Sep 17 00:00:00 2001 From: psucien Date: Fri, 10 May 2024 23:16:56 +0200 Subject: [PATCH] amdgpu: return perfcounter on EOP --- src/video_core/amdgpu/pm4_cmds.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/video_core/amdgpu/pm4_cmds.h b/src/video_core/amdgpu/pm4_cmds.h index c9870168..241367b7 100644 --- a/src/video_core/amdgpu/pm4_cmds.h +++ b/src/video_core/amdgpu/pm4_cmds.h @@ -5,6 +5,7 @@ #include #include "common/bit_field.h" +#include "common/rdtsc.h" #include "common/types.h" #include "core/platform.h" #include "video_core/amdgpu/pm4_opcodes.h" @@ -306,6 +307,10 @@ struct PM4CmdEventWriteEop { *Address() = DataQWord(); break; } + case DataSelect::PerfCounter: { + *Address() = Common::FencedRDTSC(); + break; + } default: { UNREACHABLE(); }