diff options
author | Alyssa Rosenzweig <alyssa@collabora.com> | 2021-02-23 23:41:32 +0000 |
---|---|---|
committer | Marge Bot <eric+marge@anholt.net> | 2021-05-03 15:10:20 +0000 |
commit | 1fb681e51d02357093533f55f7432a9bf0476472 (patch) | |
tree | a2100c92cd9cc1dde70bada0d66de25d8517b015 | |
parent | cf2d575d6320c96c303bc5d399152dc2e3108850 (diff) |
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@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10392>
-rw-r--r-- | src/panfrost/bifrost/bifrost_compile.c | 2 |
1 files changed, 1 insertions, 1 deletions
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: |