rsx: Handle dangling execution barriers

This commit is contained in:
kd-11 2024-12-28 15:49:59 +03:00 committed by kd-11
parent 01fe39fbb9
commit 0be8a5f9f4

View File

@ -120,8 +120,14 @@ namespace rsx
if (barrier.type != rsx::transform_constant_load_modifier_barrier &&
barrier.type != rsx::transform_constant_update_barrier)
{
// Only transform constant instancing is supported at the moment.
// FIXME: Dangling command barriers should be ignored.
ensure(barrier.draw_id < ::size32(draw_command_ranges));
if (draw_command_ranges[barrier.draw_id].count == 0)
{
// Dangling command barriers are ignored. We're also at the end of the command, so abort.
break;
}
// Fail. Only transform constant instancing is supported at the moment.
return false;
}
}