mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 14:55:24 +08:00
test: ensure thread safety when capturing input params for wait function
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
f6796c7384
commit
adc40934ae
@@ -6805,6 +6805,7 @@ HWTEST_F(DeviceSimpleTests, givenNoGpuHangWhenSynchronizingDeviceThenCallWaitFor
|
||||
csr->latestFlushedTaskCount = 0u;
|
||||
csr->taskCount = taskCountToWait++;
|
||||
csr->flushStamp->setStamp(flushStampToWait++);
|
||||
csr->captureWaitForTaskCountWithKmdNotifyInputParams = true;
|
||||
csr->waitForTaskCountWithKmdNotifyFallbackReturnValue = WaitStatus::ready;
|
||||
}
|
||||
|
||||
@@ -6815,6 +6816,7 @@ HWTEST_F(DeviceSimpleTests, givenNoGpuHangWhenSynchronizingDeviceThenCallWaitFor
|
||||
csr->latestFlushedTaskCount = 0u;
|
||||
csr->taskCount = taskCountToWait++;
|
||||
csr->flushStamp->setStamp(flushStampToWait++);
|
||||
csr->captureWaitForTaskCountWithKmdNotifyInputParams = true;
|
||||
csr->waitForTaskCountWithKmdNotifyFallbackReturnValue = WaitStatus::ready;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user