Extend testing of CL_UNORM_INT_101010_2
All existing tests in test_image_streams, that are capable of testing image formats using the CL_UNORM_INT_101010_2 data type, now do so.
get_32_bit_image_format()- Added (although this function isn't used anywhere).compare_scanlines()- As you suggested, no need for a special case because all 32 bits inCL_UNORM_INT_101010_2are used.get_format_max_int()- Added.get_format_min_int()- Added.read_image_pixel<T>()- Already present inread_image_pixel_float(). Seems likeread_image_pixel<T>()is used forintanduintwhilefloathas a separate function. As a side note, it looks like the cases for 101010, 555 and 565 inread_image_pixel<T>()are wrong, they are missing the normalisation divisions.get_pixel_bytes()- Added.
Any objections to merging this PR ahead of the next teleconference? It is blocking the addition of testing for the 2_101010 format added by https://github.com/KhronosGroup/OpenCL-Docs/pull/1223.
I'm going to go ahead and merge this. Since these are purely additions I think the risk of problems for implementations that do not support the 101010_2 format is low. If we find problems we can always revert it.
@lakshmih FYI.
Thanks!