P4 to Git Change 1732709 by gandryey@gera-w8 on 2019/01/18 14:18:03
SWDEV-79445 - OCL generic changes and code clean-up
- Add 101010 GL interop formats mapping into CL_RGBA. The change will make sure the channel order consistency between OGL and OCL
Affected files ...
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_gl.cpp#62 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldefs.hpp#47 edit
[ROCm/clr commit: 0b466ae6ff]
Этот коммит содержится в:
@@ -995,7 +995,7 @@ bool getCLFormatFromGL(const Context& amdContext, GLint gliInternalFormat,
|
||||
switch (gliInternalFormat) {
|
||||
case GL_RGB10_EXT:
|
||||
case GL_RGB10_A2:
|
||||
pclImageFormat->image_channel_order = CL_RGB;
|
||||
pclImageFormat->image_channel_order = CL_RGBA;
|
||||
pclImageFormat->image_channel_data_type = CL_UNORM_INT_101010;
|
||||
*piBytesPerPixel = 4;
|
||||
bRetVal = true;
|
||||
|
||||
Ссылка в новой задаче
Block a user