panfrost: do not re-fetch compressed formats

We store this in the device on start-up, no need to do it again.

Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31419>
This commit is contained in:
Erik Faye-Lund 2024-09-26 15:05:52 +02:00 committed by Marge Bot
parent 23cad7c695
commit 6f1b5f3eea

View file

@ -47,8 +47,7 @@ panfrost_supports_compressed_format(struct panfrost_device *dev,
unsigned texfeat_bit)
{
assert(texfeat_bit < 32);
return panfrost_query_compressed_formats(&dev->kmod.props) &
BITFIELD_BIT(texfeat_bit);
return dev->compressed_formats & BITFIELD_BIT(texfeat_bit);
}
void