i965/fs: Dead code eliminate instructions writing the flag.
authorMatt Turner <mattst88@gmail.com>
Wed, 29 Oct 2014 03:12:21 +0000 (20:12 -0700)
committerMatt Turner <mattst88@gmail.com>
Tue, 2 Dec 2014 00:42:13 +0000 (16:42 -0800)
commit60d507c3c5c7caed57119df0ab4d824ad1ea85dc
tree3ebe011a49ab74868eed3b78e8ed49872ef8eba2
parentbf8deb55146696b2332d9ea29f6242d236e1b46a
i965/fs: Dead code eliminate instructions writing the flag.

Most prominently helps Natural Selection 2, which has a surprising
number shaders that do very complicated things before drawing black.

instructions in affected programs:     21052 -> 16978 (-19.35%)

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