Mesa (master): pan/bi: Emit int CSEL instead of float by default
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Mon May 3 15:29:40 UTC 2021
Module: Mesa
Branch: master
Commit: 1fb681e51d02357093533f55f7432a9bf0476472
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=1fb681e51d02357093533f55f7432a9bf0476472
Author: Alyssa Rosenzweig <alyssa at collabora.com>
Date: Tue Feb 23 23:41:32 2021 +0000
pan/bi: Emit int CSEL instead of float by default
Will be needed when we use 1-bit booleans.
Signed-off-by: Alyssa Rosenzweig <alyssa at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10392>
---
src/panfrost/bifrost/bifrost_compile.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/panfrost/bifrost/bifrost_compile.c b/src/panfrost/bifrost/bifrost_compile.c
index bc8e998d4d6..0b7bae63c9e 100644
--- a/src/panfrost/bifrost/bifrost_compile.c
+++ b/src/panfrost/bifrost/bifrost_compile.c
@@ -1689,7 +1689,7 @@ bi_emit_alu(bi_builder *b, nir_alu_instr *instr)
if (sz == 8)
bi_mux_v4i8_to(b, dst, s2, s1, s0, BI_MUX_INT_ZERO);
else
- bi_csel_to(b, nir_type_float, sz, dst, s0, bi_zero(), s1, s2, BI_CMPF_NE);
+ bi_csel_to(b, nir_type_int, sz, dst, s0, bi_zero(), s1, s2, BI_CMPF_NE);
break;
case nir_op_ishl:
More information about the mesa-commit
mailing list