nir: Fix parameter order in the bcsel-of-shuffle optimization

Fixes: 4ff4d4e569 "nir/opt_intrinsic: Optimize bcsel(b, shuffle..."
Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9068>
(cherry picked from commit 8b133a1b25)
This commit is contained in:
Jason Ekstrand 2021-02-15 15:48:55 -06:00 committed by Dylan Baker
parent 1d23aa2618
commit 2b5651e002
2 changed files with 2 additions and 2 deletions

View file

@ -859,7 +859,7 @@
"description": "nir: Fix parameter order in the bcsel-of-shuffle optimization",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"master_sha": null,
"because_sha": "4ff4d4e56966a40bff83d1813e3a308cff38736e"
},

View file

@ -85,7 +85,7 @@ try_opt_bcsel_of_shuffle(nir_builder *b, nir_alu_instr *alu,
return NULL;
nir_ssa_def *index = nir_bcsel(b, alu->src[0].src.ssa, index1, index2);
nir_ssa_def *shuffle = nir_shuffle(b, index, data1);
nir_ssa_def *shuffle = nir_shuffle(b, data1, index);
return shuffle;
}