docs(debt): record the CMASK clear pass fault on AMD without pipeline libraries #7875
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/7875"
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 xXPBSXx on 2026-10-19T11:57:15Z.
What
agc_driver_cmask_fast_clear(#5150) loses the Vulkan device on AMD's Windows driver when pipeline libraries are off (APS5_NO_GPL=1). Adds a debt entry under Functional, next to the existing CMASK fast-clear entry, that says what is unverified and what is measured; no code changes.Measured on an AMD Radeon RX 6400 (driver 32.0.21033.3005, Windows 10 19045),
mainfd423f9b2and676d42396,ANYPS5_GPU=Radeon,ANYPS5_REQUIRE_VULKAN=1,ANYPS5_NO_SHADER_CACHE=1:ctest -R '^agc_driver_cmask_fast_clear$' --repeat until-fail:5withAPS5_NO_GPL=1fails on the first run (about 1 s):[device-fault] result 0: GPU fault,read invalid at 0xbeefdeadc000 (precision 0x1000), thenvkQueueSubmit recorder: Vulkan result -4(amd_cmask_run1.txt, lines 54-58).APS5_NO_GPL, 5 of 5 pass on the same GPU; on an NVIDIA GeForce RTX 4080 SUPER 5 of 5 pass in both modes.SW_64KB_R_Xpass fails the same way; withcmaskAddressset to 0 locally, no GPU fault occurs. That points atDispatchCmaskClear, which only runs for a target with a resident image (the linear pass has none).What is not known: which read in that pass hits the address, and why pipeline libraries matter. No fix is claimed.
Tested
Documentation only.
tools/check_conventions.py --base upstream/main: all checks passed (the entry is 886 characters). The measurements above were made with local, uncommitted diagnostics in the test; the local diagnostics were discarded.Checklist
main; no other open PR implements the same functions (#5150 is the issue; #7351 and #7376 concernrobustBufferAccess2on this driver).mdfiles or images addedAI-assisted (Claude Code).
🤖 Generated with Claude Code
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-19T12:10:03Z.
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.
main)docs/dev/debt/libSceAgcDriver.mdL131Some 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.
docs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mdImported from boykopovar/AnyPS5. Originally posted by fogydes on 2026-10-19T12:23:52Z.
Review: COMMENTED
Verified the documentation entry in
docs/dev/debt/libSceAgcDriver.md:tools/check_conventions.py --base origin/main; passes cleanly with 0 findings.DispatchCmaskClearbehavior on AMD Windows drivers whenAPS5_NO_GPL=1is set, linking theSW_64KB_R_Xfault at0xbeefdeadc000to issue #5150 and specifying clear criteria for closure.Imported from boykopovar/AnyPS5. Originally posted by LeandroLP23 on 2026-10-19T12:33:03Z.
A second AMD generation, where it fails differently. AMD Radeon 860M (RDNA 3.5,
1002:1114), driver 32.0.13058.8001, Windows 11, WinLibs GCC 15.2.0, Release,ANYPS5_NO_SHADER_CACHE=1.mainb106f6f8c.agc_driver_cmask_fast_clear, 5 runs each:APS5_NO_GPL=1: fails 5 of 5, but there is no GPU fault and no device loss. The check fails on the contents instead:SW_64KB_R_X fast-cleared target drawn over its left part: texel (0, 0) holds 1515870810(0x5A5A5A5A). No[device-fault]line and no-4.So on RDNA 3.5 the same pass gives wrong contents instead of a read at
0xbeefdeadc000. That still fits the entry'sDispatchCmaskClearlead, and it shows the symptom depends on the GPU. The entry could say that the RX 6400 loses the device and the 860M reads back wrong contents.AI-assisted: yes (Claude Code)
Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-19T12:52:35Z.
Thanks, both. Added the Radeon 860M observation to the debt entry (
2368691a9, documentation only): on that GPU the same pass leaves0x5A5A5A5Ain the target without a device loss, while the RX 6400 loses the device. I dropped the sentence that the pass does not fault without a CMASK to keep the entry under 1000 characters (987).The symptom depends on the GPU, which fits the
DispatchCmaskClearlead from the entry; the cause itself is still unknown. On the RX 6400, withcmaskAddressset to 0 locally, no GPU fault occurs; I did not check what the target holds in that case.AI-assisted (Claude Code).
Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-19T18:00:13Z.
Checked that
DispatchCmaskClearis the pass named (TextureDetiler.cpp, called fromDraw.cpp), that the entry sits next to the CMASK fast-clear entry rather than at the end of the section, and that it states what is unverified and when it closes. Docs only; merged.