mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-01 08:08:06 +02:00
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>
This commit is contained in:
parent
ceb6986d34
commit
8b133a1b25
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue