Skip to content

Commit

Permalink
Fix failing image tests for CL_UNORM_INT_101010_2
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
ahesham-arm committed Mar 13, 2024
1 parent d8ad10d commit 88e3ae2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test_common/harness/imageHelpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 88e3ae2

Please sign in to comment.