nir/lower_printf: drop static buffer addr lowering

no longer used, replaced by the new pass.

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 10:51:53 -05:00 committed by Marge Bot
parent c4bd2e691b
commit 43e79b26de
3 changed files with 1 additions and 12 deletions

View file

@ -6812,11 +6812,6 @@ typedef struct nir_lower_printf_options {
unsigned ptr_bit_size;
bool use_printf_base_identifier;
bool hash_format_strings;
/* Some drivers may know the address of the printf buffer at compile-time. If
* buffer_address is nonzero, it will be used instead of intrinsics.
*/
uint64_t buffer_address;
} nir_lower_printf_options;
bool nir_lower_printf(nir_shader *nir, const nir_lower_printf_options *options);

View file

@ -41,12 +41,7 @@ lower_printf_intrin(nir_builder *b, nir_intrinsic_instr *prntf, void *_options)
const unsigned ptr_bit_size =
options->ptr_bit_size != 0 ? options->ptr_bit_size : nir_get_ptr_bitsize(b->shader);
nir_def *buffer_addr;
if (options->buffer_address != 0) {
buffer_addr = nir_imm_intN_t(b, options->buffer_address, ptr_bit_size);
} else {
buffer_addr = nir_load_printf_buffer_address(b, ptr_bit_size);
}
nir_def *buffer_addr = nir_load_printf_buffer_address(b, ptr_bit_size);
/* For aborts, just write a nonzero value to the aborted? flag. The printf
* buffer layout looks like:

View file

@ -662,7 +662,6 @@ fn compile_nir_to_args(
nir_pass!(nir, nir_dedup_inline_samplers);
let printf_opts = nir_lower_printf_options {
buffer_address: 0,
ptr_bit_size: 0,
use_printf_base_identifier: false,
hash_format_strings: false,