[Beignet] [PATCH] enable CL_RG + CL_UNORM_INT8 for image
Guo Yejun
yejun.guo at intel.com
Mon Jun 15 20:05:24 PDT 2015
Signed-off-by: Guo Yejun <yejun.guo at intel.com>
---
src/cl_image.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/cl_image.c b/src/cl_image.c
index 9907f90..3a4be82 100644
--- a/src/cl_image.c
+++ b/src/cl_image.c
@@ -134,6 +134,11 @@ cl_image_get_intel_format(const cl_image_format *fmt)
case CL_UNSIGNED_INT32: return I965_SURFACEFORMAT_R32_UINT;
default: return INTEL_UNSUPPORTED_FORMAT;
};
+ case CL_RG:
+ switch (type) {
+ case CL_UNORM_INT8: return I965_SURFACEFORMAT_R8G8_UNORM;
+ default: return INTEL_UNSUPPORTED_FORMAT;
+ };
#if 0
case CL_RG:
case CL_RA:
--
1.9.1
More information about the Beignet
mailing list