summaryrefslogtreecommitdiff
path: root/src/cl_image.c
diff options
context:
space:
mode:
authorGuo Yejun <yejun.guo@intel.com>2015-06-16 11:05:24 +0800
committerYang Rong <rong.r.yang@intel.com>2015-06-19 17:03:37 +0800
commite64445f4a54b09db1206d3d07b9c2c454598992d (patch)
tree669365c593b0acd3310531764dcf87a56effa1f6 /src/cl_image.c
parent2bc0db47c2793983b894a35c34d764884722974d (diff)
enable CL_RG + CL_UNORM_INT8 for image
Signed-off-by: Guo Yejun <yejun.guo@intel.com> Reviewed-by: Yang, Rong <rong.r.yang@intel.com>
Diffstat (limited to 'src/cl_image.c')
-rw-r--r--src/cl_image.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cl_image.c b/src/cl_image.c
index 9907f903..3a4be825 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: