diff options
author | Alyssa Rosenzweig <[email protected]> | 2020-03-21 21:19:14 -0400 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-03-22 03:32:35 +0000 |
commit | 5cdc31abd63302e3da82a1bfee625019e818fc3f (patch) | |
tree | 83fc10bad8d8dc0892ec0f0fcb1e5ebef6e64882 /src/panfrost/bifrost | |
parent | 46f526eb1e4a3ca2d7f04c50f61523a680c383a4 (diff) |
pan/bi: Default csel to "!= 0" mode
This way we always have regular csel conditions instead of a weird
.always special case for 3-src CSEL mode.
Signed-off-by: Alyssa Rosenzweig <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4276>
Diffstat (limited to 'src/panfrost/bifrost')
-rw-r--r-- | src/panfrost/bifrost/bifrost_compile.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/panfrost/bifrost/bifrost_compile.c b/src/panfrost/bifrost/bifrost_compile.c index cdf25d5a81d..a00dabe71fb 100644 --- a/src/panfrost/bifrost/bifrost_compile.c +++ b/src/panfrost/bifrost/bifrost_compile.c @@ -595,6 +595,11 @@ emit_alu(bi_context *ctx, nir_alu_instr *instr) } if (alu.type == BI_CSEL) { + /* Default to csel3 */ + alu.csel_cond = BI_COND_NE; + alu.src[3] = BIR_INDEX_ZERO; + alu.src_types[3] = alu.src_types[0]; + bi_fuse_csel_cond(&alu, instr->src[0], &constants_left, &constant_shift); } |