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 <mary.guillemard@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35639>
This commit is contained in:
Mary Guillemard 2025-06-17 10:20:59 +02:00 committed by Marge Bot
parent 325dfd809a
commit 01c8ee5737

View file

@ -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