Repository navigation
Conversation
b787307 to
8931aa2
Compare
|
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.
|
|
Local end-to-end validation of this branch (head
Caveats: this machine is GFX12, so the #18770 NAVI31 failure does not reproduce here (expected — this PR is diagnostic only). This build has Logs and worktree: |
|
Ran the Tested section's set with the Khronos validation layer actually loaded, since the layer could not be installed on the machine the PR was tested on. Setup: Arch Linux (kernel 7.3.4), GCC 16.2.1, Release, NVIDIA GeForce RTX 4090 (vendor
No new AI-assisted: yes (Claude Code) |
Adds APS5_DUMP_SPIRV=<hex code address>|all to write the final recompiled module to spirv-<stage>-<address>.spv, mirroring APS5_DUMP_IR, to support issue boykopovar#18770: the exact PixelInterlockOrderedEXT module that drops an ordered-interlock write on RADV GFX11 can now be run through a standalone Vulkan harness on the affected hardware. Covered by agc_spirv_dump_tests.
8931aa2 to
7079f58
Compare
|
Refreshed and validated head Implementation corrections since the earlier run
Linux validation (CachyOS, kernel 7.3.4, GCC 16.2.1, no title)
Focused AMD validation
Dump acceptance
This host is GFX12, not NAVI31. The run validates the diagnostic tooling and current GFX12 behaviour; it does not claim to reproduce or fix the original #18770 NAVI31 failure. Full upstream Linux PR CI still requires a maintainer with write access to dispatch the Build workflow. |
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed — looks good
The change adds an opt-in final SPIR-V dump and focused tests; I found no verified blocking defect in the inspected code.
What I ran
Reviewed head 7079f58a6916f7e6ee19c22242c2586e9c508b12 using repo_read.py against the prepared review artifacts and repository source. No tests or build checks were run.
Results
| Check | Result | Note |
|---|---|---|
| Source review | passed | All five included changed files read |
| Build and tests | not run | Author-reported results were not independently run |
Findings
Blocking
None.
Non-blocking
None.
Not verified
No build or test commands were run. Author reports 6,409 CTest passes and focused SPIR-V dump tests, but those results were not independently verified. The excluded debt note docs/dev/debt/changes/fix-agc-pixel-interlock-gfx11-race.md was not read; it was excluded by the prepared review rules. The review bundle's files.json was unavailable through the reader, so excluded-file details beyond the description and manifest were not verified.
To get this to a good state
Nothing is required.
What
Add
APS5_DUMP_SPIRV=<hex code address>|all: the recompiler writes the final SPIR-V module returned for each matching program tospirv-<stage>-<address>.spvin the working directory, mirroringAPS5_DUMP_IR. The switch is registered as neutral for the shader disk cache key and documented indocs/dev/ENVIRONMENT.md;agc_spirv_dump_testschecks the complete header and instruction stream, compares every word with the finalresult.spirv, validates withspirv-valwhen SPIRV-Tools is enabled, and verifies that a real cache hit recreates the same dump.docs/dev/debt/changes/records the #18770 findings.Why for #18770: the recompiled
PixelInterlockOrderedEXTmodule whose critical section (volatile coherent loads, bounds-checked RMW split across coverage-gated blocks) drops one of 64 ordered-interlock writes on RADV GFX11/NAVI31 can now be dumped exactly and run through a standalone Vulkan harness on the affected hardware — the isolation step the issue thread identified as next. This PR deliberately does not change the interlock emission: on this machine's GFX12 (RX 9070 XT, RADV 26.2.4) the failure does not reproduce (30/30 runs at 64 layers, 10/10 with 512 layers), so no emission change could be validated here, and the issue's matrix (fails only gfx1100 + RADV; passes RDNA2 + RADV, lavapipe, GFX12 + RADV, RDNA3.5 + AMD proprietary) points at RADV's GFX11 POPS path.Tested
CachyOS Linux (kernel 7.3.4), GCC 16.2.1, no title. All builds used at most 12 CPUs. Baseline
089d2df72e4a; final head7079f58a6916.BUILD_TESTING=ONandANYPS5_ENABLE_SPIRV_TOOLS=ON: pass. Full CTest: 6409/6409 passed, 180.19 s, no test over 30 s.check_skips.pyreports nine host-coverage skips; the same nine reproduce onmain(details in the validation comment).VK_LAYER_LSFGVK_frame_generationdisabled:vulkan_validation_gate.pyonagc_driver_pixel_interlock, two iterations per build. Four selections of the RX 9070 XT, four confirmed layer insertions, no missing-layer messages, no validation diagnostics and no newVUID-,SYNC-HAZARD-orUNASSIGNED-IDs; gate exit 0.agc_spirv_dump,agc_spirv_dump_full,agc_spirv_dump_none: 3/3 passed. Each checks final-module equality and recreation on a real cache hit with in-testspirv-valenabled.spirv-val, and both fragment modules containOpBeginInvocationInterlockEXT/OpEndInvocationInterlockEXT.rebase_verify.py: all four commits preserved.check_conventions.py --base origin/main: pass.pr_overlap.py --branchfailed closed on unresolved comparisons against older conflicting PRs; its only concrete same-line/new-file match was this PR against its own previous head.NAVI31 is not available here, so this validates the diagnostic tooling and GFX12 behaviour, not the original NAVI31 failure or a fix for #18770. Full upstream Linux PR CI still needs the maintainer-controlled manual Build dispatch.
Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)