mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 20:38:06 +02:00
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:
parent
23cad7c695
commit
6f1b5f3eea
1 changed files with 1 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue