st/glsl_to_tgsi: fix st_src_reg_for_double constant.
authorDave Airlie <airlied@redhat.com>
Tue, 5 Jul 2016 00:26:14 +0000 (10:26 +1000)
committerDave Airlie <airlied@redhat.com>
Tue, 23 Aug 2016 01:14:03 +0000 (11:14 +1000)
commit26187f3890cd92d6871ffb431763b27cacd8d4fe
tree8cde2bdfd3ce06a81fabd17ed452ce76f24d0832
parent0bce055d9ee11847bdf9adac5f216d8630a7824a
st/glsl_to_tgsi: fix st_src_reg_for_double constant.

This needs to set the src swizzle so it doesn't access the .zw
members ever when we are just emitting a 0 constant here.

This fixes:
vert-conversion-explicit-dvec3-bvec3.shader_test
and a bunch of other fp64 tests on softpipe and radeonsi.

Cc: <mesa-stable@lists.freedesktop.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/mesa/state_tracker/st_glsl_to_tgsi.cpp