Skip to content

gallium: Remove duplicate resource variable.

Vinson Lee requested to merge vlee/mesa:fix-cid-1468361 into master

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

Merge request reports