mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 00:30:11 +01:00
intel/compiler: Drop dest checking in atomic code
NIR atomic operation intrinsics all have destinations. This is just copy and pasted from other generic intrinsic handling where that may or may not be the case. Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Rohan Garg <rohan.garg@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20604>
This commit is contained in:
parent
780f3e2e6b
commit
16b66ab659
1 changed files with 2 additions and 6 deletions
|
|
@ -5971,9 +5971,7 @@ fs_visitor::nir_emit_surface_atomic(const fs_builder &bld,
|
|||
(nir_dest_bit_size(instr->dest) == 16 &&
|
||||
(devinfo->has_lsc || lsc_opcode_is_atomic_float(op))));
|
||||
|
||||
fs_reg dest;
|
||||
if (nir_intrinsic_infos[instr->intrinsic].has_dest)
|
||||
dest = get_nir_dest(instr->dest);
|
||||
fs_reg dest = get_nir_dest(instr->dest);
|
||||
|
||||
fs_reg srcs[SURFACE_LOGICAL_NUM_SRCS];
|
||||
srcs[SURFACE_LOGICAL_SRC_SURFACE] = surface;
|
||||
|
|
@ -6042,9 +6040,7 @@ fs_visitor::nir_emit_global_atomic(const fs_builder &bld,
|
|||
{
|
||||
int op = lsc_aop_for_nir_intrinsic(instr);
|
||||
|
||||
fs_reg dest;
|
||||
if (nir_intrinsic_infos[instr->intrinsic].has_dest)
|
||||
dest = get_nir_dest(instr->dest);
|
||||
fs_reg dest = get_nir_dest(instr->dest);
|
||||
|
||||
fs_reg addr = get_nir_src(instr->src[0]);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue