From 19fdfd64294f88078993781a500c21f4d02dbbe7 Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Wed, 16 Oct 2024 12:11:14 +0200 Subject: [PATCH] panvk: drop needless assert The value can't be larger than 31 here anyway, due to the bitfield width. So the assert is completely needless. CID: 1633082 Fixes: b8bfbbdf66a ("panvk: check against texfeat_bit") Reviewed-by: Boris Brezillon Part-of: --- src/panfrost/vulkan/panvk_physical_device.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/panfrost/vulkan/panvk_physical_device.c b/src/panfrost/vulkan/panvk_physical_device.c index 8f97490f01d..ce2274cf027 100644 --- a/src/panfrost/vulkan/panvk_physical_device.c +++ b/src/panfrost/vulkan/panvk_physical_device.c @@ -963,8 +963,6 @@ format_is_supported(struct panvk_physical_device *physical_device, uint32_t supported_compr_fmts = panfrost_query_compressed_formats(&physical_device->kmod.props); - assert(fmt.texfeat_bit < 32); - if (!(BITFIELD_BIT(fmt.texfeat_bit) & supported_compr_fmts)) return false; }