i965/fs: Handle conditional discards.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 19 Aug 2014 22:22:43 +0000 (15:22 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 24 Feb 2015 23:24:52 +0000 (15:24 -0800)
commit8eb6c109994de2827b0a1340a2dc8d933edaf5e0
treec686258c324bd36300520eface713ae9ca7c7f77
parent8e62bd52f8296a220bd4542abd6fdcdfc41a388c
i965/fs: Handle conditional discards.

The discard condition tells us which channels we want killed.  We want
to invert that condition to get the channels that should survive (remain
live) in f0.1.  Emit a CMP to negate it.

Nothing generates these today, but that will change shortly.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/brw_fs_nir.cpp
src/mesa/drivers/dri/i965/brw_fs_visitor.cpp