Disable vendor extension formats from image_from_buffer_fill_positive as the verification step is incorrect and can cause seg fault, e.g. for YUV images (#1657)

This commit is contained in:
Ahmed
2023-03-28 17:16:15 +01:00
committed by GitHub
parent 14f421e54b
commit 9afb918bf5

View File

@@ -719,6 +719,12 @@ int image_from_buffer_fill_positive(cl_device_id device, cl_context context,
for (auto format : formatList)
{
if (!IsChannelOrderSupported(format.image_channel_order)
|| !IsChannelTypeSupported(format.image_channel_data_type))
{
continue;
}
cl_image_desc image_desc = { 0 };
image_desc_init(&image_desc, imageType);