diff options
Diffstat (limited to 'src/freedreno/ir3/ir3_nir.c')
-rw-r--r-- | src/freedreno/ir3/ir3_nir.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/freedreno/ir3/ir3_nir.c b/src/freedreno/ir3/ir3_nir.c index fc90fbe3868..afcd87a16b9 100644 --- a/src/freedreno/ir3/ir3_nir.c +++ b/src/freedreno/ir3/ir3_nir.c @@ -460,6 +460,13 @@ ir3_setup_const_state(struct ir3_shader *shader, nir_shader *nir) const_state->offsets.primitive_param = constoff; constoff += 1; break; + case MESA_SHADER_TESS_CTRL: + case MESA_SHADER_TESS_EVAL: + constoff = align(constoff - 1, 4) + 3; + const_state->offsets.primitive_param = constoff; + const_state->offsets.primitive_map = constoff + 5; + constoff += 5 + DIV_ROUND_UP(nir->num_inputs, 4); + break; case MESA_SHADER_GEOMETRY: const_state->offsets.primitive_param = constoff; const_state->offsets.primitive_map = constoff + 1; |