From bb21c14865fd994b46bb26c74619cc5e01ac4bbc Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Sun, 15 Nov 2026 11:44:21 -0800 Subject: [PATCH] compute/live: name SamplerState where the debug check takes it, so a release build imports nothing unused check_whole, the only user of SamplerState in compute/live.rs, is cfg(debug_assertions), so a release build under --cfg m2v_gpu warned 'unused import: SamplerState' (live.rs:94), an error under -D warnings (seen by the gbgap and ratemap3b lanes' release builds). The signature names the type by its path and the import goes. Verified: see the landing check job. --- crates/metal2vulkan-runtime/src/compute/live.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/metal2vulkan-runtime/src/compute/live.rs b/crates/metal2vulkan-runtime/src/compute/live.rs index 00cfe4dd1..6ef4885ae 100644 --- a/crates/metal2vulkan-runtime/src/compute/live.rs +++ b/crates/metal2vulkan-runtime/src/compute/live.rs @@ -91,7 +91,7 @@ use crate::heap_sets; use crate::live_bind::{Reshape, ValueKinds}; use crate::pipeline::{ComputePipelineState, WeakComputePipelineState}; use crate::pvrtc::ResidentUnreadable; -use crate::sampler::{ArgumentSamplers, SamplerState}; +use crate::sampler::ArgumentSamplers; use crate::shadow::ResidentShadows; use crate::work_counts::Counting; @@ -331,7 +331,7 @@ impl LiveDispatch { &self, tables: &DispatchTables<'_>, maps: &SamplerMaps, - samplers: Option<&[SamplerState]>, + samplers: Option<&[crate::sampler::SamplerState]>, function_tables: &[VisibleFunctionTable], ) { let mut whole = tables.bind_state(samplers.unwrap_or_default(), function_tables);