i965/fs: Add a pass to fixup 3-src instructions that have a null dest.
authorMatt Turner <mattst88@gmail.com>
Tue, 30 Dec 2014 04:33:12 +0000 (20:33 -0800)
committerMatt Turner <mattst88@gmail.com>
Sat, 24 Jan 2015 01:57:39 +0000 (17:57 -0800)
commiteed7223243c35bba092dc0b26e592f6af1ba3fd7
treeffcc8c1e1d0bddddfdbefaee5fb48d60c6f1cc84
parent215b081c2ac5d7a9d1e6a46a52633997f8ae3576
i965/fs: Add a pass to fixup 3-src instructions that have a null dest.

3-src instructions can only have GRF/MRF destinations. It's really
difficult to deal with that restriction in dead code elimination (that
wants to give instructions null destinations to show that their result
isn't used) while allowing 3-src instructions to have conditional mod,
so don't, and just give then a destination before register allocation.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_fs.cpp
src/mesa/drivers/dri/i965/brw_fs.h