mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-01 01:00:10 +01:00
nir: add nir_atomic_op_ordered_add_gfx12_amd
for streamout Reviewed-by: Timur Kristóf <timur.kristof@gmail.com> Acked-By: Georg Lehmann <dadschoorse@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28889>
This commit is contained in:
parent
d4cfcbdde8
commit
1a791c1303
3 changed files with 6 additions and 0 deletions
|
|
@ -1307,6 +1307,7 @@ typedef enum {
|
|||
nir_atomic_op_fcmpxchg,
|
||||
nir_atomic_op_inc_wrap,
|
||||
nir_atomic_op_dec_wrap,
|
||||
nir_atomic_op_ordered_add_gfx12_amd,
|
||||
} nir_atomic_op;
|
||||
|
||||
static inline nir_alu_type
|
||||
|
|
@ -1333,6 +1334,7 @@ nir_atomic_op_type(nir_atomic_op op)
|
|||
case nir_atomic_op_umax:
|
||||
case nir_atomic_op_inc_wrap:
|
||||
case nir_atomic_op_dec_wrap:
|
||||
case nir_atomic_op_ordered_add_gfx12_amd:
|
||||
return nir_type_uint;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -72,6 +72,7 @@ atomic_op_to_alu(nir_atomic_op op)
|
|||
case nir_atomic_op_fcmpxchg:
|
||||
case nir_atomic_op_inc_wrap:
|
||||
case nir_atomic_op_dec_wrap:
|
||||
case nir_atomic_op_ordered_add_gfx12_amd:
|
||||
return nir_num_opcodes;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1217,6 +1217,9 @@ print_intrinsic_instr(nir_intrinsic_instr *instr, print_state *state)
|
|||
case nir_atomic_op_dec_wrap:
|
||||
fprintf(fp, "dec_wrap");
|
||||
break;
|
||||
case nir_atomic_op_ordered_add_gfx12_amd:
|
||||
fprintf(fp, "ordered_add");
|
||||
break;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue