diff --git a/src/freedreno/ir3/ir3_nir_lower_tess.c b/src/freedreno/ir3/ir3_nir_lower_tess.c index 7a30ef09d97..4d8798c285f 100644 --- a/src/freedreno/ir3/ir3_nir_lower_tess.c +++ b/src/freedreno/ir3/ir3_nir_lower_tess.c @@ -524,6 +524,9 @@ emit_tess_epilouge(nir_builder *b, struct state *state) nir_ssa_def *tessfactor_address = nir_load_tess_factor_base_ir3(b); nir_ssa_def *levels[2]; + if (!state->outer_levels[0]) + return; + /* Then emit the epilogue that actually writes out the tessellation levels * to the BOs. */