From 211c10a594d829ebdef263efcaaf12cc44cd3c73 Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Mon, 23 Nov 2026 04:03:51 -0800 Subject: [PATCH] Translator tests: a description cleared of maximal reconvergence is cleared of quad control too What: emulated_shuffles_keep_metals_reconvergence_without_maximal_reconvergence (lavapipe) and the_stage_bound_fixture_takes_the_lighter_module_or_states_its_weight (intel-irisxe-rplp-anv) clear shaderQuadControl beside shaderMaximalReconvergence in the committed profile they edit. Why: bc0c8ff615 refuses a description that lists quad control without maximal reconvergence, which no device offers, and these two tests built exactly such a description. They are the two test descriptions bc0c8ff615's count missed: they clear the reconvergence feature by its JSON name and never name quad control. Both time compute kernels, which read neither feature for their quads. Job m3-max-70805 (msi, at a59075a09d) failed them with that refusal; its other failure is the golden table (bless due, 60 cells, SEMANTICS 2289 above the table's 2287). Verified: the next job reruns both. --- .../src/tests/engine_simd_emulated.rs | 16 +++++++++++----- .../src/tests/engine_simd_lockstep.rs | 16 +++++++++++----- 2 files changed, 22 insertions(+), 10 deletions(-) diff --git a/crates/metal2vulkan/src/tests/engine_simd_emulated.rs b/crates/metal2vulkan/src/tests/engine_simd_emulated.rs index 8cc540842..2eb06e61c 100644 --- a/crates/metal2vulkan/src/tests/engine_simd_emulated.rs +++ b/crates/metal2vulkan/src/tests/engine_simd_emulated.rs @@ -1579,7 +1579,8 @@ fn emulated_operations_do_not_depend_on_reconvergence() { } /// On lavapipe without maximal reconvergence (its description with `shaderMaximalReconvergence` -/// cleared, as the runtime lane withholds the feature): the shuffles of `dsm2_shuffle_past_n` run +/// cleared, as the runtime lane withholds the feature, and with it `shaderQuadControl`, which no +/// device offers without it): the shuffles of `dsm2_shuffle_past_n` run /// on the emulated tier (8-lane subgroups cannot hold Metal's simdgroups), every tangled /// instruction is an emulated site, and the kernel's reconvergence is `Guaranteed`, compiled alone /// and as the compute pipeline the runtime makes. @@ -1591,10 +1592,15 @@ fn emulated_shuffles_keep_metals_reconvergence_without_maximal_reconvergence() { let path = std::path::Path::new(env!("CARGO_MANIFEST_DIR")) .join("../metal2vulkan-validation/profiles/lavapipe.json"); let text = std::fs::read_to_string(path).expect("profile"); - let cleared = text.replace( - "\"shaderMaximalReconvergence\": true", - "\"shaderMaximalReconvergence\": false", - ); + let cleared = text + .replace( + "\"shaderMaximalReconvergence\": true", + "\"shaderMaximalReconvergence\": false", + ) + .replace( + "\"shaderQuadControl\": true", + "\"shaderQuadControl\": false", + ); assert_ne!( cleared, text, "the description names shaderMaximalReconvergence" diff --git a/crates/metal2vulkan/src/tests/engine_simd_lockstep.rs b/crates/metal2vulkan/src/tests/engine_simd_lockstep.rs index ee39d04ba..0d9594a74 100644 --- a/crates/metal2vulkan/src/tests/engine_simd_lockstep.rs +++ b/crates/metal2vulkan/src/tests/engine_simd_lockstep.rs @@ -2540,11 +2540,17 @@ fn the_stage_bound_fixture_takes_the_lighter_module_or_states_its_weight() { assert_eq!((entry_only(&module), weight(&module)), emulated); assert_eq!(function.module_stats().entry_weight, emulated.1); } - // Without maximal reconvergence: emulated for the lockstep pair, with no pin to keep. - let cleared = text.replace( - "\"shaderMaximalReconvergence\": true", - "\"shaderMaximalReconvergence\": false", - ); + // Without maximal reconvergence (and so without quad control, which no device offers without + // it): emulated for the lockstep pair, with no pin to keep. + let cleared = text + .replace( + "\"shaderMaximalReconvergence\": true", + "\"shaderMaximalReconvergence\": false", + ) + .replace( + "\"shaderQuadControl\": true", + "\"shaderQuadControl\": false", + ); assert_ne!( cleared, text, "the description names shaderMaximalReconvergence"