r600: add r600_lower_tess_io metadata compatibility

../src/compiler/nir/nir_metadata.c:172: nir_metadata_check_validation_flag: Assertion `!(impl->valid_metadata & nir_metadata_not_properly_reset)' failed.

Signed-off-by: Patrick Lerda <patrick9876@free.fr>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34155>
This commit is contained in:
Patrick Lerda 2025-03-21 14:26:18 +01:00 committed by Marge Bot
parent 3fbee8bae6
commit 2ea6e67dcf

View file

@ -421,14 +421,15 @@ r600_lower_tess_io(nir_shader *shader, enum mesa_prim prim_type)
nir_foreach_block(block, impl)
{
nir_foreach_instr_safe(instr, block)
{
bool progress_impl = false;
nir_foreach_instr_safe (instr, block) {
if (instr->type != nir_instr_type_intrinsic)
continue;
if (r600_lower_tess_io_filter(instr, shader->info.stage))
progress |= r600_lower_tess_io_impl(&b, instr, prim_type);
progress_impl |= r600_lower_tess_io_impl(&b, instr, prim_type);
}
progress |= nir_progress(progress_impl, impl, nir_metadata_control_flow);
}
}
return progress;