intel: set max_buffer_size to nir_lower_printf

instead of relying on an implicit value which doesn't make much sense.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33067>
This commit is contained in:
Alyssa Rosenzweig 2025-01-16 09:33:47 -05:00 committed by Marge Bot
parent 61d66a6ea7
commit e7a1d704d0
2 changed files with 2 additions and 0 deletions

View file

@ -323,6 +323,7 @@ brw_kernel_from_spirv(struct brw_compiler *compiler,
nir_lower_printf_options printf_opts = {
.ptr_bit_size = 64,
.max_buffer_size = 1024 * 1024,
.use_printf_base_identifier = true,
};
NIR_PASS_V(nir, nir_lower_printf, &printf_opts);

View file

@ -91,6 +91,7 @@ compile_shader(struct anv_device *device,
nir_lower_printf_options printf_opts = {
.ptr_bit_size = 64,
.use_printf_base_identifier = true,
.max_buffer_size = 1024 * 1024,
};
NIR_PASS_V(nir, nir_lower_printf, &printf_opts);
}