mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 11:08:03 +02:00
nir/lower_printf: drop null check
we derefernce options above. 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
e7a1d704d0
commit
621ff262bc
1 changed files with 1 additions and 1 deletions
|
|
@ -73,7 +73,7 @@ lower_printf_intrin(nir_builder *b, nir_intrinsic_instr *prntf, void *_options)
|
|||
}
|
||||
|
||||
nir_def *fmt_str_id = prntf->src[0].ssa;
|
||||
if (options && options->use_printf_base_identifier) {
|
||||
if (options->use_printf_base_identifier) {
|
||||
fmt_str_id = nir_iadd(b,
|
||||
nir_load_printf_base_identifier(b),
|
||||
fmt_str_id);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue