From 6f1b5f3eea18ed68caa07e7c5536303935a912c9 Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Thu, 26 Sep 2024 15:05:52 +0200 Subject: [PATCH] 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 Part-of: --- src/gallium/drivers/panfrost/pan_device.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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