mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 13:10:10 +01:00
i965/fs: Correct mistake in determining whether a MUL is negated.
a * b is equivalent to -a * -b, and the previous code was failing at that. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=89961 Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
This commit is contained in:
parent
07c571a39f
commit
3ca17e75e4
1 changed files with 1 additions and 1 deletions
|
|
@ -145,7 +145,7 @@ operands_match(const fs_inst *a, const fs_inst *b, bool *negate)
|
|||
xs[1].fixed_hw_reg.dw1.f = xs1_imm;
|
||||
ys[1].fixed_hw_reg.dw1.f = ys1_imm;
|
||||
|
||||
*negate = (xs0_negate + xs1_negate) != (ys0_negate + ys1_negate);
|
||||
*negate = (xs0_negate != xs1_negate) != (ys0_negate != ys1_negate);
|
||||
return ret;
|
||||
} else if (!a->is_commutative()) {
|
||||
bool match = true;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue