mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-11-16 03:00:47 +01:00
amdgpu: return perfcounter on EOP
This commit is contained in:
1 parent
b849b07442
commit
37014394fd
1 file changed
+5
@@ -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();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user