i965: Make opt_vector_float() only handle non-type-conversion MOVs.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 13 Apr 2016 23:39:54 +0000 (16:39 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 20 Apr 2016 22:05:13 +0000 (15:05 -0700)
commit1aa28f3509b033e0f86510a6d4c7993fca650b3b
treef07993a1b7c0787f890b15a891b83ab5455bd76b
parent2a25a5142bd78b22cc9ada41b8988bb282c2a7ac
i965: Make opt_vector_float() only handle non-type-conversion MOVs.

We don't handle this properly - we'd have to perform the type conversion
before trying to convert the value to a VF.

While we could do that, it doesn't seem particularly useful - most
vector loads should be consistently typed (all float or all integer).

As a special case, we do allow type-converting MOVs of integer 0, as
it's represented the same regardless of the type.  I believe this case
does actually come up.

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