P4 to Git Change 1083812 by rili@rili_opencl_stg on 2014/10/02 18:45:51
EPR #406832 - Added flag CL_MEM_KERNEL_READ_AND_WRITE support for clGetSupportedImageFormats Affected files ... ... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_memobj.cpp#70 edit ... //depot/stg/opencl/drivers/opencl/runtime/platform/memory.cpp#110 edit
This commit is contained in:
@@ -1056,7 +1056,7 @@ Image::getSupportedFormats(
|
||||
}
|
||||
// Currently we are not supported sRGB for write_imagef (extension cl_khr_srgb_image_writes)
|
||||
if ((image_type == CL_MEM_OBJECT_IMAGE1D_BUFFER) ||
|
||||
((flags & (CL_MEM_WRITE_ONLY | CL_MEM_READ_WRITE)) != 0)) {
|
||||
((flags & (CL_MEM_WRITE_ONLY | CL_MEM_READ_WRITE | CL_MEM_KERNEL_READ_AND_WRITE)) != 0)) {
|
||||
srgbWriteSupported = false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user