mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-09 08:20:12 +01:00
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:
parent
f4c13fad65
commit
8f40428afb
1 changed files with 5 additions and 1 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue