diff options
author | Guo Yejun <yejun.guo@intel.com> | 2015-06-16 11:05:24 +0800 |
---|---|---|
committer | Yang Rong <rong.r.yang@intel.com> | 2015-06-19 17:03:37 +0800 |
commit | e64445f4a54b09db1206d3d07b9c2c454598992d (patch) | |
tree | 669365c593b0acd3310531764dcf87a56effa1f6 | |
parent | 2bc0db47c2793983b894a35c34d764884722974d (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>
-rw-r--r-- | src/cl_image.c | 5 |
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: |