tess_input_vertices is zero if the state is dynamic.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18344>
if (!ngg_gs && !tcs_skip_barrier) {
sync_scope scope =
ctx.stage == vertex_tess_control_hs &&
- program->wave_size % ctx.options->key.tcs.tess_input_vertices == 0 &&
- ctx.options->key.tcs.tess_input_vertices == nir->info.tess.tcs_vertices_out
+ ctx.options->key.tcs.tess_input_vertices == nir->info.tess.tcs_vertices_out &&
+ program->wave_size % ctx.options->key.tcs.tess_input_vertices == 0
? scope_subgroup
: scope_workgroup;
bld.barrier(aco_opcode::p_barrier,