mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 14:55:24 +08:00
fix: zeDeviceGetGlobalTimestamp to use submisison
Related-To: GSD-10253, GSD-9467, GSD-9381, NEO-11908 When EnableGlobalTimestampViaSubmission is set then zeDeviceGetGlobalTimestamp uses immediate cmd submission method to get GPU time. Signed-off-by: Chandio, Bibrak Qamar <bibrak.qamar.chandio@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
ad881e3f2e
commit
ab2e831a4a
@@ -17,7 +17,7 @@ class MockDeviceTimeDrm : public DeviceTimeDrm {
|
||||
using DeviceTimeDrm::DeviceTimeDrm;
|
||||
using DeviceTimeDrm::pDrm;
|
||||
|
||||
bool getGpuCpuTimeImpl(TimeStampData *pGpuCpuTime, OSTime *osTime) override {
|
||||
TimeQueryStatus getGpuCpuTimeImpl(TimeStampData *pGpuCpuTime, OSTime *osTime) override {
|
||||
getGpuCpuTimeImplCalled++;
|
||||
if (callBaseGetGpuCpuTimeImpl) {
|
||||
return DeviceTimeDrm::getGpuCpuTimeImpl(pGpuCpuTime, osTime);
|
||||
@@ -34,7 +34,7 @@ class MockDeviceTimeDrm : public DeviceTimeDrm {
|
||||
}
|
||||
|
||||
bool callBaseGetGpuCpuTimeImpl = true;
|
||||
bool getGpuCpuTimeImplResult = true;
|
||||
TimeQueryStatus getGpuCpuTimeImplResult = TimeQueryStatus::success;
|
||||
TimeStampData gpuCpuTimeValue{};
|
||||
uint32_t getGpuCpuTimeImplCalled = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user