summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2015-10-19 11:28:15 -0700
committerKenneth Graunke <[email protected]>2015-11-13 15:15:46 -0800
commitd12bde0944d1d69401ef1d854aa0ab92b5a6af54 (patch)
tree2d0894e73c035876fecbce9a98e84f7429067bdc /src
parent134728fdaef9d2a5d072d25b31437ac0fecd9076 (diff)
nir: Don't lower TCS outputs to temporaries.
We'd like to shadow these when possible, but the current code doesn't work properly for TCS outputs. For now, disable it. Signed-off-by: Kenneth Graunke <[email protected]> Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/glsl/nir/nir_lower_outputs_to_temporaries.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/glsl/nir/nir_lower_outputs_to_temporaries.c b/src/glsl/nir/nir_lower_outputs_to_temporaries.c
index 80f43951b5c..9441f4762b6 100644
--- a/src/glsl/nir/nir_lower_outputs_to_temporaries.c
+++ b/src/glsl/nir/nir_lower_outputs_to_temporaries.c
@@ -78,6 +78,9 @@ nir_lower_outputs_to_temporaries(nir_shader *shader)
{
struct lower_outputs_state state;
+ if (shader->stage == MESA_SHADER_TESS_CTRL)
+ return;
+
state.shader = shader;
exec_list_move_nodes_to(&shader->outputs, &state.old_outputs);