Remove mapping on free.

Change-Id: I0ec5783362c9091edf98f893b062faaaad125522
Signed-off-by: Mrozek, Michal <michal.mrozek@intel.com>
This commit is contained in:
Mrozek, Michal
2019-09-06 13:22:50 +02:00
committed by sys_ocldev
parent 3e4dd67f09
commit dface02b19
2 changed files with 20 additions and 0 deletions

View File

@ -3467,6 +3467,10 @@ cl_int clMemFreeINTEL(
return CL_INVALID_VALUE;
}
if (neoContext->getSVMAllocsManager()->getSvmMapOperation(ptr)) {
neoContext->getSVMAllocsManager()->removeSvmMapOperation(ptr);
}
return CL_SUCCESS;
}