st/mesa: Make transcode_astc also check for non-SRGB format support
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 15 Feb 2022 20:44:30 +0000 (12:44 -0800)
committerMarge Bot <emma+marge@anholt.net>
Wed, 13 Apr 2022 07:58:11 +0000 (07:58 +0000)
commitd4521a2515c16e7e1c876c4556821cddaae7bdd7
tree96a042175ba85094e757e057265f1beaf938e93e
parent7d474c100e159393dce471f64b08e8f3b3411b9d
st/mesa: Make transcode_astc also check for non-SRGB format support

This is probably unnecessary in that all drivers which support the sRGB
format likely also support the non-sRGB format.  But we may as well
check both the formats we use, for documentation if nothing else.

Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Emma Anholt <emma@anholt.net>
Reviewed-by: Nanley Chery <nanley.g.chery@intel.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15875>
src/mesa/state_tracker/st_context.c