diff options
author | Guo Yejun <yejun.guo@intel.com> | 2015-07-02 14:05:46 +0800 |
---|---|---|
committer | Yang Rong <rong.r.yang@intel.com> | 2015-07-03 15:04:24 +0800 |
commit | 24593035682ae5cdb0802bb489633d26fe998073 (patch) | |
tree | fcb32d6fe507a4f6b1099810b400c654d8a35141 /src/cl_image.c | |
parent | 7945b0cd4e97c5c409d73e8a9cffd66e84888719 (diff) |
enable CL_UNSIGNED_INT8 for CL_RG to fix regression
the regression is caused when only enable CL_UNORM_INT8 for CL_RG,
the reason is that during the image copy implementation with internal
kernel, all formats are considerd as integer format, it becomes
unknown since CL_UNSIGNED_INT8 is not enabled yet.
Signed-off-by: Guo Yejun <yejun.guo@intel.com>
Reviewed-by: "Yang, Rong R" <rong.r.yang@intel.com>
Diffstat (limited to 'src/cl_image.c')
-rw-r--r-- | src/cl_image.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cl_image.c b/src/cl_image.c index 3a4be825..d58bdf38 100644 --- a/src/cl_image.c +++ b/src/cl_image.c @@ -137,6 +137,7 @@ cl_image_get_intel_format(const cl_image_format *fmt) case CL_RG: switch (type) { case CL_UNORM_INT8: return I965_SURFACEFORMAT_R8G8_UNORM; + case CL_UNSIGNED_INT8: return I965_SURFACEFORMAT_R8G8_UINT; default: return INTEL_UNSUPPORTED_FORMAT; }; #if 0 |