i965/fs: Treat the FB_WRITE as predicated if we're discarding.
authorMatt Turner <mattst88@gmail.com>
Wed, 12 Nov 2014 02:02:23 +0000 (18:02 -0800)
committerMatt Turner <mattst88@gmail.com>
Tue, 2 Dec 2014 00:42:13 +0000 (16:42 -0800)
commite4d0299089fe3ea0a91abb3ec34c5c0436ef9e68
tree92d1ee6f71be0042b3469734a2f3cc8b5f81446b
parentf1e5418f402c7ac087b1c127cb4476d0d02e0073
i965/fs: Treat the FB_WRITE as predicated if we're discarding.

Pre-Haswell hardware couldn't actually predicate it, but it's easier to
pretend as if it's predicated in the visitor since it will generate a
MOV from f0.1.

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