P4 to Git Change 1738908 by gandryey@gera-w8 on 2019/02/01 11:59:05
SWDEV-79445 - OCL generic changes and code clean-up - Separate DVR and Adobe interop paths for RGB101010 format Affected files ... ... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_gl.cpp#63 edit
This commit is contained in:
@@ -994,13 +994,19 @@ bool getCLFormatFromGL(const Context& amdContext, GLint gliInternalFormat,
|
||||
|
||||
switch (gliInternalFormat) {
|
||||
case GL_RGB10_EXT:
|
||||
case GL_RGB10_A2:
|
||||
pclImageFormat->image_channel_order = CL_RGBA;
|
||||
pclImageFormat->image_channel_data_type = CL_UNORM_INT_101010;
|
||||
*piBytesPerPixel = 4;
|
||||
bRetVal = true;
|
||||
break;
|
||||
|
||||
case GL_RGB10_A2:
|
||||
pclImageFormat->image_channel_order = CL_RGB;
|
||||
pclImageFormat->image_channel_data_type = CL_UNORM_INT_101010;
|
||||
*piBytesPerPixel = 4;
|
||||
bRetVal = true;
|
||||
break;
|
||||
|
||||
case GL_BGR8_ATI:
|
||||
case GL_BGRA8_ATI:
|
||||
pclImageFormat->image_channel_order = CL_BGRA;
|
||||
|
||||
Reference in New Issue
Block a user