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: b8bfbbdf66 ("panvk: check against texfeat_bit")
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31767>
This commit is contained in:
Erik Faye-Lund 2024-10-16 12:11:14 +02:00 committed by Marge Bot
parent 103ad15ece
commit 19fdfd6429

View file

@ -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;
}