Tests: the event test's completion counts the flush of the segment after its wait
On the RTX 5080 (b5080 entry in job m3-max-75853) the event test's completion read [2, 128, 1, 64, 0, 64, 64, 0, 0]: the command buffer's segment after its wait for the host's value is a submission of its own, which flushes the buffer again at the submission's point (64 bytes), then the completion settles it at the retirement's (64). The test asserted no flush at the submission's point there. It now asserts both flushes and their points; the doc comment says so. Verified: cargo fmt only; the 5080 run follows.
This commit is contained in:
1 parent
e129303c42
commit
afd4373cdb
1 file changed
+12
-4
@@ -915,8 +915,9 @@ mod on_device {
|
||||
/// buffer fills a Shared buffer, signals the value, then waits. Before `signaledValue` shows
|
||||
/// the value, and before a wait for it returns, the buffer is flushed and invalidated over
|
||||
/// its atoms, once, after the submission's flush of it, and the host reads the fill's bytes.
|
||||
/// Once the host sets the value waited for, the command buffer's completion invalidates the
|
||||
/// buffer once more.
|
||||
/// Once the host sets the value waited for, the submission of the command buffer's segment
|
||||
/// after its wait flushes the buffer again, and its completion flushes and invalidates it once
|
||||
/// more.
|
||||
#[test]
|
||||
fn every_device_opened_under_the_view_settles_the_writes_in_flight_before_a_signal_is_seen() {
|
||||
const OFFSET: u64 = 256;
|
||||
@@ -987,10 +988,17 @@ mod on_device {
|
||||
[1, widened, 0],
|
||||
"{name}: {way}: the completion's invalidate"
|
||||
);
|
||||
assert_eq!(
|
||||
[at_completion[0], at_completion[1]],
|
||||
[2, 2 * widened],
|
||||
"{name}: {way}: the flush of the segment after the wait, then the completion's"
|
||||
);
|
||||
assert_eq!(
|
||||
at_completion[5..],
|
||||
[0, widened, 0, 0],
|
||||
"{name}: {way}: the completion's settle, at the retirement's point"
|
||||
[widened, widened, 0, 0],
|
||||
"{name}: {way}: the submission of the segment after the wait flushes the \
|
||||
buffer at the submission's point, and the completion settles it at the \
|
||||
retirement's"
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user