gallium: Remove duplicate resource variable.
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: 34cc6a80 ("gallium: Add a nir-to-TGSI pass.") Signed-off-by: Vinson Lee vlee@freedesktop.org
cc: @anholt