From 01c8ee57378e2f8aeaab1692d3e91714a997210a Mon Sep 17 00:00:00 2001 From: Mary Guillemard Date: Tue, 17 Jun 2025 10:20:59 +0200 Subject: [PATCH] pan/clc: Use hash_format_strings option with nir_lower_printf At some point CL C shader switched to a format hash approach and we forgot to properly migrate here. This should fix all printf again. Signed-off-by: Mary Guillemard Reviewed-by: Alyssa Rosenzweig Part-of: --- src/panfrost/clc/pan_compile.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/panfrost/clc/pan_compile.c b/src/panfrost/clc/pan_compile.c index 5761de5ea95..ace91124c3b 100644 --- a/src/panfrost/clc/pan_compile.c +++ b/src/panfrost/clc/pan_compile.c @@ -113,8 +113,7 @@ compile(void *memctx, const uint32_t *spirv, size_t spirv_size, unsigned arch) NIR_PASS(_, nir, nir_lower_printf, &(const struct nir_lower_printf_options){ - .max_buffer_size = LIBPAN_PRINTF_BUFFER_SIZE - 8, - .ptr_bit_size = 64, + .hash_format_strings = true, }); /* We have to lower away local constant initializers right before we