From 339397660e8821eea7f168455b7d9cce205e008a Mon Sep 17 00:00:00 2001 From: foreman Date: Tue, 29 Jan 2019 15:06:00 -0500 Subject: [PATCH] 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: dd468d8c093279546900254b97374653b9eb144a] --- projects/clr/rocclr/runtime/platform/memory.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/projects/clr/rocclr/runtime/platform/memory.cpp b/projects/clr/rocclr/runtime/platform/memory.cpp index 194169d48a..26cbbfd5b9 100644 --- a/projects/clr/rocclr/runtime/platform/memory.cpp +++ b/projects/clr/rocclr/runtime/platform/memory.cpp @@ -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 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; }