i965/vec4: Make opt_vector_float reset at the top of each block
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 20 Jul 2016 19:21:41 +0000 (12:21 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 10 Aug 2016 22:19:55 +0000 (15:19 -0700)
commit4c3a6b07e2960266adca634f8607ef38f71b8318
treeb2329b975bc774a006b862d9fe54eb52c2c4d678
parentac6966360fc2f31b5e862624c6ef0048e11148e7
i965/vec4: Make opt_vector_float reset at the top of each block

The pass isn't really control-flow aware and you can get into case where it
tries to combine instructions from different blocks.  This can actually
lead to an assertion failure when removing unneeded instructions if part of
the vector is set in one block and part in another.  This prevents
regressions in the next commit.

Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Cc: "12.0" <mesa-stable@lists.freedesktop.org>
src/mesa/drivers/dri/i965/brw_vec4.cpp