mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +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:
@@ -30,6 +30,9 @@ cl_channel_type floatFormats[] = {
|
||||
CL_SNORM_INT16,
|
||||
CL_FLOAT,
|
||||
CL_HALF_FLOAT,
|
||||
CL_UNORM_INT10X6_EXT,
|
||||
CL_UNORM_INT12X4_EXT,
|
||||
CL_UNORM_INT14X2_EXT,
|
||||
(cl_channel_type)-1,
|
||||
};
|
||||
|
||||
@@ -41,9 +44,8 @@ cl_channel_type intFormats[] = {
|
||||
};
|
||||
|
||||
cl_channel_type uintFormats[] = {
|
||||
CL_UNSIGNED_INT8,
|
||||
CL_UNSIGNED_INT16,
|
||||
CL_UNSIGNED_INT32,
|
||||
CL_UNSIGNED_INT8, CL_UNSIGNED_INT16, CL_UNSIGNED_INT32,
|
||||
CL_UNSIGNED_INT10X6_EXT, CL_UNSIGNED_INT12X4_EXT, CL_UNSIGNED_INT14X2_EXT,
|
||||
(cl_channel_type)-1,
|
||||
};
|
||||
|
||||
|
||||
@@ -2152,8 +2152,13 @@ int filter_rounding_errors(int forceCorrectlyRoundedWrites,
|
||||
|| imageInfo->format->image_channel_data_type == CL_SNORM_INT8
|
||||
|| imageInfo->format->image_channel_data_type == CL_SNORM_INT16
|
||||
|| imageInfo->format->image_channel_data_type == CL_UNORM_SHORT_555
|
||||
|| imageInfo->format->image_channel_data_type == CL_UNORM_SHORT_565
|
||||
|| imageInfo->format->image_channel_data_type
|
||||
== CL_UNORM_SHORT_565))
|
||||
== CL_UNORM_INT10X6_EXT
|
||||
|| imageInfo->format->image_channel_data_type
|
||||
== CL_UNORM_INT12X4_EXT
|
||||
|| imageInfo->format->image_channel_data_type
|
||||
== CL_UNORM_INT14X2_EXT))
|
||||
{
|
||||
if (!(fabsf(errors[0]) > 0.6f) && !(fabsf(errors[1]) > 0.6f)
|
||||
&& !(fabsf(errors[2]) > 0.6f) && !(fabsf(errors[3]) > 0.6f))
|
||||
|
||||
Reference in New Issue
Block a user