P4 to Git Change 1084233 by rili@rili_opencl_stg on 2014/10/03 18:05:50
EPR #406832 - Fixed wrong retuen value of numSupportedFormats when flag=CL_MEM_KERNEL_READ_AND_WRITE Affected files ... ... //depot/stg/opencl/drivers/opencl/runtime/platform/memory.cpp#111 edit
Этот коммит содержится в:
@@ -1003,7 +1003,7 @@ Image::numSupportedFormats(const Context& context, cl_mem_object_type image_type
|
||||
}
|
||||
// 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)) {
|
||||
numFormats -= NUM_CHANNEL_ORDER_OF_sRGB;
|
||||
}
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user