summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>2017-03-29 01:22:47 +0200
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>2017-04-26 16:31:13 +0200
commit75e4011ee880d8c636c1a37e1383a8a755441d07 (patch)
treeaf63865dd9c8ff9050bd529d4c46c53218e2ba23
parenteba53286cda25433a81a91d86f48d02344e73604 (diff)
st/glsl_to_tgsi: disable eliminate_dead_code()
It removes temps for sampler arg. This has to be fixed. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
-rw-r--r--src/mesa/state_tracker/st_glsl_to_tgsi.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp
index 9bd159f5e1..92c08fa1cf 100644
--- a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp
+++ b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp
@@ -6755,11 +6755,13 @@ get_mesa_program_tgsi(struct gl_context *ctx,
shader->Stage != MESA_SHADER_TESS_EVAL)
v->copy_propagate();
+ /*
while (v->eliminate_dead_code());
v->merge_two_dsts();
v->merge_registers();
v->renumber_registers();
+ */
/* Write the END instruction. */
v->emit_asm(NULL, TGSI_OPCODE_END);