From 49e6a55e5eae9fbd484bf395ba688efc3a12af1a Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Tue, 9 Aug 2022 18:28:55 +0200 Subject: [PATCH] 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 Part-of: --- src/gallium/drivers/zink/zink_screen.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/gallium/drivers/zink/zink_screen.c b/src/gallium/drivers/zink/zink_screen.c index 6df06459228..cc793850822 100644 --- a/src/gallium/drivers/zink/zink_screen.c +++ b/src/gallium/drivers/zink/zink_screen.c @@ -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; }