gallium/tests: Remove format desc null checks
Signed-off-by: Konstantin Seurer <konstantin.seurer@gmail.com> Reviewed-by: Alyssa Rosenzweig <alyssa@collabora.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17490>
This commit is contained in:
parent
c48497593a
commit
fe5c7f1418
|
@ -177,12 +177,11 @@ int main(int argc, char** argv)
|
|||
unsigned output_format_size;
|
||||
unsigned output_normalized = 0;
|
||||
|
||||
if (!output_format_desc
|
||||
|| !fetch_rgba
|
||||
|| !output_format_pack->pack_rgba_float
|
||||
|| output_format_desc->colorspace != UTIL_FORMAT_COLORSPACE_RGB
|
||||
|| output_format_desc->layout != UTIL_FORMAT_LAYOUT_PLAIN
|
||||
|| !translate_is_output_format_supported(output_format))
|
||||
if (!fetch_rgba
|
||||
|| !output_format_pack->pack_rgba_float
|
||||
|| output_format_desc->colorspace != UTIL_FORMAT_COLORSPACE_RGB
|
||||
|| output_format_desc->layout != UTIL_FORMAT_LAYOUT_PLAIN
|
||||
|| !translate_is_output_format_supported(output_format))
|
||||
continue;
|
||||
|
||||
for(i = 0; i < output_format_desc->nr_channels; ++i)
|
||||
|
@ -206,12 +205,11 @@ int main(int argc, char** argv)
|
|||
unsigned input_normalized = 0;
|
||||
boolean input_is_float = FALSE;
|
||||
|
||||
if (!input_format_desc
|
||||
|| !fetch_rgba
|
||||
|| !input_format_pack->pack_rgba_float
|
||||
|| input_format_desc->colorspace != UTIL_FORMAT_COLORSPACE_RGB
|
||||
|| input_format_desc->layout != UTIL_FORMAT_LAYOUT_PLAIN
|
||||
|| !translate_is_output_format_supported(input_format))
|
||||
if (!fetch_rgba
|
||||
|| !input_format_pack->pack_rgba_float
|
||||
|| input_format_desc->colorspace != UTIL_FORMAT_COLORSPACE_RGB
|
||||
|| input_format_desc->layout != UTIL_FORMAT_LAYOUT_PLAIN
|
||||
|| !translate_is_output_format_supported(input_format))
|
||||
continue;
|
||||
|
||||
input_format_size = util_format_get_stride(input_format, 1);
|
||||
|
|
Loading…
Reference in New Issue