mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
Map/unmap enqueue fixes [5/n]: Unify offset calculation
Change-Id: I53eafe89532d43c5cf5139ed3fac0a87619dc7a3
This commit is contained in:

committed by
sys_ocldev

parent
63732513bb
commit
b4f79e036f
@ -2482,6 +2482,9 @@ cl_int CL_API_CALL clEnqueueUnmapMemObject(cl_command_queue commandQueue,
|
||||
"event", event);
|
||||
|
||||
if (retVal == CL_SUCCESS) {
|
||||
if (pMemObj->peekClMemObjType() == CL_MEM_OBJECT_PIPE) {
|
||||
return CL_INVALID_MEM_OBJECT;
|
||||
}
|
||||
if (!mappedPtr || mappedPtr != pMemObj->getMappedPtr()) {
|
||||
return CL_INVALID_VALUE;
|
||||
}
|
||||
|
Reference in New Issue
Block a user