Tests: the early member's settle test takes the floor's choice over the view as its arm, on every device
What: every_device_settles_an_early_members_shared_writes_at_its_own_completion's second arm, under m2v_gpu, opened each device through the refused device's memory view (cached_types_incoherent) with each_device_with and panicked where the make was refused. It now runs through each_device_under_the_view, the helper the view tests share sincecb3d913139: the floor's choice over the viewed memory properties decides the arm. Where it chooses, the device opens through the view with the chosen types and the body runs as before. Where it refuses, the make is refused with exactly that refusal, which is printed. Why: round 6c43304e65-1125-1610's Mac leg (m3-max-74364, KosmicKrisp on the M3, Mesa 26.3.1) was red on this one test, 747 of 748: "the device is below the runtime's floor: it lacks a memory type with DEVICE_LOCAL | HOST_VISIBLE | HOST_COHERENT for buffers (the device offers buffers: type 0 with DEVICE_LOCAL | HOST_VISIBLE | HOST_CACHED)". That device's one host-visible, host-cached buffer type also holds the parameter ring, so under the view no coherent type is left for the ring, and the floor refuses it, as it should. This is the class kkview fixed in the two view tests (cb3d913139). The test came with the submit-thread stack, which landed beside that fix and was never run on that venue. Test only; the runtime does not change.
This commit is contained in:
1 parent
e9484b7d03
commit
5f3ffaaa28
1 file changed
+9
-8
@@ -5061,19 +5061,20 @@ pub(crate) mod on_device {
|
||||
/// handler reads its own fill. Where the device holds none, it makes no flush or invalidate,
|
||||
/// and A's sight before L's end is not asked for (lavapipe retires A with L). Each device runs
|
||||
/// it as it reads its types and, under `m2v_gpu`, through the refused device's view
|
||||
/// (`crate::tests::cached_types_incoherent`), which builds the state. L's copies are sized to
|
||||
/// about 10 ms and, where the device holds the state, doubled for another attempt where A was
|
||||
/// seen complete only after L's GPU end, up to four.
|
||||
/// (`crate::tests::cached_types_incoherent`), which builds the state, as the floor's choice
|
||||
/// over the view decides ([`each_device_under_the_view`]): a device whose one host-visible,
|
||||
/// host-cached buffer type also holds the parameter ring is refused under the view, and that
|
||||
/// refusal is printed. L's copies are sized to about 10 ms and, where the device holds the
|
||||
/// state, doubled for another attempt where A was seen complete only after L's GPU end, up to
|
||||
/// four.
|
||||
#[test]
|
||||
fn every_device_settles_an_early_members_shared_writes_at_its_own_completion() {
|
||||
let test = "command_group_apart_settles";
|
||||
each_device(test, early_member_settles);
|
||||
if cfg!(m2v_gpu) && !cfg!(m2v_shared_view) {
|
||||
let view = || DeviceOptions {
|
||||
memory: Some(crate::tests::cached_types_incoherent),
|
||||
..DeviceOptions::default()
|
||||
};
|
||||
each_device_with(test, view, early_member_settles);
|
||||
each_device_under_the_view(test, |name, instance, device, _| {
|
||||
early_member_settles(name, instance, device)
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user