mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-22 00:08:09 +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> (cherry picked from commit8b133a1b25)
This commit is contained in:
parent
1d23aa2618
commit
2b5651e002
2 changed files with 2 additions and 2 deletions
|
|
@ -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"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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