From 1739c7c88ec38c917e0bef1dd26fe83a2d2c6ccb Mon Sep 17 00:00:00 2001
From: foreman
Date: Wed, 12 Dec 2018 11:24:44 -0500
Subject: [PATCH] P4 to Git Change 1719281 by gandryey@gera-w8 on 2018/12/12
11:13:58
SWDEV-171895 - No Video playback while 10 bit pixel format is enable
- Add GL_RGB10_EXT recognition. The format isn't officially supported in the Khronos OCL specification for GL interop. Thus GL_RGB10_EXT doesn't have any test coverage.
Affected files ...
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_gl.cpp#61 edit
---
opencl/api/opencl/amdocl/cl_gl.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/opencl/api/opencl/amdocl/cl_gl.cpp b/opencl/api/opencl/amdocl/cl_gl.cpp
index e34c9e09a3..d8a9bc2ea8 100644
--- a/opencl/api/opencl/amdocl/cl_gl.cpp
+++ b/opencl/api/opencl/amdocl/cl_gl.cpp
@@ -993,6 +993,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_data_type = CL_UNORM_INT_101010;