vc4: Turn a SEL_X_Y(x, 0) into SEL_X_0(x).
authorEric Anholt <eric@anholt.net>
Thu, 25 Sep 2014 04:37:12 +0000 (21:37 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 29 Sep 2014 18:33:34 +0000 (11:33 -0700)
commit3311513041b81fe4e2fcf2c0e8a363a6d292c7b1
tree3c19e82e6f093aeea57c809e65a8c5f3b5652275
parent730267eb23b418637c78662a77de0a93af91be35
vc4: Turn a SEL_X_Y(x, 0) into SEL_X_0(x).

This may reduce register pressure and uniform counts.  Drops a bunch of 0
uniform loads on vs-temp-array-mat4-index-col-row-wr.shader_test, which is
failing to register allocate.
src/gallium/drivers/vc4/vc4_opt_algebraic.c