radv: use nir_shader::uses_printf for lowering printf
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run

radv_build_printf_args() already returns if printf VA is 0.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40517>
This commit is contained in:
Samuel Pitoiset 2026-03-19 17:58:59 +01:00 committed by Marge Bot
parent 1dc6cee956
commit e2bf574589

View file

@ -628,7 +628,7 @@ radv_shader_spirv_to_nir(struct radv_device *device, const struct radv_shader_st
NIR_PASS(_, nir, ac_nir_lower_sin_cos);
}
if (device->debug_nir.printf.buffer_addr)
if (nir->info.uses_printf)
NIR_PASS(_, nir, radv_nir_lower_printf, &device->debug_nir);
if (options && options->lower_view_index_to_device_index)