mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 17:50:12 +01:00
pan/bi: Relax double-abs condition
Only if both ports (<==> registers) same. Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4789>
This commit is contained in:
parent
81156ad55a
commit
0b8724c340
1 changed files with 1 additions and 1 deletions
|
|
@ -617,7 +617,7 @@ bi_pack_fp16_abs(bi_instruction *ins, struct bi_registers *regs, bool *flip)
|
||||||
unsigned src_0 = bi_get_src(ins, regs, 0, true);
|
unsigned src_0 = bi_get_src(ins, regs, 0, true);
|
||||||
unsigned src_1 = bi_get_src(ins, regs, 1, true);
|
unsigned src_1 = bi_get_src(ins, regs, 1, true);
|
||||||
|
|
||||||
assert(!(abs_0 && abs_1));
|
assert(!(abs_0 && abs_1 && src_0 == src_1));
|
||||||
|
|
||||||
if (!abs_0 && !abs_1) {
|
if (!abs_0 && !abs_1) {
|
||||||
/* Force k = 0 <===> NOT(src1 < src0) */
|
/* Force k = 0 <===> NOT(src1 < src0) */
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue