SWDEV-305752 - OCL WIN Conformance select test fail
unmap should complete before working on the other mapping API Change-Id: I27517888f3112d1113894cdbcb7a786321a3e554
このコミットが含まれているのは:
@@ -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
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする