SWDEV-305752 - OCL WIN Conformance select test fail

unmap should complete before working on the other mapping API

Change-Id: I27517888f3112d1113894cdbcb7a786321a3e554
このコミットが含まれているのは:
Alex Xie
2021-10-27 02:27:48 -04:00
コミット 1ced9040b6
+12 -1
ファイルの表示
@@ -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