[Beignet] [PATCH] enable CL_RG and CL_RA format for cl image

Guo Yejun yejun.guo at intel.com
Sun Jul 20 17:25:28 PDT 2014


Signed-off-by: Guo Yejun <yejun.guo at intel.com>
---
 src/cl_image.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/cl_image.c b/src/cl_image.c
index ced9789..49b682d 100644
--- a/src/cl_image.c
+++ b/src/cl_image.c
@@ -134,7 +134,6 @@ cl_image_get_intel_format(const cl_image_format *fmt)
         case CL_UNSIGNED_INT32: return I965_SURFACEFORMAT_R32_UINT;
         default: return INTEL_UNSUPPORTED_FORMAT;
       };
-#if 0
     case CL_RG:
     case CL_RA:
       switch (type) {
@@ -152,6 +151,7 @@ cl_image_get_intel_format(const cl_image_format *fmt)
         case CL_UNSIGNED_INT32: return I965_SURFACEFORMAT_R32G32_UINT;
         default: return INTEL_UNSUPPORTED_FORMAT;
       };
+#if 0
     case CL_RGB:
     case CL_RGBx:
       switch (type) {
-- 
1.8.3.2



More information about the Beignet mailing list