mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 00:00:11 +01:00
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:
parent
61d66a6ea7
commit
e7a1d704d0
2 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue