Repository navigation
test(shader): skip faulting wave test on narrow subgroups - #6751
oneandonlydean merged 1 commit into
Conversation
|
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
|
jotitadev
left a comment
There was a problem hiding this comment.
Ran agc_driver_faulting_wave_invocation on 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 3eee0cc (carries b5a0c1f from #6416). Method: macos-port @ b7eb6b6 + ImportWatched + PR diff, not main. To build there I also backported SpirvModule::DefineInitializedGlobalVariable from main (the port predates it); one trivial context conflict in SpirvEmitterState.hpp was resolved by keeping both sides.
Device log reports Selected GPU name=Apple M2 Max ... subgroup=32.
| Tree | MoltenVK 1.4.2 (SDK) | MoltenVK main + SPIRV-Cross #2704 |
|---|---|---|
| test only, without the #6416 fix | Failed: lane 0 left the EXEC loop after 100 passes, expected 4 (the loop stops at 100) |
Failed, same message |
| full PR (fix + test + guard) | Passed (faulting wave invocation tests passed) |
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 ^agc suite 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.
|
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. |
jotitadev
left a comment
There was a problem hiding this comment.
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. Head 3eee0ccca merged into main 452494439 (clean merge, carries #6416's commits). Device and subgroup size from the Selected GPU log line.
| Tree | RTX 3070 (subgroup=32) |
lavapipe (subgroup=8) |
|---|---|---|
| PR | passes 3/3 | skips: the faulting wave64 case needs 32-lane subgroups, device reports 8 |
PR test and guard, main's SpirvBackend/ (no #6416 fix) |
fails 3/3: lane 0 left the EXEC loop after 100 passes, expected 4 (the loop stops at 100) |
not run (skips) |
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.
|
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. |
3eee0cc to
982d5a0
Compare
|
Rebased this stacked PR onto current |
|
AMD / Windows run of this PR at 982d5a0: 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.
The device's default subgroup size is 64; the same run also logs AI-assisted: yes (run made on the device above). |
|
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. |
|
First run of this PR that reaches Vulkan, on AMD/Linux (RADV). Merged onto 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 ( The new 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 |
|
First AMD-on-Linux (RADV) run of this PR. Merged onto 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 ( The PR's new ctest entry, 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 |
|
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. |
|
Windows run of this head
AI-assisted: yes (Claude Code) |
✅ NVIDIA GPU test: passedPR head
Unstable on main (1, these also failed in recent main runs on this machine; not counted against this PR)Failing on main too (5, not counted against this PR)Passed on retry (1, failed in the parallel run, passed when re-run with a 360 s timeout; not counted against this PR)Validation IDs already present on main (5 IDs in 398 tests)Skipped (40)ReproduceAutomated build and test on a contributor's NVIDIA machine; it does not replace upstream CI. A new comment is posted for each new push. Full logs. |
|
stale+rebase Findings
Freshness Envelope
|
MarcZX10
left a comment
There was a problem hiding this comment.
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 the Fixes: line.
What I ran
- Live head
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.- Nothing was built or run.
Results
| Check | Result | Note |
|---|---|---|
| Live head | matches batch | OPEN |
merge-tree vs upstream/main |
exit 1 | one content conflict, SpirvEmitter.cpp; 16184 behind, 2 ahead |
PR body Fixes: line |
missing | current template has it at L16 |
| #6416 (base of this stack) | OPEN, CLEAN | merge state changed since fogydes' review |
Hosted conventions, eligibility, report |
SUCCESS | windows, linux, relinker SKIPPED |
Findings
- @fogydes (2026-10-30 08:14 UTC): the merge conflict is real against current main. Confirmed. The branch needs rebasing once #6416 lands, as the body already says.
- @fogydes: #6416 conflicts with main. Stale: #6416 is now CLEAN. Answer: rebase this branch after #6416 merges, as the body says.
- @fogydes:
Fixes:line missing. Confirmed. Answer: add- [x] Fixes: noneto the body. - @fogydes: asks for comparative
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
AnyPS5/.github/pull_request_template.md
Line 16 in 926f7dd
Not verified
- The conflicting hunks in
SpirvEmitter.cpp(only the merge-tree conflict status was read). - The third-party NVIDIA and Windows results.
- The cross-PR claims about #6290 and #6416 conflicts.
- The
AGENTS.mdrules fogydes cites. The head predates the current template, so theFixes:source is main at926f7dd, not the head.
982d5a0 to
d03baae
Compare
|
Windows and NVIDIA Blackwell run, for head
The new failure is this PR's test. The device reports 32-lane subgroups, so the guard leaves the case enabled, and it fails on every run: The carried copy of #6416 predates #6416's follow-up
Five runs of each ran with the validation layer, which logged nothing for this test. So carrying #6416's current head (which itself conflicts with The other failure, AI-assisted: yes. Claude Code ran the builds, tests and the control and drafted this comment; the numbers are from the runs on this machine. |
❌ NVIDIA GPU test: failedPR head
Failing testsThis PR changes test files, so each failing test was also built and run on main with only the PR's test changes applied. ✅ there means the failure comes from the PR's other changes; ❌ means the test fails on main too, so this run does not show the PR caused it.
agc_driver_faulting_wave_invocation: Failed (also failed when re-run alone), assertion and diagnosticsUnstable on main (3, these also failed in recent main runs on this machine; not counted against this PR)Failing on main too (3, not counted against this PR)Validated but not compared (1, not in the main baseline's validation pass)Validation IDs already present on main (13 IDs in 544 tests)Skipped (49)ReproduceAutomated build and test on a contributor's NVIDIA machine; it does not replace upstream CI. A new comment is posted for each new push. Full logs. |
✅ AMD GPU test: passedPR head
Unstable on main (1, these also failed in recent main runs on this machine; not counted against this PR)Failing on main too (7, not counted against this PR)Passed on retry (1, failed in the parallel run, passed when re-run with a 360 s timeout; not counted against this PR)Validated but not compared (1, not in the main baseline's validation pass)Validation IDs already present on main (8 IDs in 544 tests)Skipped (61)ReproduceAutomated build and test on a contributor's AMD machine; it does not replace upstream CI. A new comment is posted for each new push. Full logs. |
|
Ran this PR merged onto
This branch carries the October copy of #6416. #6416 has since gained 19eddec ("mask faults in spanning waves"). With #6416's current head merged onto the same Command: AI-assisted: yes (Claude ran the tests and drafted this comment) |
d03baae to
93d70c6
Compare
|
NVIDIA Linux run with the Khronos validation layer of the current head Setup: Arch Linux (kernel 7.3.4), GCC 16.2.1, Release, NVIDIA GeForce RTX 4090 (vendor
The RTX 4090 reports No new AI-assisted: yes (Claude Code) |
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 fix(shader): keep faulting invocations in their wave and mask their later writes #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 guard