Module: Mesa Branch: master Commit: 8b133a1b25c17198193dafd6b356dfa42bc27028 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=8b133a1b25c17198193dafd6b356dfa42bc27028
Author: Jason Ekstrand <[email protected]> Date: Mon Feb 15 15:48:55 2021 -0600 nir: Fix parameter order in the bcsel-of-shuffle optimization Fixes: 4ff4d4e56966a40 "nir/opt_intrinsic: Optimize bcsel(b, shuffle..." Reviewed-by: Caio Marcelo de Oliveira Filho <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9068> --- src/compiler/nir/nir_opt_intrinsics.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/nir/nir_opt_intrinsics.c b/src/compiler/nir/nir_opt_intrinsics.c index 74bad15c696..6742fe91988 100644 --- a/src/compiler/nir/nir_opt_intrinsics.c +++ b/src/compiler/nir/nir_opt_intrinsics.c @@ -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; } _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
