Skip to content

fix(shader): leave the BDA lookup functions through one return - #7571

Merged
oneandonlydean merged 2 commits into
boykopovar:mainfrom
milescoviello:fix/bda-lookup-single-exit
Oct 19, 2026
Merged

oneandonlydean merged 2 commits into
boykopovar:mainfrom
milescoviello:fix/bda-lookup-single-exit

Conversation

@milescoviello

@milescoviello milescoviello commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

What

agc_driver_bda_device hangs the GPU on NVIDIA since #5859. On main a62c724 it fails 3 of 3 with vkWaitForFences graphics: Vulkan result 2 (the 5 s fence timeout), and the kernel logs NVRM: Xid 109 ... CTX SWITCH TIMEOUT for it. 385ed71, just before #5859, passes. main passes on an Intel Arrow Lake iGPU (Mesa 26.1 ANV). The dispatch that hangs is in #5859's new RunBdaAnchorTests, but in the plain program, which reads through get_bda_pointer and probe_bda_pointer, lookup code #5859 didn't change.

I reduced it with a temporary hook in the test (not part of this PR). It takes a program that doesn't stop invocations at a fault, as BdaInvocationsMayStop decides for programs with barriers, reading one dword per lane in 64 lanes. That program hangs when invocations in one subgroup leave the lookup through three different returns:

  • one below the first range (index == 0, unmapped);
  • one past a range's end (the bounds check, unmapped);
  • the others found their range.

Any two of the three don't hang, and neither do 8-bit reads or the program that stops invocations. It doesn't need the address overflows #5859's test inputs produce either. With a table whose first range is [0x100000, 0x100010) and lanes at 0xfff01, 0x100010 and 0x100000, it hangs the same way. Without DontInline on the lookups it doesn't hang. Without it on the dword read functions or on the fault recorder, it still hangs.

The change. The lookups returned from each failed check (ReturnBdaZeroIf, ReturnBdaFailureIf). Now their body sits in a single-pass loop. Each failed check records its fault (in get_bda_pointer) and branches to the loop's merge block. A phi there takes the result, and the function's one OpReturnValue returns it. The early checks are all outside the binary-search loop, so each exit is a break of the new loop. The lookups stay DontInline: 5693c77 measured minutes of NVIDIA compile time per shader when they are inlined. ReturnBdaFailureIf no longer has a caller. I left it in SpirvBdaFault.cpp because #6416, #6751 and #7392 add code right after it, so removing it can wait for a follow-up.

Test. RunBdaAnchorTests now ends with that subgroup in the 64-lane program that doesn't stop invocations, over the table above. The program reads one dword at 0xfff00 plus one lane's offset, with lanes below the first range, past its end, at its last dword and at its start. The unmapped lanes must read zero with the unmapped fault recorded, the others their dword, and every read kind must match the anchored program.

Tested

Ubuntu 24.04 (Linux 6.8), GCC 13.3, NVIDIA RTX 4070 Ti (595.99.02); Intel Arrow Lake iGPU (Mesa 26.1 ANV).

  • agc_driver_bda_device: main a62c724 fails 3 of 3 on NVIDIA. With this PR (head 8e7d887, including the new case) it passes 3 of 3 on NVIDIA and 3 of 3 on the Intel iGPU.
  • Register pressure on the Intel iGPU (Gen12.7, Mesa 26.1.6 ANV), since fix(shader): record a BDA lookup's fault from one call site #5814 was closed over spills on Gen9: with INTEL_DEBUG=cs and Mesa's shader cache off, agc_driver_bda_device's 107 compiled variants are identical on main fd58ca3 and with this PR. The statistics match (211,249 instructions, 0:0 spills:fills in every variant), and so does the full assembly (0 of 1,041,924 lines differ). Run times are unchanged: 1614-1660 ms against 1623-1646 ms with a warm Mesa cache, 20.8-20.9 s against 21.1-21.4 s with it off. Gen9 (HD 520) isn't covered (details).
  • @Amoenus ran head 8e7d887 on Windows with an RTX 5080, driver 610.62 (comment): it passes 3 of 3. main's lookup with the new case also passes 3 of 3 there, so that driver doesn't hang. @simonbbby saw the same with 595.99.02 on an RTX 3090 (Ampere) (comment): main's lookup with the new case lost the device, while this head passes 3 of 3, and RADV (gfx1036, Mesa 25.2.8) passes both. @Dextroid17 saw it with Linux 615.78.08 on an RTX 3080 Ti (Ampere) (comment): main fails 3 of 3, each with an Xid 109, and this head passes 3 of 3. @jotitadev ran it on an Apple M2 Max through MoltenVK 1.4.2 and through MoltenVK main with SPIRV-Cross Ratchet & Clank: Rift Apart: SIGSEGV since #861, an address-less 64 GiB reservation now takes the addresses the title hints next #2704 (comment). This head and main's lookup with the new case both pass 3 of 3, and the ^agc|^shader suite has the same 46 failures with and without this PR, none of them a BDA test. So the hang is seen with Linux drivers 595.99.02 (Ada, Ampere) and 615.78.08 (Ampere), and not with 610.62 on Windows on a Blackwell card, which differs in OS, GPU generation and tree.
  • With the fix and before the test commit, ctest -R "^agc_|^shader_ir": 711/711 pass on NVIDIA. With the hook, every reduced case completes with the fix: the overflow and no-overflow repros, 1 and 4 dwords, plain and anchored.
  • agc_shader_replay --spv (Release, ANYPS5_ENABLE_SPIRV_TOOLS off, ANYPS5_NO_SHADER_CACHE=1) over the 466 shader requests I had dumped, from PPSA30839 (MXGP 26), PPSA31162 (Super Meat Boy 3D) and one other app:
    • 457 of the 462 modules are byte-identical to main's.
    • The 5 that use the BDA lookups (mesh shaders) grow by 99 to 103 words each, 0.1 to 0.4 %. spirv-val --target-env vulkan1.2 reports the same CullPrimitiveEXT error for them before and after this PR.
    • The test's BDA module validates cleanly.
  • Compile time: not measured. The change is inside the lookup functions, which a module defines once, not at their call sites, and they stay DontInline.

Title level: no claim. I don't know a title that hits this. It needs a program with a barrier in which one subgroup reads mapped, below-table and past-end guest addresses at once.

tools/check_conventions.py --base upstream/main passes. tools/pr_overlap.py lists two pull requests that conflict with main, so it couldn't compare them. #6947 also edits DefineBdaLookup, and #6373 edits tests/BdaExecution.cpp. I'll rebase onto whichever lands first.

  • @m335671 tested Windows on Ada with an RTX 4070 on NVIDIA 616.92, and again on 617.42. main 84c1a4d fails 3 of 3 (-4). With this PR it passes 3 of 3, and with main's SpirvBdaLookup.cpp it fails 3 of 3 again. So it isn't specific to the 596.21 driver: Ada fails on newer drivers too, while the RTX 5080 (Blackwell) passed.
  • @MaxLikesCode tested on an RTX 4090 with NVIDIA 617.42 on Windows 11. main ad502d7 fails 5 of 5 (Vulkan result 2, then -4), and with this PR it passes 3 of 3. Two of the main runs came after the PR runs, so it doesn't depend on cache state.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: NVIDIA GeForce RTX 4070 Ti, driver 595.99.02, Ubuntu 24.04 (Linux 6.8); Intel Arrow Lake iGPU, Mesa 26.1 ANV; NVIDIA RTX 5080, 610.62, Windows (by @Amoenus); NVIDIA RTX 3090, 595.99.02, and AMD gfx1036, RADV Mesa 25.2.8 (by @simonbbby); NVIDIA RTX 3080 Ti, 615.78.08 (by @Dextroid17); Apple M2 Max, MoltenVK 1.4.2 (by @jotitadev); NVIDIA RTX 4070, 616.92 and 617.42, Windows 11 (by @m335671); NVIDIA RTX 4090, 617.42, Windows 11 (by @MaxLikesCode)
  • AI-assisted: yes (Claude Code)

🤖 Generated with Claude Code

milescoviello and others added 2 commits October 18, 2026 14:52
The lookups returned from each failed check. On NVIDIA 595.99 a subgroup
whose invocations left `get_bda_pointer` or `probe_bda_pointer` through three
different returns (one past a range's end, one below the first range and one
that found its range) never finished (Xid 109), which is how boykopovar#5859's
anchor tests hang `agc_driver_bda_device`. Each check now branches to the end
of a single-pass loop, where a phi takes the result, and the function
returns once. The lookups stay DontInline.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…rent checks

A 64-lane program that doesn't stop invocations reads one dword per lane at
0xfff00 + low over a table whose first range is [0x100000, 0x100010): one
lane below the first range, one past its end, one at its last dword and the
others at its start. The unmapped lanes must read zero with the unmapped
fault recorded, the others their dword, and every read kind must match the
anchored program.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Oct 18, 2026 •

Copy link
Copy Markdown

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.

Pull request Shared files not compared
PR 6947 core/shader/recompiler/SpirvBackend/src/SpirvBdaLookup.cpp
PR 7642 core/shader/recompiler/SpirvBackend/src/SpirvBdaLookup.cpp

@Amoenus

Amoenus commented Oct 18, 2026

Copy link
Copy Markdown
Contributor

@milescoviello Windows/another NVIDIA-driver datapoint for your exact head 8e7d8874c8:

  • Windows 11 Enterprise 26200, RTX 5080 (10de:2c02), driver 610.62 / 32.0.16.1062, WinLibs GCC 15.2.0 r7 Release; ANYPS5_REQUIRE_VULKAN=1, ANYPS5_NO_SHADER_CACHE=1, Khronos validation layer 1.4.363.0 actually loaded.
  • I merged your unchanged head into our preserved main-e5f bring-up integration: tested composition dafbd21b78. Matching full relinker/library build passes; agc_driver_bda_device passes 3/3, each within30s, with actual NVIDIA device identity verified and zero logged VUIDs/validation errors.
  • Importantly, the test-only control 726bffc791 also passes 3/3 on this Windows/610.62 setup. That control adds your exact14-line regression, with original authorship retained, to the same integration using the original lookup. Only SpirvBdaLookup.cpp differs between the two tested trees. Thus I do not reproduce the Linux/595.99 hang here; these runs show no regression with your fix on this host, not an additional fail-before/pass-after confirmation.

These are composition-scoped results, not an unchanged-main suite or a title fix. The private BDA fixture selected NVIDIA; no AMD coverage is attributed to an environment-variable request.

AI-assisted independent validation: yes (Codex).

@github-actions github-actions Bot added shader core/shader agc libSceAgc* labels Oct 18, 2026
@milescoviello

Copy link
Copy Markdown
Contributor Author

Thanks @Amoenus, that narrows it. With your RTX 5080 on driver 610.62, the original lookup runs the new case without hanging, so it isn't every NVIDIA driver. Here it's an RTX 4070 Ti (Ada) on Linux with 595.99.02, where main hangs 3 of 3 (Xid 109). I can't try a 610 driver on this Linux host, so I can't tell whether the driver version or the GPU generation matters. I've added your result to the description. The change works around the drivers that hang, like 595.99 here, and in the replay corpus it changes only the lookup bodies of the 5 modules that use them.

AI-assisted: yes (Claude Code)

@simonbbby

Copy link
Copy Markdown
Contributor

Independent Linux Ampere and RADV comparison for exact head 8e7d8874c8ee078aa0d932a70d0eb92cff853f33:

Ubuntu 24.04, kernel 7.0.0-38-generic, GCC 13.3, Release. ANYPS5_REQUIRE_VULKAN=1, application shader cache and pipeline journal disabled; ICD selected explicitly, with VK_LOADER_DEBUG=driver recording the device used.

Device Original SpirvBdaLookup.cpp from main a62c724c3873b1dee9c6ee5af7a420e924bd9d25, PR fixture retained Exact PR restored and rebuilt
RTX 3090 (Ampere), NVIDIA 595.99.02 First attempt exits 1: AGC graphics: vkWaitForFences graphics: Vulkan result -4 (VK_ERROR_DEVICE_LOST) 3/3 fresh processes pass
RDNA 2 gfx1036, RADV Mesa 25.2.8 Passes 3/3 fresh processes pass

The exact fixed head also passed once per device before the original-lookup control. Only SpirvBdaLookup.cpp changed for that control; the expanded BdaExecution.cpp fixture hash stayed identical throughout. After restoration the worktree is clean. Each positive process reaches BDA store boundary tests passed and Vulkan BDA allocation and execution tests passed, with the loader confirming RTX 3090 or RADV respectively. The host has two RTX 3090s; I used the fixture's existing first-ranked physical-device selection within the NVIDIA ICD, not a pinned GPU UUID.

This extends the affected NVIDIA hardware beyond Ada on the reported driver version. The observed original-lookup failure here is device loss (-4), not the reported timeout (2); I did not reproduce the exact Xid 109 signature (the accessible kernel journal query returned no matching entries). I ran the original NVIDIA control once, then restored the fix and observed the three passes above; this is not a failure-frequency measurement or proof of the driver compiler's internal cause.

No title or full-suite result, and no Khronos validation-layer coverage. I did not count lavapipe as read/anchor coverage because this fixture skips RunBdaExecutionTests on a CPU Vulkan device.

@milescoviello

milescoviello commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor Author

Thanks @simonbbby. So it isn't specific to Ada. I added your result to the description.

AI-assisted: yes (Claude Code)

@Dextroid17

Copy link
Copy Markdown
Contributor

@milescoviello on "it follows the 595.99 driver rather than the GPU generation": on this Linux Ampere host the hang is still there on 615.78.08. That's a higher version than the 610.62 that passed for @Amoenus on Windows, so the version number alone doesn't explain his pass. His run also differs in GPU generation (RTX 5080, Blackwell), OS and tree (his integration), and this run doesn't separate those.

CachyOS, kernel 7.2.9-2-cachyos, GCC 16.2.1, Release build. RTX 3080 Ti (Ampere), NVIDIA driver 615.78.08. Only the NVIDIA ICD was in VK_ICD_FILENAMES and VK_DRIVER_FILES, with ANYPS5_REQUIRE_VULKAN=1 and a clean environment. Shader cache was not disabled. ctest -R '^agc_driver_bda_device$', 3 runs per tree:

Tree Result
main a62c724 (where this PR branched) fails 3 of 3: vkWaitForFences graphics: Vulkan result -4 in 2 runs, Vulkan result 2 in 1
your head 8e7d8874c8 with SpirvBdaLookup.cpp from a62c724 fails 3 of 3 (-4 in 2, 2 in 1)
your head 8e7d8874c8 passes 3 of 3

Each failing run logged one kernel line, NVRM: Xid ... 109, ... name=agc_driver_bda_, ... errorString CTX SWITCH TIMEOUT, whether the test reported -4 or 2. The passing runs logged none. In one more direct run of the test binary on your head (it passed), /proc/<pid>/maps showed NVIDIA's driver libraries loaded and no lavapipe.

Compared with @simonbbby's RTX 3090 run, this adds a newer driver, a plain main arm, 3 of 3 failures in each failing arm, and an Xid 109 line for every failure. The passes on your head match his.

Not checked: any title, validation layers, other driver versions on this card. lavapipe isn't counted, since the fixture skips BDA execution on CPU devices.

AI-assisted: yes

@milescoviello

Copy link
Copy Markdown
Contributor Author

Thanks @Dextroid17, that corrects my comment above: a newer driver on Linux hangs too, so it doesn't follow 595.99. I've changed that comment and the description. The pass on 610.62 now differs in OS (Windows), GPU generation (Blackwell) and tree, as you say.

AI-assisted: yes (Claude Code)

@jotitadev

Copy link
Copy Markdown
Contributor

Apple GPU / MoltenVK datapoint for head 8e7d887. Here the SPIR-V goes through SPIRV-Cross to MSL and the Metal compiler, so this is a different lookup codegen from the NVIDIA, Intel and AMD runs above.

Machine: Apple M2 Max, macOS 27.2, x86-64 build under Rosetta. Method: main 81cb863 + @mugurc's ci/macos-series-2 (fa6d8ae, which has the MoltenVK device bring-up) + the open fixes it uses as stand-ins (#6667, #6668, #6853, #6836, #6620, #6969, #7524, #6928), then this PR merged on top (clean). Drivers: MoltenVK 1.4.2 (Vulkan SDK 1.4.363), and MoltenVK main with SPIRV-Cross #2704. ANYPS5_REQUIRE_VULKAN=1, ANYPS5_NO_SHADER_CACHE=1.

agc_driver_bda_device MoltenVK 1.4.2 MoltenVK main + #2704
this PR 3/3 pass 3/3 pass
only the new BdaExecution.cpp case, lookups unchanged 3/3 pass 3/3 pass
  • So Apple doesn't hang on the original three-return lookup either, like the Intel ANV and RTX 5080 / 610.62 runs. The single-return version also compiles and returns the right values through MSL. The new divergent case runs here: RunBdaAnchorTests is called with no device condition.
  • Full ^agc|^shader suite with the PR (MoltenVK 1.4.2, -j1 --timeout 30, flip/display/lds_atomics64 excluded): the same 46 failures out of 700 as the tree without the PR. None of them is a BDA test. Most are device gaps (-0 and denormals, no geometry shaders, no cull distance, descriptor limits) or macOS host gaps. One extra run had agc_driver_prepared_shaders_lazy time out once. It passed 5 of 5 reruns at 0.13 s and doesn't go through these lookups.

GPUs tested: Apple M2 Max (MoltenVK 1.4.2; MoltenVK main + SPIRV-Cross #2704)

Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.

@milescoviello

Copy link
Copy Markdown
Contributor Author

Thanks @jotitadev, that's a useful datapoint because it goes through a different compiler. I added it to the description.

AI-assisted: yes (Claude Code)

@milescoviello

Copy link
Copy Markdown
Contributor Author

Register pressure on Intel, since #5814 was closed over spills on Gen9 and this PR also restructures the BDA lookup. Intel Arrow Lake iGPU (Gen12.7, Core Ultra 7 265K), Mesa 26.1.6 ANV, Debian 13, kernel 6.12. agc_driver_bda_device_tests on main fd58ca3 and on that main with this PR merged (6b6871cd92). The two builds' libSceAgcDriver.prx and test binaries differ.

Compiled code. INTEL_DEBUG=cs with MESA_SHADER_CACHE_DISABLE=true. Without the second variable my first pass printed nothing, because every shader came from Mesa's disk cache.

  • 107 compiled variants in both builds, matched in compile order, with identical statistics: 211,249 instructions, 233,425,010 estimated cycles, 21,619 sends, 128 GRF registers, and 0:0 spills:fills in every variant.
  • The full assembly listing is identical too. After dropping lines with hashes or pointers, the two 1,041,924-line outputs differ in 0 lines.

So on this GPU, ANV reduces both forms of the lookup to the same machine code.

Run time of the whole test binary, 3 runs each:

main with this PR
Mesa cache warm 1623, 1624, 1646 ms 1614, 1626, 1660 ms
Mesa cache off (every pipeline compiled) 21.07, 21.28, 21.44 s 20.77, 20.90, 20.91 s

Limits: this is Gen12.7, not the Gen9 HD 520 where #5814 regressed, and the backend differs between them, so it doesn't replace that run. I also haven't checked which of the 107 variants contain the lookup. RunBdaAnchorTests, the case that hangs NVIDIA on main, is among the shaders compiled here.

AI-assisted: yes (Claude Code)

@m335671

m335671 commented Oct 18, 2026

Copy link
Copy Markdown
Contributor

Windows on Ada with a newer driver, the combination the thread was missing: RTX 4070 (10de:2786), NVIDIA 616.92, Windows 11 Pro 26200, Ryzen 9 7900, WinLibs GCC 15.2.0 r7, Release, BUILD_TESTING=ON. ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1, ctest -R '^agc_driver_bda_device$' -j1, one fresh process per run. All three trees share the same base: main 84c1a4d9a. This head merges into it cleanly.

Tree Result
main 84c1a4d9a fails 3 of 3: vkWaitForFences graphics: Vulkan result -4
main + this PR (8e7d8874c8) passes 3 of 3
main + this PR with SpirvBdaLookup.cpp from main (control) fails 3 of 3: Vulkan result -4

So on Windows the failure isn't specific to the 596.21 driver from the report: an Ada card on 616.92, newer than the 610.62 that passed on the RTX 5080, fails on main and passes with this change. With the RTX 5080 pass, that points at the GPU generation rather than the driver version or the OS. The reporter's card (RTX 4070) behaves the same on this newer driver. In an earlier full-suite run (parallel CTest, other software injecting into processes), the same main test hit the 300 s timeout instead of -4. I'm not counting that run.

AI-assisted: yes (Claude Code). The builds, the runs and this comment were done and written by Claude Code on my machine.

@m335671

m335671 commented Oct 19, 2026

Copy link
Copy Markdown
Contributor

Same on NVIDIA 617.42 (updated driver, same machine and trees): main fails 3 of 3 (-4), main + this PR passes 3 of 3.

AI-assisted: yes (Claude Code).

@milescoviello

Copy link
Copy Markdown
Contributor Author

Thanks @m335671, that's the run the thread needed. An Ada card failing on 616.92 and 617.42, with the SpirvBdaLookup.cpp control failing again, points at the GPU generation rather than the 595.99 driver. I added it to the description.

AI-assisted: yes (Claude Code)

@MaxLikesCode

Copy link
Copy Markdown
Contributor

Windows data from a GPU where main fails: NVIDIA GeForce RTX 4090, driver 617.42, Windows 11 Pro 26200, WinLibs GCC 15.2.0 r7, Release, BUILD_TESTING=ON with the Windows CI configure flags.

agc_driver_bda_device Result
main ad502d7 5 of 5 fail: vkWaitForFences graphics: Vulkan result 2 on the first run, -4 (device lost) on the others
this PR (8e7d887) merged into ad502d7 3 of 3 pass: 4.9 s on the first run, then 0.8 s

Two of the main runs came after the PR runs, so the difference does not depend on shader or pipeline cache state. On this RTX 4090 the change fixes the failure that the RTX 5080 control did not show.

AI-assisted: yes (Claude Code)

@milescoviello

Copy link
Copy Markdown
Contributor Author

Thanks @MaxLikesCode. A second Ada card (RTX 4090, 617.42) failing on main and passing with this change, with main runs after the PR runs, settles the cache question. Added to the description.

AI-assisted: yes (Claude Code)

@elliot1377

Copy link
Copy Markdown
Contributor

Windows NVIDIA run where main fails, which the RTX 5080 control couldn't show since main passes there.

Windows 11 (10.0.26200), NVIDIA GeForce RTX 4050 Laptop GPU, driver 617.42, WinLibs GCC 15.2.0 r7, Release, BUILD_TESTING=ON, ctest -R '^agc_driver_bda_device$' one run at a time.

agc_driver_bda_device result
main f71a31193 fails 3 of 3: vkWaitForFences graphics: Vulkan result -4 (VK_ERROR_DEVICE_LOST, not the VK_TIMEOUT seen on the 4070/4070 Ti), after about 2.5 s
this PR's head 8e7d8874c merged onto f71a31193 (clean) passes 3 of 3 (8.3 s, then 1.2 s and 1.3 s)

Before this, I bisected the failure on this machine to the #5859 merge: 385ed71f2 passes 2 of 2, and 644e38480 fails 2 of 2 with the same device loss. So on this GPU and driver #5859 loses the device rather than hanging, and this PR fixes that here too.

Not checked: Linux, AMD, the Intel iGPU (disabled on this laptop right now), or a title.

AI-assisted

@oneandonlydean
oneandonlydean merged commit 64e2a81 into boykopovar:main Oct 19, 2026
20 checks passed
@Rajkamalcode

Copy link
Copy Markdown
Contributor

For the record, the matrix cell I can't find above: Windows + Ampere. GeForce RTX 3070 (GA104, driver 32.0.16.1088), Windows 11 (22635.5305), Ryzen 5 5600X, WinLibs GCC 15.2.0 r7, Release.

  • main 2eb4de8e1: fails 3/3 — AGC graphics: vkWaitForFences graphics: Vulkan result -4 (on main, no pass today in 10 attempts across two revisions)
  • this head 8e7d8874c8: passes 5/5 (cold 8.18 s, warm 1.17 s)

So the generation effect holds on Windows too: Ampere fails on main, and the single-return lookup fixes it, same as the Ada Windows results above.

Details in #7584: #7584 (comment)

AI-assisted: yes.

@milescoviello

Copy link
Copy Markdown
Contributor Author

@elliot1377 @Rajkamalcode thank you both. The RTX 4050 Laptop and RTX 3070 runs fill the two cells the thread was missing: an Ada laptop part that loses the device rather than timing out, and Ampere on Windows. Both fail on main and pass with this change. Your bisect to the #5859 merge on the 4050 also agrees with where this issue says the failure started.

AI-assisted: yes (Claude Code)

Celegans12 added a commit to Celegans12/AnyPS5-Ghost-of-Yotei that referenced this pull request Oct 21, 2026
…ee, async lane off)

The tree is local/merge19 020d736: combo19, batched staging, the overlap staging fixes and the
adopt20 fixes, merged with upstream main b509767 (+ boykopovar#7571), with the committer fixes and the
async-lane diagnostics. Same-session pair with the lane off on both: 4.99 vs 4.19 presents per 10 s,
trace p50 2,070 vs 2,372 ms. T1 t1-yb-m19 MATCH. SourceVersion 3b35146912b7970c.

AI-assisted: yes
Pipodi pushed a commit to Pipodi/AnyPS5 that referenced this pull request Nov 14, 2026
…ee, async lane off)

The tree is local/merge19 020d736: combo19, batched staging, the overlap staging fixes and the
adopt20 fixes, merged with upstream main b509767 (+ boykopovar#7571), with the committer fixes and the
async-lane diagnostics. Same-session pair with the lane off on both: 4.99 vs 4.19 presents per 10 s,
trace p50 2,070 vs 2,372 ms. T1 t1-yb-m19 MATCH. SourceVersion 3b35146912b7970c.

AI-assisted: yes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agc libSceAgc* shader core/shader

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants