SWDEV-305752 - OCL WIN Conformance select test fail

unmap should complete before working on the other mapping API

Change-Id: I27517888f3112d1113894cdbcb7a786321a3e554


[ROCm/clr commit: 1ced9040b6]
Šī revīzija ir iekļauta:
Alex Xie
2021-10-27 02:27:48 -04:00
vecāks 267c4fbc62
revīzija 3be7aef366
+12 -1
Parādīt failu
@@ -3518,13 +3518,24 @@ RUNTIME_ENTRY(cl_int, clEnqueueUnmapMemObject,
return CL_MEM_OBJECT_ALLOCATION_FAILURE;
}
device::Memory* mem = amdMemory->getDeviceMemory(hostQueue.device());
bool blocking = false;
if (mem->isPersistentMapped()) {
blocking = true;
}
amdMemory->decMapCount();
command->enqueue();
if (blocking) {
LogInfo("blocking wait in unmapping function");
command->awaitCompletion();
}
*not_null(event) = as_cl(&command->event());
if (event == NULL) {
command->release();
}
amdMemory->decMapCount();
return CL_SUCCESS;
}
RUNTIME_EXIT