mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-02-10 21:40:43 +00:00
rsx: Handle dangling execution barriers
This commit is contained in:
parent
01fe39fbb9
commit
0be8a5f9f4
@ -120,8 +120,14 @@ namespace rsx
|
|||||||
if (barrier.type != rsx::transform_constant_load_modifier_barrier &&
|
if (barrier.type != rsx::transform_constant_load_modifier_barrier &&
|
||||||
barrier.type != rsx::transform_constant_update_barrier)
|
barrier.type != rsx::transform_constant_update_barrier)
|
||||||
{
|
{
|
||||||
// Only transform constant instancing is supported at the moment.
|
ensure(barrier.draw_id < ::size32(draw_command_ranges));
|
||||||
// FIXME: Dangling command barriers should be ignored.
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user