i965/vec4: Remove broken vector size deduction in setup_builtin_uniform_values().
authorFrancisco Jerez <currojerez@riseup.net>
Wed, 18 Mar 2015 13:26:10 +0000 (15:26 +0200)
committerFrancisco Jerez <currojerez@riseup.net>
Mon, 23 Mar 2015 12:09:32 +0000 (14:09 +0200)
commit5bcca9f8dc34a13e34270d284bcf8a49b52bb58e
tree01e034056c465e6ddf04e9c5c0987d7a5560a758
parent132cdcc468d0e40f422dd96303a61ee231be1a92
i965/vec4: Remove broken vector size deduction in setup_builtin_uniform_values().

This seemed to be trying to deduce the number of uniform vector
components from the parameter swizzle, but the algorithm would always
give 4 as result.  Instead grab the correct number of components from
the GLSL type.

Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp