i965/fs: Correct mistake in determining whether a MUL is negated.
authorMatt Turner <mattst88@gmail.com>
Mon, 13 Apr 2015 18:29:14 +0000 (11:29 -0700)
committerMatt Turner <mattst88@gmail.com>
Tue, 14 Apr 2015 19:16:03 +0000 (12:16 -0700)
commit3ca17e75e4fe129511a4dcad47e139485beef880
tree2fcbda51d6dacaee2ef6a5f2a996cd977b4a7e92
parent07c571a39fa12c3db1c638302de7aed67844609b
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>
src/mesa/drivers/dri/i965/brw_fs_cse.cpp