From a24f490488c4622cd6434d668d35c9ce20c2eb98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A1n=20Larumbe?= Date: Fri, 24 Oct 2025 18:41:00 +0100 Subject: [PATCH] panfrost: match a GL object's maximum label length to KMD uAPI limit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit At present, this is the value mandated by the KMD's uAPI, or 4096 bytes. Signed-off-by: Adrián Larumbe Reviewed-by: Erik Faye-Lund Reviewed-by: Eric R. Smith Part-of: --- src/gallium/drivers/panfrost/pan_screen.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gallium/drivers/panfrost/pan_screen.c b/src/gallium/drivers/panfrost/pan_screen.c index 539d453069b..b1d15887b87 100644 --- a/src/gallium/drivers/panfrost/pan_screen.c +++ b/src/gallium/drivers/panfrost/pan_screen.c @@ -932,6 +932,9 @@ panfrost_init_screen_caps(struct panfrost_screen *screen) caps->max_texture_lod_bias = 16.0; /* arbitrary */ caps->shader_atomic_int64 = dev->arch >= 9; + + /* We hard-code this value as it is dictated by driver uAPI */ + caps->max_label_length = 4096; } static void