From e50427cfe54e8ebb96ecd660fa9a80a70c6e4cd5 Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Mon, 23 Nov 2026 00:32:33 -0800 Subject: [PATCH] Test: the floor's set-1 sampler array is its 24,000 update-after-bind samplers 0eb982e471 raised the runtime floor profile's update-after-bind sampler limits from 12,000 to 24,000 for the LOD-clamp variants, and an_argument_sampler_array_has_the_heap_sampler_capacity still asserted the floor's array at 12,000: it failed on development's tip (m3-max-70331 at 8ab24c9753, engine_handles.rs:4496). The lane's checks ran the runtime, validation and conformance suites, not the translator's. The array follows heap_sampler_capacity, which reads the profile, so the assertion and the doc comment now say 24,000; no product line moves. Verified: not yet; the translator suite at this commit follows (named in the pin line). --- crates/metal2vulkan/src/tests/engine_handles.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/metal2vulkan/src/tests/engine_handles.rs b/crates/metal2vulkan/src/tests/engine_handles.rs index 201eb1f7a..c7b7a77ba 100644 --- a/crates/metal2vulkan/src/tests/engine_handles.rs +++ b/crates/metal2vulkan/src/tests/engine_handles.rs @@ -4448,7 +4448,7 @@ fn argument_buffer_samplers_are_heap_lookups() { /// A kernel reading a texture and its sampler from an argument buffer has one set-1 sampler /// array, of `heap_sampler_capacity` elements, on every committed profile that compiles it: the /// handle table's 65536 where the update-after-bind sampler limits pass it (MoltenVK's 500000, -/// lavapipe's, NVIDIA's), the update-after-bind limits' 12000 on the runtime's floor. On the M3's profile +/// lavapipe's, NVIDIA's), the update-after-bind limits' 24000 on the runtime's floor. On the M3's profile /// with its per-stage update-after-bind sampler limit lowered to 100, or its set's to 200, the /// array and the answer follow it. A profile that refuses the kernel answers 0, and so does the /// M3's without `descriptorBindingPartiallyBound` or `shaderSampledImageArrayNonUniformIndexing`, @@ -4493,7 +4493,7 @@ fn an_argument_sampler_array_has_the_heap_sampler_capacity() { for stem in ["moltenvk-m3", "lavapipe", "nvidia-rtx5080-laptop"] { assert!(compiled.contains(&(stem, 65536)), "{stem}: {compiled:?}"); } - assert!(compiled.contains(&("runtime-floor", 12000))); + assert!(compiled.contains(&("runtime-floor", 24000))); let m3 = || { (committed_descriptions().expect("descriptions").iter()) .find(|(stem, _)| stem == "moltenvk-m3")