Expect no shared-memory notice in the fill-mode tests that make no buffer
points_need_fill_mode_non_solid expected "not announced: [SharedInSystemMemory]"; on a discrete device that notice comes only from a Shared buffer, and the test (like the two MoltenVK refusal branches) makes only Shared textures, so on the RX 7900 XTX it failed on the expectation alone (m3-max-26943, 4/5). The three now expect no notice. Test only. Verified (fillpoints, d4db20618e): XTX (RADV NAVI31, 27021 build, 27032 run) 5/5, XTX_RUN=0: Points light Metal's 3 vertex pixels, culled front none, back the same 3, fill 45 px, lines 27, triangle-point-size announced once; fill-lines pixels unchanged.
This commit is contained in:
1 parent
dbcbc704c2
commit
69c5ab1de6
1 file changed
+5
-4
@@ -73,7 +73,8 @@ fn sized_descriptor(probe: &Probe) -> RenderPipelineDescriptor {
|
||||
}
|
||||
|
||||
/// The kinds a test forces where the device has not announced them, beside its pipeline states'
|
||||
/// makings': the `Shared` resources' system memory.
|
||||
/// makings': the `Shared` buffers' system memory (its passes' `Shared` textures announce none). A
|
||||
/// test that makes no buffer forces nothing.
|
||||
fn shared(probe: &Probe) -> BTreeSet<Degradation> {
|
||||
BTreeSet::from_iter(
|
||||
shared_in_system_memory(&probe.device).then_some(Degradation::SharedInSystemMemory),
|
||||
@@ -124,7 +125,7 @@ fn refuses_points(probe: &Probe) -> bool {
|
||||
fn a_triangle_in_fill_mode_points_draws_its_vertices() {
|
||||
let (messages, _cache, probe) = validated();
|
||||
if refuses_points(&probe) {
|
||||
assert_made_once(&messages, &[], &shared(&probe));
|
||||
assert_made_once(&messages, &[], &BTreeSet::new());
|
||||
quiet(probe, &messages);
|
||||
return;
|
||||
}
|
||||
@@ -184,7 +185,7 @@ fn a_triangle_in_fill_mode_points_draws_its_vertices() {
|
||||
fn a_function_without_a_point_size_draws_points_of_one_pixel() {
|
||||
let (messages, _cache, probe) = validated();
|
||||
if refuses_points(&probe) {
|
||||
assert_made_once(&messages, &[], &shared(&probe));
|
||||
assert_made_once(&messages, &[], &BTreeSet::new());
|
||||
quiet(probe, &messages);
|
||||
return;
|
||||
}
|
||||
@@ -214,6 +215,6 @@ fn points_need_fill_mode_non_solid() {
|
||||
let needs = Unsupported::needs(what, Capability::Feature(VkFeature::FillModeNonSolid));
|
||||
assert_eq!(refusal(&probe, fill), Some(needs), "{fill:?}");
|
||||
}
|
||||
assert_made_once(&messages, &[], &shared(&probe));
|
||||
assert_made_once(&messages, &[], &BTreeSet::new());
|
||||
quiet(probe, &messages);
|
||||
}
|
||||
Reference in new issue
Block a user