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 screamm on 2026-10-18T15:54:46Z.
agc_driver_bda_devicefails on main with(VK_TIMEOUT from the 5 s fence wait in
CommandBatch::Wait; the test takes 6.6-7.2 s instead of 0.3 s).Environment: Windows 11 Pro 26220, NVIDIA GeForce RTX 4070, driver 596.21, Ryzen 7 5700X, WinLibs GCC 15.2.0 r7, Release,
ctest -R '^agc_driver_bda_device$' -j1.Bisect over 3e3e8b905..a62c724c3:
3e3e8b905: pass 3/3385ed71f2(merge of #7368): pass 3/3385ed71f2+d422c760ccherry-picked ("perf(shader): look up the BDA range of a user-data pointer once at program entry", #5859): fail, 3 of 3 separate runs644e38480(merge of #5859) anda62c724c3: failSo #7368 is not involved; the first bad commit is
d422c760c. It addsRunBdaAnchorTeststotests/BdaExecution.cppand emits the anchor range search at program entry (EmitBdaAnchors, withOpGroupNonUniformElect/OpGroupNonUniformBroadcastFirstof a 64-bit vector inEmitElectedBdaRange). One of the anchored dispatches never completes on this GPU. I have not isolated whichcompare()case hangs.Found during cross-validation of #7445, where the test fails identically with the PR's sources reverted, so it is unrelated to that PR.
Written with Claude Code assistance (bisect by a subagent, reviewed in this session).
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-18T16:08:21Z.
This failure is now directly investigated in open PR #7571. It reproduces the mixed mapped/below-table/past-end subgroup case, adds it to
agc_driver_bda_device, and changes the lookup helpers to return through one merge path. The PR reports 3/3 passes on NVIDIA RTX 4070 Ti/Linux with driver 595.99.02, while the Windows RTX 5080/610.62 control passes with both the original lookup and the change. This is strong coverage for the reported Linux failure, but it does not establish the behavior on other driver versions.Imported from boykopovar/AnyPS5. Originally posted by blawesom on 2026-10-18T16:24:56Z.
Third data point — this reproduces on RADV too, as an assertion rather than a timeout, so it is not NVIDIA-specific:
main@39ff29696:agc_driver_bda_devicefails 2/2 withan anchored BDA read differs from the same read through the lookups at anchor 0x140733498786049 + 0 + (-1), 16 bits, 1 dwords— a wrong-result assertion, ~0.4 s, no hang644e38480~1(before the #5859 merge): passes 1/1644e38480(the merge): fails — same assertionSo on AMD the same commit produces a deterministic wrong value from the anchored-read lookup rather than a fence timeout, which points at the anchor-lookup change itself rather than a driver hang. The assertion's shape — an anchored read differing from the same read through the lookups at a negative dword offset — may be the more direct repro for whoever takes the fix: the value is computably wrong before any fence is involved.
Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-18T16:57:47Z.
@blawesom thanks, that's a useful data point. The anchor in that message is printed as
0xfollowed by a decimal number: 140733498786049 is 0x7fff12340101, the test'sguest + 0x100. That's where the 0x10-bytewordsrange begins. So the first batch's lane 0 (low 0) reads 16 bits atguest + 0xff: one unmapped byte, then the first byte of the range. That address is outside what the anchor holds, so the anchored program takes the lookup path for that lane, while other lanes of the same subgroup load directly. The 8-bit read at -1 (one byte, fully unmapped) passes before it.#7571 changes the lookup functions that this path calls (one exit instead of three divergent returns). Could you run
agc_driver_bda_deviceat its head8e7d8874c8on the RX 9070 XT? I can't run RADV here, and lavapipe skips this part of the test (it crashes in it when the skip is removed, both onmainand on #7571).AI-assisted: yes (Claude Code)
Imported from boykopovar/AnyPS5. Originally posted by LeandroLP23 on 2026-10-18T18:06:22Z.
A data point from AMD's proprietary Windows driver:
agc_driver_bda_devicepasses here with #5859 in.Radeon 860M (RDNA 3.5, driver 32.0.13058.8001), Windows 11 26300, WinLibs GCC 15.2.0 r7, Release,
BUILD_TESTING=ON.mainc3591adf9(includes the #5859 merge644e38480), with seven unrelated open PRs merged that don't touch the BDA code:agc_driver_bda_devicepasses, 3 runs of 3, in 0.6 to 0.7 s each. So the hang (RTX 4070, Windows) and the wrong result (RADV) don't reproduce on this RDNA 3.5 GPU and driver.AI-assisted
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-18T18:07:05Z.
Thanks for testing this on the Radeon 860M. That is a useful control: it shows the reported timeout/wrong-result behavior does not reproduce on this RDNA 3.5 Windows setup, while the Linux NVIDIA and RADV reports remain. It does not settle the driver/architecture boundary, so I would keep the conclusions scoped to the tested combinations. The independent RADV wrong-value report also means this is not only a fence-timeout symptom.
Imported from boykopovar/AnyPS5. Originally posted by savvaniss on 2026-10-18T21:53:21Z.
Windows data from two more GPUs:
agc_driver_bda_devicepasses on an Intel UHD 770 and an AMD RX 9070 XT, with no fence timeout.Windows 11 Pro 26300, WinLibs GCC 15.2.0 r7, Release, every execution test built,
ANYPS5_NO_SHADER_CACHE=1, serial CTest. Intel UHD Graphics 770 (8086:a780), driver 32.0.101.7088. AMD Radeon RX 9070 XT (RDNA 4,1002:7550), driver 32.0.31041.1004, withVkCacheemptied first. Unchangedmainf3059421f, which includesd422c760c(#5859).agc_driver_bda_device, ×3mainf3059421fThe long first run of each set is pipeline compilation: the shader cache is disabled and
VkCachestarts empty. It passes even though it takes longer than the 5 s fence wait, so that time is not spent waiting on a fence here. In the parallel full CTest run of the same build it also passed, in 12.6 s on the UHD 770 and 23.2 s on the RX 9070 XT.AI-assisted: yes (Claude Code)
Imported from boykopovar/AnyPS5. Originally posted by Neithennn on 2026-10-19T09:36:33Z.
Windows RTX 4080 data point: on this GPU, main before #7571 loses the device in
agc_driver_bda_device, and #7571 (merged since) fixes it.Windows 11 Pro 26200, NVIDIA GeForce RTX 4080 (driver 617.42), AMD Ryzen 7 5800X, WinLibs GCC 15.2.0 r7, Ninja, Release, bundled dependencies,
BUILD_TESTING=ON,ANYPS5_NO_SHADER_CACHE=1.agc_driver_bda_devicef78675ae4(before #7571)AGC graphics: vkWaitForFences graphics: Vulkan result -4f78675ae4+ #7571 head8e7d8874cf51724078(before #5859), same machine, 2026-10-17So on the RTX 4080 the symptom was
VK_ERROR_DEVICE_LOST(-4) rather than the RTX 4070'sVK_TIMEOUT(2). With #7571,agc_driver_bda_anchor_readsandagc_driver_bda_span_readspass too, and the fullctest -j 8is 1628/1628 (1627/1628 onf78675ae4alone).AI-assisted: yes (runs done with Claude Code).
Imported from boykopovar/AnyPS5. Originally posted by Rajkamalcode on 2026-10-19T09:52:22Z.
Ampere on Windows:
mainfails, the fix passes — first Windows/30-series datapoint I can find in this thread.Environment: Windows 11 (build 22635.5305); GeForce RTX 3070 (GA104, driver 32.0.16.1088, subgroup size 32); Ryzen 5 5600X; WinLibs GCC 15.2.0 r7; Release, all execution tests built;
ANYPS5_REQUIRE_VULKAN=1; serialctest -R '^agc_driver_bda_device$' --output-on-failure; shader disk cache at its default (noANYPS5_NO_SHADER_CACHE).Before the fix —
main2eb4de8e1(with only the test-only change from #7824 on top,agcuntouched): fails 3/3, each run ending at the 5 s fence wait:Every attempt today failed — 10 runs across two
mainrevisions (4 on a6b8228b2bbuild, 6 on this one), 0 passes. Note this machine reports-4(VK_ERROR_DEVICE_LOST) where the opening report shows2(VK_TIMEOUT): the same hang, different terminal result — and the same-4that the newer Windows runs in #7571 show.With the fix — PR #7571 head
8e7d8874c8ee078aa0d932a70d0eb92cff853f33(now merged): passes 5/5.The other warm runs passed the same way, with no
Vulkan resultline at all (one measured 1.17 s). Same machine, same build options, nothing else changed between the two trees.One last gap I can see: the original RTX 4070
2(VK_TIMEOUT) variant hasn't been re-posted against the merged fix — worth a rerun on currentmainif anyone has that card.AI-assisted: yes.
Imported from boykopovar/AnyPS5. Originally posted by Rajkamalcode on 2026-10-19T10:05:10Z.
Follow-up after the merge, as proposed: pulled current
main(@36f60df9e, which includes #7571), rebuilt, andagc_driver_bda_devicepasses 3/3 on the same RTX 3070 machine as above — 1.72 s / 1.18 s / 1.51 s, noVulkan resultline in any run. The merged tree behaves the same as the PR head here.AI-assisted: yes.
Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-19T11:24:23Z.
@Neithennn @Rajkamalcode @savvaniss thanks for the runs. Together with the earlier ones, they settle what #5859 did and what #7571 fixed:
mainbefore #7571 and passes with it. The RTX 4070 and 4070 Ti reported earlier time out at the fence (2). On Windows, the RTX 4050 Laptop, 3070 and 4080 lose the device instead (-4).main36f60df9epasses 3 of 3, so the merge behaves like the PR head.maineven before #7571. They never failed.@screamm this looks fixed on
mainto me. Could you close it, unless it still fails for you?AI-assisted: yes (Claude Code)
Imported from boykopovar/AnyPS5. Originally posted by screamm on 2026-10-20T13:01:18Z.
Closing as fixed by #7571 (merged 2026-10-19,
64e2a810a). On NVIDIA,agc_driver_bda_devicefailed onmainbefore it and passes with it: RTX 4080 (Neithennn, 11 of 11 fail, then 12 of 12 pass), RTX 3070 (Rajkamalcode, 3 of 3 fail, then 5 of 5 pass and 3 of 3 on mergedmain36f60df9e), RTX 4070 on 616.92 and 617.42, RTX 4090 and RTX 4050 Laptop (#7571 thread), and RTX 4070 Ti on Linux.Rechecked on the reporting host (RTX 4070, driver 596.21, Windows 11 Pro 26220) on
main1d4164552: 3 of 3 pass, no fence timeout (21-84 s per run, with six builds and a GPU pass sharing the host at the time).Intel UHD 770, AMD RX 9070 XT and Radeon 860M on Windows never failed.
The RADV assertion blawesom reported has no post-fix run in this thread yet, so it is not covered by this close.
Written with Claude Code assistance.