diff --git a/src/compiler/nir/nir.h b/src/compiler/nir/nir.h index 98ed676dd9f..c0650ff2b46 100644 --- a/src/compiler/nir/nir.h +++ b/src/compiler/nir/nir.h @@ -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); diff --git a/src/compiler/nir/nir_lower_printf.c b/src/compiler/nir/nir_lower_printf.c index dd335b1e743..8f63f379064 100644 --- a/src/compiler/nir/nir_lower_printf.c +++ b/src/compiler/nir/nir_lower_printf.c @@ -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: diff --git a/src/gallium/frontends/rusticl/core/kernel.rs b/src/gallium/frontends/rusticl/core/kernel.rs index ab8bbd3e2e8..e263a540639 100644 --- a/src/gallium/frontends/rusticl/core/kernel.rs +++ b/src/gallium/frontends/rusticl/core/kernel.rs @@ -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,