mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
ULT: correct mock os layer not to increment counter in case of failure
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:

committed by
Compute-Runtime-Automation

parent
d79e799bea
commit
35aff13178
@ -237,7 +237,9 @@ int drmContextDestroy(NEO::GemContextDestroy *destroy) {
|
||||
|
||||
int drmVirtualMemoryCreate(NEO::GemVmControl *control) {
|
||||
assert(control);
|
||||
control->vmId = ++vmId;
|
||||
if (!failOnVirtualMemoryCreate) {
|
||||
control->vmId = ++vmId;
|
||||
}
|
||||
return failOnVirtualMemoryCreate;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user