Validation: the tier table's robust-buffer forms go with the heap test that read them

TierProfile::robust_buffers_uncontained and its robust_buffers field had one reader, the deleted
guard test that argued no venue's verdict differed between the executor's guards and the runtime
path's heaps; with it gone, the test build's dead-code lint fails on them (job m3-max-58637).
This commit is contained in:
Anees Iqbal committed 2026-11-20 06:28:32 -08:00
1 parent b5cbdb2b4a
commit 5f18266780
1 file changed
-15
@@ -28,9 +28,6 @@ pub struct TierProfile {
pub class: Option<ExecutionClass>,
/// `subgroupSize`: the width of a module that asks for full subgroups without pinning one.
pub subgroup_size: u32,
/// The leg enables `robustBufferAccess` or `robustBufferAccess2`, so its buffers take the
/// robust encoding and are left to the device.
pub robust_buffers: bool,
}
impl TierProfile {
@@ -41,18 +38,6 @@ impl TierProfile {
leg,
class: ExecutionClass::of_description(description),
subgroup_size: description.subgroup.size,
robust_buffers: description.has(VkFeature::RobustBufferAccess)
|| description.has(VkFeature::RobustBufferAccess2),
}
}
/// The forms this entry leaves to a device that does not contain them: its class's
/// ([`ExecutionClass::robust_buffers_uncontained`]) where the leg enables buffer robustness,
/// else none (the in-shader encoding contains them).
pub fn robust_buffers_uncontained(&self) -> &'static [RobustBufferForm] {
match self.class {
Some(class) if self.robust_buffers => class.robust_buffers_uncontained(),
_ => &[],
}
}