i965/fs: Rewrite discards to use a flag subreg to track discarded pixels.
authorEric Anholt <eric@anholt.net>
Thu, 6 Dec 2012 20:15:13 +0000 (12:15 -0800)
committerEric Anholt <eric@anholt.net>
Tue, 11 Dec 2012 18:13:08 +0000 (10:13 -0800)
commitd5016495cc1b50b1673d0d3ab8e6af8249b071d5
treea60b5f17f2d19ac01cf96c0f9a0ccb06474edfd7
parentb278f65e1c5295794dcf08d100356e6ded6c1f32
i965/fs: Rewrite discards to use a flag subreg to track discarded pixels.

This makes much more sense on gen6+, and will also prove useful for
early exit of shaders on discard.

v2: fix up a stale comment from before converting gen4-5.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_defines.h
src/mesa/drivers/dri/i965/brw_fs.cpp
src/mesa/drivers/dri/i965/brw_fs.h
src/mesa/drivers/dri/i965/brw_fs_emit.cpp
src/mesa/drivers/dri/i965/brw_fs_fp.cpp
src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp
src/mesa/drivers/dri/i965/brw_fs_schedule_instructions.cpp
src/mesa/drivers/dri/i965/brw_fs_visitor.cpp