mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-09 14:33:04 +08:00
fix: check reset status after completion
Added a logic to check the reset status after the completion to make sure we go through the logic at least once Related-To: GSD-8902 Signed-off-by: Young Jin Yoon <young.jin.yoon@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
aa0441bc63
commit
2c488d9e84
@@ -275,7 +275,7 @@ int DrmMock::ioctl(DrmIoctl request, void *arg) {
|
||||
return storedRetValForGemClose;
|
||||
}
|
||||
if (request == DrmIoctl::getResetStats && arg != nullptr) {
|
||||
ioctlCount.gemResetStats++;
|
||||
ioctlCount.getResetStats++;
|
||||
auto outResetStats = static_cast<ResetStats *>(arg);
|
||||
for (const auto &resetStats : resetStatsToReturn) {
|
||||
if (resetStats.contextId == outResetStats->contextId) {
|
||||
|
||||
Reference in New Issue
Block a user