diff --git a/src/gallium/drivers/panfrost/driinfo_panfrost.h b/src/gallium/drivers/panfrost/driinfo_panfrost.h index 031726ba6b1..2c11602a95d 100644 --- a/src/gallium/drivers/panfrost/driinfo_panfrost.h +++ b/src/gallium/drivers/panfrost/driinfo_panfrost.h @@ -1 +1,4 @@ /* panfrost specific driconf options */ +DRI_CONF_SECTION_PERFORMANCE + DRI_CONF_OPT_B(pan_force_afbc_packing, false, "Use AFBC-P for textures") +DRI_CONF_SECTION_END diff --git a/src/gallium/drivers/panfrost/pan_screen.c b/src/gallium/drivers/panfrost/pan_screen.c index c8894dbd8f1..23bd6de2627 100644 --- a/src/gallium/drivers/panfrost/pan_screen.c +++ b/src/gallium/drivers/panfrost/pan_screen.c @@ -857,6 +857,9 @@ panfrost_create_screen(int fd, const struct pipe_screen_config *config, } screen->force_afbc_packing = dev->debug & PAN_DBG_FORCE_PACK; + if (!screen->force_afbc_packing) + screen->force_afbc_packing = driQueryOptionb(config->options, + "pan_force_afbc_packing"); dev->ro = ro;