st/mesa: disable copy propagation for tessellation shaders

This can't work due to shared inputs and outputs and barriers.
This commit is contained in:
Ilia Mirkin 2014-07-21 20:45:29 -04:00 committed by Marek Olšák
parent f4c13fad65
commit 8f40428afb

View file

@ -5800,7 +5800,11 @@ get_mesa_program(struct gl_context *ctx,
/* Perform optimizations on the instructions in the glsl_to_tgsi_visitor. */
v->simplify_cmp();
v->copy_propagate();
if (shader->Type != GL_TESS_CONTROL_SHADER &&
shader->Type != GL_TESS_EVALUATION_SHADER)
v->copy_propagate();
while (v->eliminate_dead_code());
v->merge_two_dsts();