rt tests: the held-group send test checks the rise only where the fill was held, so a fast GPU does not wait out its patience
On the RX 7900 XTX (44448) the test timed out after 60 s waiting for a submission. With 16 fills the busy work ended before the fill was staged, so the fill went alone and no group was held. The empty or abandoned command buffer behind it then took no submission, as it should, and the test waited for a rise that could not come. The test now reads whether the fill was held (two submissions since the busy commits) before it commits the command buffer behind. Where the fill was not held, the test waits for the fill and tries again with more busy work. The rise is waited for only behind a held group, which goes at once under the rule and only after a completion without it, so the test still fails without the rule.
This commit is contained in:
1 parent
0c01a5294f
commit
e886ee4c74
1 file changed
+12
-8
@@ -591,6 +591,12 @@ pub(crate) mod on_device {
|
||||
let work = queue_fill(&queue, &a, 1);
|
||||
within(name, || work.status() != CommandBufferStatus::Committed);
|
||||
let held = submissions();
|
||||
if held != before + 2 {
|
||||
// The busy work ended first: the fill went alone and no group is held, so
|
||||
// nothing would rise behind it.
|
||||
finished(name, &work);
|
||||
return false;
|
||||
}
|
||||
let behind = queue.command_buffer().expect("a command buffer");
|
||||
if abandoned {
|
||||
(behind.encode_wait_for_event(event.as_event(), 1)).expect("a wait");
|
||||
@@ -602,9 +608,8 @@ pub(crate) mod on_device {
|
||||
within(name, || submissions() > held);
|
||||
let seen = host_time();
|
||||
finished(name, &running[0]);
|
||||
// The fill was held behind both busy ones, and its group went before the first
|
||||
// of them ended on the GPU.
|
||||
let checked = held == before + 2 && running[0].gpu_end_time() > seen;
|
||||
// The group went before the first busy one ended on the GPU.
|
||||
let checked = running[0].gpu_end_time() > seen;
|
||||
kept.extend([work, behind]);
|
||||
checked
|
||||
});
|
||||
@@ -1952,11 +1957,10 @@ pub(crate) mod on_device {
|
||||
/// reaches commands, a Shared fill whose end barrier reaches the host, an event's signal and
|
||||
/// wait (which end and lead infos), and between them a command buffer with nothing for the GPU
|
||||
/// (no timestamps, no info) records the same barriers, passes and bytes copied and leaves the
|
||||
/// same words
|
||||
/// committed behind two busy submissions, held in groups, as committed one at a time. The
|
||||
/// groups pass two submit infos for the mix's four command buffers with commands: one for the
|
||||
/// fills up to the signal, which ends the group, and one the wait leads. One at a time passes
|
||||
/// one each.
|
||||
/// same words committed behind two busy submissions, held in groups, as committed one at a
|
||||
/// time. The groups pass two submit infos for the mix's four command buffers with commands:
|
||||
/// one for the fills up to the signal, which ends the group, and one the wait leads. One at a
|
||||
/// time passes one each.
|
||||
#[test]
|
||||
fn every_device_shares_submit_infos_within_a_group_and_records_what_it_records_alone() {
|
||||
each_device("command_infos", |name, _, device| {
|
||||
|
||||
Reference in new issue
Block a user