Fix defect reported by Coverity Scan.
Evaluation order violation (EVALUATION_ORDER)
write_write_typo: In resource = resource =
ntt_ureg_src_indirect(c, ureg_src_register(TGSI_FILE_IMAGE, 0U),
instr->src[0]), resource is written twice with the same value.
Fixes:
34cc6a804ec9 ("gallium: Add a nir-to-TGSI pass.")
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7326>
nir_intrinsic_image_array(instr));
struct ureg_src resource =
- resource = ntt_ureg_src_indirect(c, ureg_src_register(TGSI_FILE_IMAGE, 0),
- instr->src[0]);
+ ntt_ureg_src_indirect(c, ureg_src_register(TGSI_FILE_IMAGE, 0),
+ instr->src[0]);
struct ureg_dst dst;
if (instr->intrinsic == nir_intrinsic_image_store) {