P4 to Git Change 1552790 by gandryey@gera-w8 on 2018/05/09 17:18:25
SWDEV-79445 - OCL generic changes and code clean-up - Following CL#1552596. Keep memory validation check for GL acquire command, since it also has GL acquire call in it. Affected files ... ... //depot/stg/opencl/drivers/opencl/runtime/platform/command.cpp#85 edit
This commit is contained in:
@@ -440,11 +440,8 @@ cl_int NDRangeKernelCommand::validateMemory() {
|
||||
}
|
||||
|
||||
bool ExtObjectsCommand::validateMemory() {
|
||||
// Runtime disables deferred memory allocation for single device.
|
||||
// Hence ignore memory validations
|
||||
if (queue()->context().devices().size() == 1) {
|
||||
return true;
|
||||
}
|
||||
// Always process GL objects, even if deferred allocations are disabled,
|
||||
// because processGLResource() calls OGL Acquire().
|
||||
bool retVal = true;
|
||||
for (const auto& it : memObjects_) {
|
||||
device::Memory* mem = it->getDeviceMemory(queue()->device());
|
||||
|
||||
Reference in New Issue
Block a user