st/mesa: swizzle argument when there's a vector size mismatch
authorIlia Mirkin <imirkin@alum.mit.edu>
Sat, 2 Dec 2017 16:20:46 +0000 (11:20 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Tue, 12 Dec 2017 04:08:43 +0000 (23:08 -0500)
commit0332c7484b712e56ce1a6648c5fa04c90e286c37
tree3e373134e0f4563854f096ca8737e8dea2f97bf6
parent84c363fb09167bc45aeba95423b20bee7293f44a
st/mesa: swizzle argument when there's a vector size mismatch

GLSL IR operation arguments can sometimes have an implicit swizzle as a
result of a vector arg and a scalar arg, where the scalar argument is
implicitly expanded to the size of the vector argument.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=103955
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/state_tracker/st_glsl_to_tgsi.cpp