OSDN Git Service

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)
committerEmil Velikov <emil.l.velikov@gmail.com>
Thu, 1 Sep 2016 10:39:44 +0000 (11:39 +0100)
commit7fe8cad4e447b32bdc3f27f25c3d3d6d48b552bc
tree56e93e1c24b1d3e76f019f43ea9bc2255fca927b
parent6847a37363504dee674a95a82f8c295f006b0615
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>
(cherry picked from commit 26187f3890cd92d6871ffb431763b27cacd8d4fe)
src/mesa/state_tracker/st_glsl_to_tgsi.cpp