diff --git a/src/gallium/drivers/panfrost/pan_device.c b/src/gallium/drivers/panfrost/pan_device.c index dde0ec0f11b..63d6ca52dba 100644 --- a/src/gallium/drivers/panfrost/pan_device.c +++ b/src/gallium/drivers/panfrost/pan_device.c @@ -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