From 5f18266780422c2a71e9da61eb4e27559028bf0d Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Fri, 20 Nov 2026 06:28:28 -0800 Subject: [PATCH] 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). --- .../src/coverage/tier_table.rs | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/crates/metal2vulkan-validation/src/coverage/tier_table.rs b/crates/metal2vulkan-validation/src/coverage/tier_table.rs index c35b37102..06eea76d9 100644 --- a/crates/metal2vulkan-validation/src/coverage/tier_table.rs +++ b/crates/metal2vulkan-validation/src/coverage/tier_table.rs @@ -28,9 +28,6 @@ pub struct TierProfile { pub class: Option, /// `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(), - _ => &[], } }