diff options
Diffstat (limited to 'src/compiler/nir/nir_lower_printf.c')
-rw-r--r-- | src/compiler/nir/nir_lower_printf.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/compiler/nir/nir_lower_printf.c b/src/compiler/nir/nir_lower_printf.c index acc9efa1528..915b7e852cd 100644 --- a/src/compiler/nir/nir_lower_printf.c +++ b/src/compiler/nir/nir_lower_printf.c @@ -67,8 +67,9 @@ lower_printf_instr(nir_builder *b, nir_instr *instr, void *_options) glsl_uint_type(), 0); counter->cast.align_mul = 4; nir_ssa_def *offset = - nir_deref_atomic_add(b, 32, &counter->dest.ssa, - nir_imm_int(b, fmt_str_id_size + args_size)); + nir_deref_atomic(b, 32, &counter->dest.ssa, + nir_imm_int(b, fmt_str_id_size + args_size), + .atomic_op = nir_atomic_op_iadd); /* Check if we're still in-bounds */ const unsigned default_buffer_size = 1024 * 1024; |