kept_textured: each device settles the view check before its frames

What: kept_textured's run_with calls Device::settle_view_check on each device
it makes, before the case's frames.

Why: the tests compare the resident uses frame 1 walked with frame 0's
(WorkCounts::resident_uses_noted). The view check runs from the device's
making (no record in the lane's scratch cache); its pointer import of host
pages, and that import's release, each change the device's host aliases
(HostAliases::version), and noted_apart.rs skips a draw's noting only while
that version stands, so a frame met by either walks its resident uses again.
On the RX 7900 XTX at development 01415e33d6 (m3-max-39932, lane 2/2) three
failed at kept_textured.rs:207 with frame 1 at 521 or 525 against 517, as at
the pin port 18b1c40ea4 (m3-max-39755).

Verified: compiled and run in the jobs named in the report.
This commit is contained in:
Anees Iqbal committed 2026-11-17 02:16:41 -08:00
1 parent e11a025d93
commit 665949bf1a
1 file changed
+7 -1
@@ -236,7 +236,12 @@ fn fresh(
}
/// A device under the validation layer, a queue of it and a page of [`COMMANDS`] commands, for
/// `case`, which ends with the layer having reported nothing.
/// `case`, which ends with the layer having reported nothing. The device's view check answered
/// first (`Device::settle_view_check`): with no record of it in the scratch cache, the check runs
/// from the device's making, and its import of host pages and that import's release each change
/// the device's host aliases (`host_aliases.rs`'s version), after which a draw notes its resident
/// uses afresh (the runtime's `noted_apart.rs`): frame 1 walked 521 and 525 against frame 0's 517
/// on the RX 7900 XTX.
fn run(case: impl FnOnce(&Device, &CommandQueue, &mut Page)) {
run_with(|_| {}, case)
}
@@ -248,6 +253,7 @@ fn run_with(adjust: fn(&mut DeviceOptions), case: impl FnOnce(&Device, &CommandQ
let messages = Messages::default();
{
let device = validated_device_with(TEST_DEVICE, &messages, cache.path(), adjust).unwrap();
assert!(device.settle_view_check(WAIT), "the view check answers");
println!(
"KEPT-TEXTURED {}: descriptorBindingUpdateUnusedWhilePending {}",
device.name(),