i965: Set prog_data->uses_kill if simulating alpha test via discards.
authorKenneth Graunke <kenneth@whitecape.org>
Sat, 8 Nov 2014 10:34:43 +0000 (02:34 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Fri, 28 Nov 2014 04:25:24 +0000 (20:25 -0800)
commit133280120b4bc714bbb7665e383f36ab262c280a
treee969c54ade347d76002238c96dbc0e665ad059a8
parent06372c3fa9940b6ebbc03ebb2cdfdedc87076cc0
i965: Set prog_data->uses_kill if simulating alpha test via discards.

When using MRT on Gen4-5, we have to simulate GL's alpha test feature
by emitting discards in the fragment shader.  In this case, it makes
sense to set prog_data->uses_kill, which means the fragment shader may
kill pixels via the discard mechanism.

This saves us from having to look an extra key value in a couple of
places, including in the generator.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_fs.cpp
src/mesa/drivers/dri/i965/brw_fs_generator.cpp
src/mesa/drivers/dri/i965/brw_wm.c