i965: Rework opt_vector_float() control flow.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 13 Apr 2016 22:56:07 +0000 (15:56 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 20 Apr 2016 22:05:13 +0000 (15:05 -0700)
commit9967561158acd94edff0fa93ceaf4bc527e271ed
treed42d8cb2fcbfee57a1aa17f56558906bd2b7ec7f
parent50018522d2f2e1deb91710d63e0985c0b3dc8818
i965: Rework opt_vector_float() control flow.

This reworks opt_vector_float() so that there's only one place that
flushes out any accumulated state and emits a VF.

v2: Don't break the sequence for non-representable numbers - just skip
    recording their values.  Only break it for non-MOVs or register
    changes.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_vec4.cpp