P4 to Git Change 1737174 by gandryey@gera-w8 on 2019/01/29 14:02:23
SWDEV-79445 - OCL generic changes and code clean-up
- Allow CL_RGBA101010 to be accepted as OCL format.
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/platform/memory.cpp#134 edit
[ROCm/clr commit: dd468d8c09]
This commit is contained in:
@@ -1044,6 +1044,8 @@ cl_uint Image::getSupportedFormats(const Context& context, cl_mem_object_type im
|
||||
|
||||
bool Image::Format::isSupported(const Context& context, cl_mem_object_type image_type,
|
||||
cl_mem_flags flags) const {
|
||||
const cl_image_format RGBA10 = {CL_RGBA, CL_UNORM_INT_101010};
|
||||
|
||||
uint numFormats = numSupportedFormats(context, image_type, flags);
|
||||
|
||||
std::vector<cl_image_format> image_formats(numFormats);
|
||||
@@ -1055,6 +1057,9 @@ bool Image::Format::isSupported(const Context& context, cl_mem_object_type image
|
||||
return true;
|
||||
}
|
||||
}
|
||||
if (*this == RGBA10) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user