iris: Explicitly rely on gallium fallbacks for YUV

iris_is_format_supported has been returning false for YUV pipe formats.
We're going to update isl_format_for_pipe_format to map some YUV pipe
formats, but we don't want iris_is_format_supported to start returning
true for them.

Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14355>
This commit is contained in:
Nanley Chery 2021-12-27 19:01:52 -05:00 committed by Marge Bot
parent b5e41c8c2d
commit 514897ef41

View file

@ -121,6 +121,10 @@ iris_is_format_supported(struct pipe_screen *pscreen,
if (pformat == PIPE_FORMAT_NONE)
return true;
/* Rely on gallium fallbacks for better YUV format support. */
if (util_format_is_yuv(pformat))
return false;
enum isl_format format = isl_format_for_pipe_format(pformat);
if (format == ISL_FORMAT_UNSUPPORTED)