mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user