intel/isl: Simplify isl_format_supports_filtering
authorJason Ekstrand <jason@jlekstrand.net>
Tue, 5 Oct 2021 21:09:21 +0000 (16:09 -0500)
committerMarge Bot <eric+marge@anholt.net>
Wed, 6 Oct 2021 15:04:33 +0000 (15:04 +0000)
commit0c618f308cfc81eb547024a3d35f3e0ec230eebd
tree5f740ba348a81265b87250710ba74d91012846f9
parent7cc85dba71cdf6a75ee6625ac5ae5a6798273f18
intel/isl: Simplify isl_format_supports_filtering

For compressed formats, filtering and sampling has always gone together.
This lets us avoid duplicating all those nasty special cases between the
two functions.

Reviewed-by: Nanley Chery <nanley.g.chery@intel.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13206>
src/intel/isl/isl_format.c