amdgpu: return perfcounter on EOP

This commit is contained in:
psucien 2024-05-10 23:16:56 +02:00
parent b849b07442
commit 37014394fd
1 changed files with 5 additions and 0 deletions

View File

@ -5,6 +5,7 @@
#include <cstring>
#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<u64>() = DataQWord();
break;
}
case DataSelect::PerfCounter: {
*Address<u64>() = Common::FencedRDTSC();
break;
}
default: {
UNREACHABLE();
}