Runtime: Only return the format allowed in the spec.
authorZhigang Gong <zhigang.gong@linux.intel.com>
Wed, 4 Sep 2013 07:04:03 +0000 (15:04 +0800)
committerZhigang Gong <zhigang.gong@linux.intel.com>
Wed, 4 Sep 2013 08:21:20 +0000 (16:21 +0800)
commit9a2fd56bc0982499449f2ea84d7e0d5a3d49ad82
tree4fa448daf9660cc979194deaa4153c97b6a72757
parent194d04368bb9dadc489c350524a10c98d48730ee
Runtime: Only return the format allowed in the spec.

For the CL_INTENSITY and CL_LUMINANCE, it only supports
CL_UNORM_INT8,CL_UNORM_INT16, CL_SNORM_INT8, CL_SNORM_INT16,
CL_HALF_FLOAT or CL_FLOAT.

Signed-off-by: Zhigang Gong <zhigang.gong@linux.intel.com>
Reviewed-by: "Song, Ruiling" <ruiling.song@intel.com>
src/cl_image.c