diff options
author | Dave Airlie <[email protected]> | 2016-07-05 10:26:14 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2016-08-23 11:14:03 +1000 |
commit | 26187f3890cd92d6871ffb431763b27cacd8d4fe (patch) | |
tree | 8cde2bdfd3ce06a81fabd17ed452ce76f24d0832 /src | |
parent | 0bce055d9ee11847bdf9adac5f216d8630a7824a (diff) |
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: <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/state_tracker/st_glsl_to_tgsi.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp index 5a9cadcdb2e..50ff4231eab 100644 --- a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp +++ b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp @@ -1133,7 +1133,7 @@ glsl_to_tgsi_visitor::st_src_reg_for_double(double val) memcpy(uval, &val, sizeof(uval)); src.index = add_constant(src.file, uval, 1, GL_DOUBLE, &src.swizzle); - + src.swizzle = MAKE_SWIZZLE4(SWIZZLE_X, SWIZZLE_Y, SWIZZLE_X, SWIZZLE_Y); return src; } |