i965/fs: Cut an instruction and a temporary from gen6 discard statements.
authorEric Anholt <eric@anholt.net>
Tue, 10 May 2011 22:30:11 +0000 (15:30 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 18 May 2011 20:57:16 +0000 (13:57 -0700)
commit51761a1aefd31b7df12edd9467ac630b9cbbbbc9
treea269659229afec268d3b8ebb1915a2d71059839d
parent5dd5be69f099211db027b6e39150cacefcfdf8b6
i965/fs: Cut an instruction and a temporary from gen6 discard statements.

I thought I was thwarted initially when I couldn't do conditional mod
on a MOV, and couldn't use two immediate constants in one instruction.
But g0 != g0 is also a way to produce a failing comparison.

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