mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-20 22:39:03 +00:00
Test image formats of cl_ext_image_unsigned_10x6_12x4_14x2 (#2375)
This change add the following image formats to the supported image formats: 1. CL_UNSIGNED_INT10X6_EXT 2. CL_UNSIGNED_INT12X4_EXT 3. CL_UNSIGNED_INT14X2_EXT 4. CL_UNORM_INT10X6_EXT 5. CL_UNORM_INT12X4_EXT 6. CL_UNORM_INT14X2_EXT For reference, the specification for `cl_ext_image_unsigned_10x6_12x4_14x2` can be found here: https://github.com/KhronosGroup/OpenCL-Docs/pull/1352 Signed-off-by: Michael Rizkalla <michael.rizkalla@arm.com> Co-authored-by: Michael Rizkalla <michael.rizkalla@arm.com>
This commit is contained in:
@@ -213,6 +213,12 @@ const char *GetChannelTypeName(cl_channel_type type)
|
||||
case CL_UNORM_INT24: return "CL_UNORM_INT24";
|
||||
case CL_UNSIGNED_INT_RAW10_EXT: return "CL_UNSIGNED_INT_RAW10_EXT";
|
||||
case CL_UNSIGNED_INT_RAW12_EXT: return "CL_UNSIGNED_INT_RAW12_EXT";
|
||||
case CL_UNSIGNED_INT10X6_EXT: return "CL_UNSIGNED_INT10X6_EXT";
|
||||
case CL_UNSIGNED_INT12X4_EXT: return "CL_UNSIGNED_INT12X4_EXT";
|
||||
case CL_UNSIGNED_INT14X2_EXT: return "CL_UNSIGNED_INT14X2_EXT";
|
||||
case CL_UNORM_INT10X6_EXT: return "CL_UNORM_INT10X6_EXT";
|
||||
case CL_UNORM_INT12X4_EXT: return "CL_UNORM_INT12X4_EXT";
|
||||
case CL_UNORM_INT14X2_EXT: return "CL_UNORM_INT14X2_EXT";
|
||||
default: return NULL;
|
||||
}
|
||||
}
|
||||
@@ -238,10 +244,16 @@ int IsChannelTypeSupported(cl_channel_type type)
|
||||
case CL_UNSIGNED_INT16:
|
||||
case CL_UNSIGNED_INT32:
|
||||
case CL_HALF_FLOAT:
|
||||
case CL_FLOAT: return 1;
|
||||
case CL_FLOAT:
|
||||
#ifdef CL_SFIXED14_APPLE
|
||||
case CL_SFIXED14_APPLE: return 1;
|
||||
case CL_SFIXED14_APPLE:
|
||||
#endif
|
||||
case CL_UNSIGNED_INT10X6_EXT:
|
||||
case CL_UNSIGNED_INT12X4_EXT:
|
||||
case CL_UNSIGNED_INT14X2_EXT:
|
||||
case CL_UNORM_INT10X6_EXT:
|
||||
case CL_UNORM_INT12X4_EXT:
|
||||
case CL_UNORM_INT14X2_EXT: return 1;
|
||||
default: return 0;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user