Fix failing image tests for CL_UNORM_INT_101010_2 (#1917)

Add support for `CL_UNORM_INT_101010_2` in the `get_pixel_size` helper
function. This fixes the following tests:
* memInfo_image_from_buffer_positive
* image_from_buffer_alignment_negative
* imageInfo_image_from_buffer_positive

Signed-off-by: Ahmed Hesham <ahmed.hesham@arm.com>
This commit is contained in:
Ahmed Hesham
2024-03-20 11:30:36 +00:00
committed by GitHub
parent da4a30d394
commit 0deddf2ce7

View File

@@ -286,6 +286,7 @@ uint32_t get_pixel_size(const cl_image_format *format)
case CL_FLOAT:
return get_format_channel_count(format) * sizeof(cl_float);
case CL_UNORM_INT_101010_2: return 4;
default: return 0;
}