mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 18:08:40 +02:00
radv: use nir_shader::uses_printf for lowering printf
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:
parent
1dc6cee956
commit
e2bf574589
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue