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(); }