The held-work recovery test fills a buffer of the new generation after it
What: work_held_unsubmitted_at_a_loss_fails_as_its_victims_in_queue_order fills a Shared buffer made after the recovery with each queue's later command buffer, not the one made before it. Why: a pooled Shared buffer made before a recovery may be left on the lost generation (MadeBeforeRecovery), and the later fill's encoding refused it (lane 23377, device_recovery.rs:106, at the test and the fix commits alike). Verified: the lane that follows runs the test before and after the fix.
This commit is contained in:
1 parent
c646f33ddf
commit
79f89e620e
1 file changed
+3
-1
@@ -349,8 +349,10 @@ fn work_held_unsubmitted_at_a_loss_fails_as_its_victims_in_queue_order() {
|
||||
}
|
||||
}
|
||||
device.recover_for_test().unwrap();
|
||||
// A buffer of the new generation: a pooled `Shared` buffer made before may be left there.
|
||||
let after = device.new_buffer(4096, ResourceOptions::shared()).unwrap();
|
||||
for (at, queue) in queues.iter().enumerate() {
|
||||
let later = filled_by(queue, &filled);
|
||||
let later = filled_by(queue, &after);
|
||||
handled(at, 2, &later);
|
||||
later.commit().unwrap();
|
||||
assert_eq!(outcome(&later), (CommandBufferStatus::Completed, None));
|
||||
|
||||
Reference in new issue
Block a user