zink: remove needless check

textureCompressionBC is just a short-hand to know is *all* BPTC formats
are supported. We're already checking per format, so we don't need this
coarser check.

Besides, it's also kinda wrong; textureCompressionBC also requires all
BC formats, not just BPTC. In other words, all DXT formats and RGTC
formats were missing from the check.

Acked-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17986>
This commit is contained in:
Erik Faye-Lund
2022-08-09 18:28:55 +02:00
committed by Marge Bot
parent 09676b5817
commit 49e6a55e5e
-7
View File
@@ -1240,13 +1240,6 @@ zink_is_format_supported(struct pipe_screen *pscreen,
return false;
}
if (util_format_is_compressed(format)) {
const struct util_format_description *desc = util_format_description(format);
if (desc->layout == UTIL_FORMAT_LAYOUT_BPTC &&
!screen->info.feats.features.textureCompressionBC)
return false;
}
return true;
}