mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 16:08:04 +02:00
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:
parent
325dfd809a
commit
01c8ee5737
1 changed files with 1 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue