fix(shader): split BDA span read paths #4224

Closed
MarcZX10 wants to merge 1 commit from upstream-pr/4224 into main
MarcZX10 commented 2026-10-12 01:45:24 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-12T01:45:24Z.


What

read_bda_span used one selection for the in-place dword loads and the per-dword byte fallback. NVIDIA drivers hang when lanes split between these arms within the non-inlined span function. Split the arms into two selections while preserving each lane's path, loads, lookups, fault recording, and invocation stops. This carries the tested fix from #3291, rebased onto current main.

Tested

  • python3 tools/check_conventions.py --base upstream/main --head HEAD — passed.
  • git diff --check upstream/main...HEAD — passed.
  • The original change was validated on RTX 3060 and RTX 4060 Laptop with driver 591.86; both reports confirm the listed NVIDIA tests pass with the fix. Independent RTX 4070 and RTX 5080 reports are also in #3291.
  • Local CMake test build could not configure: this worktree's SDL2 submodule has no CMakeLists.txt, and Linux audio development libraries are unavailable.

Checklist

  • Rebased onto current main and checked against the NVIDIA hang reports in #3291.
  • One topic; no comments in code or extra investigation files.
  • Depends on: none
  • AI-assisted: yes (carried fix authored by fdfawef324; commit author preserved)
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4823961052 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4224). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-12T01:45:24Z. --- ### What `read_bda_span` used one selection for the in-place dword loads and the per-dword byte fallback. NVIDIA drivers hang when lanes split between these arms within the non-inlined span function. Split the arms into two selections while preserving each lane's path, loads, lookups, fault recording, and invocation stops. This carries the tested fix from #3291, rebased onto current `main`. ### Tested - `python3 tools/check_conventions.py --base upstream/main --head HEAD` — passed. - `git diff --check upstream/main...HEAD` — passed. - The original change was validated on RTX 3060 and RTX 4060 Laptop with driver 591.86; both reports confirm the listed NVIDIA tests pass with the fix. Independent RTX 4070 and RTX 5080 reports are also in #3291. - Local CMake test build could not configure: this worktree's SDL2 submodule has no `CMakeLists.txt`, and Linux audio development libraries are unavailable. ### Checklist - [x] Rebased onto current `main` and checked against the NVIDIA hang reports in #3291. - [x] One topic; no comments in code or extra investigation files. - [x] Depends on: none - [x] AI-assisted: yes (carried fix authored by fdfawef324; commit author preserved)
MarcZX10 commented 2026-10-12 01:45:33 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-12T01:45:33Z.


I carried the single-file fix from #3291 and rebased it onto current main as #4224. Its original PR #3289 was auto-closed during the intake pause; the issue now includes independent NVIDIA validation, including RTX 4060 Laptop / driver 591.86. The isolated Linux build here cannot configure because SDL2 is unpopulated and audio development headers are missing, so I reported that limitation in #4224. The rebased patch passes conventions and diff checks.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6116284156 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4224#issuecomment-6116284156). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-12T01:45:33Z. --- I carried the single-file fix from #3291 and rebased it onto current main as #4224. Its original PR #3289 was auto-closed during the intake pause; the issue now includes independent NVIDIA validation, including RTX 4060 Laptop / driver 591.86. The isolated Linux build here cannot configure because SDL2 is unpopulated and audio development headers are missing, so I reported that limitation in #4224. The rebased patch passes conventions and diff checks.
github-actions[bot] commented 2026-10-12 01:55:05 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-12T01:55:05Z.


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.

Pull request Conflicting files (lines on main) Same exports Same new files
#3655 core/shader/recompiler/SpirvBackend/src/SpirvBdaRead.cpp L182-199, L201-203
#3656 core/shader/recompiler/SpirvBackend/src/SpirvBdaRead.cpp L182-199, L201-203
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6116365501 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4224#issuecomment-6116365501). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-12T01:55:05Z. --- <!-- pr-overlap --> 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**. | Pull request | Conflicting files (lines on `main`) | Same exports | Same new files | |---|---|---|---| | #3655 | `core/shader/recompiler/SpirvBackend/src/SpirvBdaRead.cpp` [L182-199](https://github.com/boykopovar/AnyPS5/blob/ceb342b9473aa9167695f348af924012ae38ea0b/core/shader/recompiler/SpirvBackend/src/SpirvBdaRead.cpp#L182-L199), [L201-203](https://github.com/boykopovar/AnyPS5/blob/ceb342b9473aa9167695f348af924012ae38ea0b/core/shader/recompiler/SpirvBackend/src/SpirvBdaRead.cpp#L201-L203) | | | | #3656 | `core/shader/recompiler/SpirvBackend/src/SpirvBdaRead.cpp` [L182-199](https://github.com/boykopovar/AnyPS5/blob/ceb342b9473aa9167695f348af924012ae38ea0b/core/shader/recompiler/SpirvBackend/src/SpirvBdaRead.cpp#L182-L199), [L201-203](https://github.com/boykopovar/AnyPS5/blob/ceb342b9473aa9167695f348af924012ae38ea0b/core/shader/recompiler/SpirvBackend/src/SpirvBdaRead.cpp#L201-L203) | | |
MarcZX10 commented 2026-10-12 02:12:14 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-12T02:12:14Z.


Closing this because the active contribution rules prohibit carrying code from intake-paused PRs; this change was carried from #3289. The issue evidence remains available for an independently authored fix if appropriate.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6116522235 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4224#issuecomment-6116522235). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-12T02:12:14Z. --- Closing this because the active contribution rules prohibit carrying code from intake-paused PRs; this change was carried from #3289. The issue evidence remains available for an independently authored fix if appropriate.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!4224
No description provided.