st/mesa: keep track of saturated writes when eliminating dead code
authorIlia Mirkin <imirkin@alum.mit.edu>
Wed, 23 Sep 2015 04:30:23 +0000 (00:30 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Thu, 24 Sep 2015 04:19:55 +0000 (00:19 -0400)
commit1614c39a8fc205d7b1cb5b16737c233fbcc5b678
treeaa0c3f5959cec3a5d8afa7e381929cd5af115585
parent827d7948340f4cbc7de2d02971e4f36fbd52f7a8
st/mesa: keep track of saturated writes when eliminating dead code

It doesn't matter whether a write is saturated or not, in another
implementation it might even have been a separate opcode. This code was
most likely copied from the copy-propagation pass (where one does have
to distinguish saturation).

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/state_tracker/st_glsl_to_tgsi.cpp