i965/fs: Fix lowering of integer multiplication with cmod.
authorMatt Turner <mattst88@gmail.com>
Wed, 27 May 2015 17:44:45 +0000 (10:44 -0700)
committerMatt Turner <mattst88@gmail.com>
Thu, 28 May 2015 19:58:50 +0000 (12:58 -0700)
commit0596134410a0decc2f6bba77bfedb82d308aabbe
treebb0d8a515e0592a612c0b2e14619791e5bd27b15
parent2231cf0ba3a79d9abb08065e0f72811c5eea807f
i965/fs: Fix lowering of integer multiplication with cmod.

If the multiplication's result is unused, except by a conditional_mod,
the destination will be null. Since the final instruction in the lowered
sequence is a partial-write, we can't put the conditional mod on it and
we have to store the full result to a register and do a MOV with a
conditional mod.

Cc: "10.6" <mesa-stable@lists.freedesktop.org>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=90580
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_fs.cpp