AGC: AMD device-backed LDS lock-budget case returns half of expected sum #7344
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 Amoenus on 2026-10-18T01:18:10Z.
What
The existing
agc_driver_lds_lock_budgetcase fails3/3 on unchanged mainf663e565fe, on the AMD iGPU below. It returns a value rather than hanging. In the first, device-backed LDS case, lane0 reads exactly half the expected final sum:All three runs return the same actual/expected pair. The fixture stops at the first lane's assertion, so this is not a claim about every lane. Its second,
limit-4case is not reached on AMD. The existing test was added with #4048; I have not established which commit introduced the behavior.Environment
Windows11 Enterprise26200, Ryzen9 9950X3D, AMD Radeon(TM) Graphics1002:13c0, driver32.0.21036.18, Vulkan subgroup64; WinLibs GCC15.2.0 r7, Release. The actual selected device is confirmed in each log. Khronos validation1.4.363 is confirmed loaded; no observed VUID or validation errors. SPIRV-Tools build option OFF. Shader cache and pipeline journal disabled; driver caches uncontrolled.
Reproduce
Build current main, with Vulkan execution tests enabled, then:
The existing fixture already checks generated memory declarations before dispatch and exact readback from the256-lane program; no new reproducer code is required.
Controls and scope
The failure was found while refreshing Sonic's broader bring-up integration, then reproduced3/3 from a separate checkout/build of unchanged main. On the composed integration38faf6a75 (mainf663 plus open bring-up fixes), the same lock-budget test passes3/3 on RTX5080/610.62 and on llvmpipe LLVM20.1.2/Mesa25.2.8 under Ubuntu24.04 WSL2. Those are composition controls, not unchanged-main controls on those devices. The full selected integration suite is not claimed to pass on AMD.
Related #6666/#5271 describe an AMD LDS lock hang/unwritten output in the ordinary mixed-width test, with #6976/#6670 proposing corrections. This report records the distinct device-backed shared-memory-limit case, the exact returned value and current-main reproduction. I have not established whether the cause is shared or whether either pending correction fixes it. No game has yet been shown to hit this particular case; this was discovered during host-side validation, not from a Sonic failure. No performance or console-equivalence claim.
AI-assisted investigation and reporting: Codex; author responsible.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-18T01:56:06Z.
Thanks for running the exact
agc_driver_lds_lock_budgetcase. This confirms #6976 does not cover #7344: on an AMD RDNA 2 iGPU, unchangedmainandmainplus #6976 both fail with the same lane-0 value (0x00000ffffffff800vs0x00001ffffffff000); the RTX 4070 SUPER control passes 20/20. The two mixed-width lock tests do pass on #6976, so this remains a separate device-backed LDS failure. I see your note that you plan to take this issue next, so I’ll leave implementation with you.Imported from boykopovar/AnyPS5. Originally posted by LeandroLP23 on 2026-10-18T09:52:31Z.
RDNA 3.5 does not reproduce this, with
robustBufferAccess2on or off.Radeon 860M (RDNA 3.5,
1002:1114, APU), AMD driver 32.0.13058.8001 (Vulkan driver info 24.30.58.08, LLPC), Windows 11 Home 26300, WinLibs GCC 15.2.0, Release. Build:main1c523bdb4+ #6308 + #7264 (neither touches these paths).mainas is:lds lock budget: robustBufferAccess2=0since #7351 turned the feature off on AMD's proprietary driver. Both cases,limitandlimit-4, verify their GPU readback across 256 lanes, 3/3.RobustBufferAccess2Usableforced totrue:robustBufferAccess2=1, same result, 3/3.Your log has
robustBufferAccess2=1onf663e565f, before #7351 merged. It may be worth rerunning the case on currentmainon the RDNA 2 iGPU: if it passes there, this is probably another symptom of #7376.AI-assisted