[GPU] Cancel pending control barriers when the command stream fails

Co-authored-by: Sekai <140012992+igettingit@users.noreply.github.com>
This commit is contained in:
ParantezTech 2026-10-06 17:47:33 +03:00
parent a4e1e3125e
commit 837466cc03
1 changed files with 5 additions and 0 deletions

View File

@ -336,10 +336,15 @@ public sealed class CommandStreamQueue
// Publishes a failure: nothing runs any more and every waiter is released with Failed.
public void Fail()
{
Action[] cancellations;
lock (_gate)
{
FailLocked();
cancellations = CancelControlBarriersLocked();
}
foreach (var cancel in cancellations)
cancel();
}
private void FailLocked()