test(shader): skip faulting wave test on narrow subgroups #6751
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/6751"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-16T09:35:17Z.
What
The faulting wave64 regression test only exercises the two-lanes-per-invocation EXEC case when the host subgroup is exactly 32 lanes. On narrower or wider host subgroups it can pass without exercising the reported failure, including on lavapipe. Return
VulkanTestSkippedwith the detected subgroup size on devices that cannot run this case.This is a stacked follow-up to #6416; its commits are carried unchanged, followed by this test guard. Merge #6416 first, then rebase this branch so the PR retains only the follow-up commit.
Tested
mainate9a3343a227832d16d0833248cfead2c61062f94; preserved the #6416 commit author and this PR's author.cmake --build /tmp/AnyPS5-6751-build --target agc_driver_faulting_wave_invocation_tests --parallel 6passed (214/214 build steps), including the modified shader recompiler and test binary. GCC 12.2 required a temporary localtemplatekeyword workaround for the unrelated baseline parse failure inSrtDescriptorEvaluation.cpp; that file was restored after the build.ctest --test-dir /tmp/AnyPS5-6751-build -R '^agc_driver_faulting_wave_invocation$' --output-on-failureaborts before Vulkan selection because this Xeon E5-1620 v2 lacks LZCNT, BMI1/2, MOVBE, AVX2 and FMA. No runtime skip or GPU result is claimed.python3 tools/check_conventions.py --base upstream/mainandgit diff --check upstream/main...HEADpassed.Checklist
main; no other open PR implements this test guardImported from boykopovar/AnyPS5. Originally posted by jotitadev on 2026-10-16T12:10:33Z.
Review: COMMENTED
Ran
agc_driver_faulting_wave_invocationon Apple silicon, where the host subgroup is 32 lanes, so the new guard does not skip and the wave64 case does run.Machine: Apple M2 Max, macOS 27.2, x86-64 build under Rosetta. Head 3eee0ccca (carries b5a0c1ff7 from #6416). Method: macos-port @ b7eb6b6b + ImportWatched + PR diff, not main. To build there I also backported
SpirvModule::DefineInitializedGlobalVariablefrom main (the port predates it); one trivial context conflict inSpirvEmitterState.hppwas resolved by keeping both sides.Device log reports
Selected GPU name=Apple M2 Max ... subgroup=32.lane 0 left the EXEC loop after 100 passes, expected 4 (the loop stops at 100)faulting wave invocation tests passed)So on a 32-lane device the test fails without the fix and passes with it on both drivers. This backs the premise of the guard: the subgroup-32 case does exercise the reported failure, unlike the subgroup-8 llvmpipe case discussed in #6416.
Full
^agcsuite with the PR (SDK driver,-j1 --timeout 30, flip/display/lds_atomics64 excluded): 13 failures, the same 13 as the port baseline. No new failures.GPUs tested: Apple M2 Max (MoltenVK 1.4.2 and MoltenVK main + SPIRV-Cross #2704)
Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-16T14:07:13Z.
Thanks for running this on Apple silicon. The 32-lane result confirms the guard leaves the wave64 case enabled there, and the fixture runs instead of skipping. That closes the host-subgroup validation gap I had.
Imported from boykopovar/AnyPS5. Originally posted by jotitadev on 2026-10-16T16:24:43Z.
Review: COMMENTED
The same check on NVIDIA (32-lane subgroups) and on lavapipe (8 lanes), both on Linux.
Machine: NVIDIA GeForce RTX 3070, driver 595.99.02, Vulkan 1.4.329, plus lavapipe (Mesa 26.0.3, LLVM 21.1.8) on the same machine. Ubuntu 26.04, i7-8700, GCC 15.2, Release,
BUILD_TESTING=ON. Head3eee0cccamerged intomain452494439(clean merge, carries #6416's commits). Device and subgroup size from theSelected GPUlog line.subgroup=32)subgroup=8)the faulting wave64 case needs 32-lane subgroups, device reports 8main'sSpirvBackend/(no #6416 fix)lane 0 left the EXEC loop after 100 passes, expected 4 (the loop stops at 100)So on a 32-lane NVIDIA device the test fails without the fix and passes with it, with the same message as on Apple, and the guard skips on lavapipe with the subgroup size in the message.
Not run: Windows, AMD, the full suite.
GPUs tested: NVIDIA GeForce RTX 3070 (595.99.02), lavapipe (Mesa 26.0.3, LLVM 21.1.8), Ubuntu 26.04
Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-16T17:38:14Z.
Thanks for checking both subgroup sizes and including the main-source negative control. The RTX 3070 run confirms the faulting-wave test fails without the shader fix and passes with it; lavapipe reports its 8-lane subgroup and skips with the expected reason. I have recorded that as the Linux hardware coverage for this change.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-16T21:55:38Z.
Rebased this stacked PR onto current
main(e9a3343a2) and resolved the conflict inSpirvEmitter.cppwhile keeping current main's!spannedWavecondition. The #6416 change remains authored by Celegans12; the subgroup test guard remains authored by MarcZX100. The focused target builds successfully (214/214 steps). The focused CTest still cannot reach Vulkan on this Xeon E5-1620 v2 because the host lacks LZCNT, BMI1/2, MOVBE, AVX2 and FMA; no runtime skip or GPU result is claimed. Conventions andgit diff --checkpass against current upstream main.Imported from boykopovar/AnyPS5. Originally posted by keravyn-ops on 2026-10-17T08:57:25Z.
AMD / Windows run of this PR at 982d5a07f: Radeon 780M (RDNA 3, 0x15bf), AMD driver 25.10.20.01 (32.0.21020.1007), Windows 11 Home 10.0.26100, WinLibs GCC 15.2.0 r7, Release.
agc_driver_faulting_wave_invocation: skipped with the expected reason —skipped, the faulting wave64 case needs 32-lane subgroups, device reports 64(0.58 s).The device's default subgroup size is 64; the same run also logs
Wave32 programs run on subgroups of 32: compute 1, mesh 0(subgroup size control is available), so the guard behaves as described for a 64-lane default host.AI-assisted: yes (run made on the device above).
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-17T13:37:11Z.
Thanks for the AMD/Windows run. This confirms the guard skips cleanly on a 64-lane default subgroup and reports the detected size, complementing the 32-lane execution and 8-lane lavapipe skip results. The log says compute can use 32-lane waves, but this run does not test requesting subgroup size 32, so I am recording it only as validation of the current default-size guard.
Imported from boykopovar/AnyPS5. Originally posted by DavidAmsellem on 2026-10-19T17:22:14Z.
First run of this PR that reaches Vulkan, on AMD/Linux (RADV). Merged onto
maindbac9fa15(clean merge), built in full and compared with the samemain, on the same machine.AMD Radeon RX 7900 XT (RADV NAVI31, gfx1100), Mesa 25.2.8, Linux Mint 22.3 (Ubuntu 24.04 base), kernel 7.0.0-38, GCC 13.3, Release.
Full suite (
ANYPS5_REQUIRE_VULKAN=1 ctest -j8): 1639/1641 with this PR, against 1638/1640 onmain. The failures are the same two on both, so this PR adds none:agc_driver_image_table_vouched_lookups(#7766, fixed by #7916) andagc_driver_guest_memory_lifetime(#7784).The new
agc_driver_faulting_wave_invocationskips here, with your new message:skipped, the faulting wave64 case needs 32-lane subgroups, device reports 64. That looks right to me rather than a gap: RADV's default subgroup size is 64, soHostSubgroupSizegives 64, wave64 programs run one lane per invocation, and the two-lanes-per-invocation EXEC case this test targets cannot occur on this device. So RADV adds no runtime coverage for the fix itself; a device whose default subgroup is 32, such as NVIDIA, is still needed for that. No other test is skipped or removed compared withmain.GPUs tested: AMD Radeon RX 7900 XT (RADV NAVI31, gfx1100), Mesa 25.2.8, Linux Mint 22.3 / kernel 7.0.0-38
AI-assisted: yes
Imported from boykopovar/AnyPS5. Originally posted by DavidAmsellem on 2026-10-19T18:17:05Z.
First AMD-on-Linux (RADV) run of this PR. Merged onto
maindbac9fa15(clean merge), built in full and compared with the samemain, on the same machine.AMD Radeon RX 7900 XT (RADV NAVI31, gfx1100), Mesa 25.2.8, Linux Mint 22.3 (Ubuntu 24.04 base), kernel 7.0.0-38, GCC 13.3, Release.
Full suite (
ANYPS5_REQUIRE_VULKAN=1 ctest -j8) at801f1647a: 1639/1641 with this PR, against 1638/1640 onmain. The two failures are the same on both, so this PR adds none:agc_driver_image_table_vouched_lookups(#7766, fixed by #7916) andagc_driver_guest_memory_lifetime(#7784).The PR's new ctest entry,
agc_driver_faulting_wave_invocation, is skipped on this device, so this run does not validate it: it returns the skip code when the device does not report 32-lane subgroups, and RADV on Navi 31 reportssubgroup=64(Selected GPU name=AMD Radeon RX 7900 XT (RADV NAVI31) ... subgroup=64). Worth knowing that the case stays uncovered on RDNA 3 with RADV. No other ctest entry is added, skipped or removed compared withmain.This checks correctness only; I did not measure performance.
GPUs tested: AMD Radeon RX 7900 XT (RADV NAVI31, gfx1100), Mesa 25.2.8, Linux Mint 22.3 / kernel 7.0.0-38
AI-assisted: yes
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-19T20:27:04Z.
Thanks for the RADV/Navi 31 result. It confirms the full suite adds no failures, while the focused case correctly skips on the device’s default 64-lane subgroup. That run does not validate the guarded behavior itself, but the existing NVIDIA and Apple subgroup-32 comparisons do: the test fails without #6416’s fix and passes with it. I’ll record RDNA 3/RADV as an expected skip rather than runtime coverage.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-02T04:56:50Z.
Review: COMMENTED
Replies checked — merge conflict and Fixes line confirmed, Vulkan evidence is third-party
The branch still conflicts with current upstream/main in
SpirvEmitter.cpp, and the PR body lacks theFixes:line.What I ran
982d5a07f2f54504e402bb03a591a3ec915dea0e(OPEN, unchanged from batch).gh apicomments, review comments and reviews on #6751, newer than 2026-10-19T20:27:04Z, excluding MarcZX10 and bots.gh pr view 6751 --json body,statusCheckRollup,gh pr view 6416 --json state,mergeStateStatus.git merge-tree --write-tree upstream/main 982d5a07(upstream/main926f7dd492),git show upstream/main:.github/pull_request_template.md.Results
merge-treevs upstream/mainSpirvEmitter.cpp; 16184 behind, 2 aheadFixes:lineconventions,eligibility,reportwindows,linux,relinkerSKIPPEDFindings
Fixes:line missing. Confirmed. Answer: add- [x] Fixes: noneto the body.VUID-logs on a supported GPU. The body says the host CPU blocked Vulkan. A third-party NVIDIA run at this head (@TechLevelZero, 2026-10-30 01:28 UTC) reports 0 new validation IDs against main, with 6 failures, all also on main or unstable. Not verified here; cite it or run it.Sources
github.com/boykopovar/AnyPS5@926f7dd492/.github/pull_request_template.md (L16)Not verified
SpirvEmitter.cpp(only the merge-tree conflict status was read).AGENTS.mdrules fogydes cites. The head predates the current template, so theFixes:source is main at926f7dd, not the head.