From 832594bbe28c0cf75c6b2174dc242d9f642b6da4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Wed, 3 Dec 2025 18:12:07 -0500 Subject: [PATCH] panfrost: don't expose 32K textures because st/mesa doesn't support them st/mesa only supports 16k for renderbuffers and rectangle textures, and increasing that to 32k breaks panfrost. Reviewed-by: Erik Faye-Lund Part-of: --- src/gallium/drivers/panfrost/pan_device.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/panfrost/pan_device.h b/src/gallium/drivers/panfrost/pan_device.h index b58c2743877..be7af5739b9 100644 --- a/src/gallium/drivers/panfrost/pan_device.h +++ b/src/gallium/drivers/panfrost/pan_device.h @@ -63,8 +63,11 @@ extern "C" { #define PAN_MAX_CONST_BUFFERS 16 /* TODO: Mali hardware can texture up to 64k textures, but the - * Gallium interface limits us to 32k at the moment */ -#define PAN_MAX_MIP_LEVELS 16 + * Gallium interface limits us to 32k at the moment + * Also dEQP-GLES31.functional.fbo.no_attachments.maximums.all crashes with + * 32k textures. + */ +#define PAN_MAX_MIP_LEVELS 15 /* How many power-of-two levels in the BO cache do we want? 2^12 * minimum chosen as it is the page size that all allocations are