amdgpu: return perfcounter on EOP
This commit is contained in:
parent
b849b07442
commit
37014394fd
|
@ -5,6 +5,7 @@
|
||||||
|
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
#include "common/bit_field.h"
|
#include "common/bit_field.h"
|
||||||
|
#include "common/rdtsc.h"
|
||||||
#include "common/types.h"
|
#include "common/types.h"
|
||||||
#include "core/platform.h"
|
#include "core/platform.h"
|
||||||
#include "video_core/amdgpu/pm4_opcodes.h"
|
#include "video_core/amdgpu/pm4_opcodes.h"
|
||||||
|
@ -306,6 +307,10 @@ struct PM4CmdEventWriteEop {
|
||||||
*Address<u64>() = DataQWord();
|
*Address<u64>() = DataQWord();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case DataSelect::PerfCounter: {
|
||||||
|
*Address<u64>() = Common::FencedRDTSC();
|
||||||
|
break;
|
||||||
|
}
|
||||||
default: {
|
default: {
|
||||||
UNREACHABLE();
|
UNREACHABLE();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue