diff options
author | Dave Airlie <[email protected]> | 2016-07-05 10:22:21 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2016-07-05 10:25:29 +1000 |
commit | cb728df9670d8399479db8502145bbc6f653cfb3 (patch) | |
tree | 09403cd4bd175ca25f0d61c9692ae5ae06e3984e /src/mesa/state_tracker | |
parent | c1fb3290a6049498989f5144e6aa54e35a5e4552 (diff) |
Revert "st/glsl_to_tgsi: don't increase immediate index by 1."
This reverts commit 27d456cc87a01998c6fe1dbf45937e2ca6128495.
DOH, what seems right and what is right with fp64 are always
two different things.
This regressed:
spec@arb_gpu_shader_fp64@shader_storage@layout-std140-fp64-mixed-shader
on radeonsi
Reported-by: Michel Dänzer <[email protected]>
Cc: "11.2 12.0" <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker')
-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 6d08c58a00d..197b3af8c04 100644 --- a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp +++ b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp @@ -816,7 +816,7 @@ glsl_to_tgsi_visitor::emit_asm(ir_instruction *ir, unsigned op, if (glsl_base_type_is_64bit(dinst->src[j].type)) { dinst->src[j].index = initial_src_idx[j]; - if (swz > 1 && dinst->src[j].file != PROGRAM_IMMEDIATE) { + if (swz > 1) { dinst->src[j].double_reg2 = true; dinst->src[j].index++; } |