amdgpu: return perfcounter on EOP
This commit is contained in:
parent
b849b07442
commit
37014394fd
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue