AGC: agc_driver_pixel_lds loses the device on its wave32 bounded draw on an RTX 4090 (Windows) #7708

Open
opened 2026-10-19 02:00:39 +00:00 by MaxLikesCode · 2 comments
MaxLikesCode commented 2026-10-19 02:00:39 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by MaxLikesCode on 2026-10-19T02:00:39Z.


What

On Windows with an NVIDIA GeForce RTX 4090, agc_driver_pixel_lds loses the device during its third draw, pixel LDS wave32 bounded. The two wave64 draws before it pass.

pixel LDS wave64 bounded
pixel LDS wave64 unbounded
pixel LDS wave32 bounded
[device-fault] result 5:
[device-fault] instruction pointer fault at 0x20000ed50 (precision 0x10)
[device-fault] write invalid at 0x39672d000 (precision 0x1000)
AGC graphics: vkWaitForFences graphics: Vulkan result -4

The fault addresses are the same on every run. The Windows CI job builds only three execution tests (ANYPS5_AGC_EXECUTION_TESTS), so CI does not run this one.

Environment

NVIDIA GeForce RTX 4090, driver 617.42 (32.0.16.1742), Windows 11 Pro 26200, Intel i9-13900K, WinLibs GCC 15.2.0 r7, Release, BUILD_TESTING=ON, ANYPS5_AGC_EXECUTION_TESTS empty so every execution test is built.

How often, by commit

Ten runs of ctest -R "^agc_driver_pixel_lds$" at each commit:

Commit Pass Fail
60fb61870 (2026-10-13) 5 5
f265cd559 5 5
e1544df5f (merge of #4772) 0 10
ad502d717 (main) 0 10

With ANYPS5_NO_SHADER_CACHE=1, main failed 6 of 6 and f265cd559 passed 4 of 6, so the shader cache is not involved. #5271 reports this test passing on an RTX 4080 SUPER with driver 610.74 at 60fb61870, from one run.

#4772 changes the timing, not the shaders

A first-parent bisect between 60fb61870 and ad502d717 ends at the merge of #4772 ("index specialization tables by SPIR-V id"). But that change does not alter the shaders this test runs. I dumped the input and output of SpecializeSpirv from this test at f265cd559 and e1544df5f with a local patch. For all 12 shaders compiled before the fault, both the input and the specialized output are byte-identical between the two commits. #4772 makes specialization faster, so the fault looks timing-dependent. It was already intermittent before #4772, and from #4772 on it happens every time on this machine.

Not known

  • Which write faults, and whether the wave32 path or something shared with the earlier draws causes it.
  • Whether other NVIDIA cards or drivers show it.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5916511401 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/7708). Originally posted by [MaxLikesCode](https://github.com/MaxLikesCode) on 2026-10-19T02:00:39Z. --- ### What On Windows with an NVIDIA GeForce RTX 4090, `agc_driver_pixel_lds` loses the device during its third draw, `pixel LDS wave32 bounded`. The two wave64 draws before it pass. ``` pixel LDS wave64 bounded pixel LDS wave64 unbounded pixel LDS wave32 bounded [device-fault] result 5: [device-fault] instruction pointer fault at 0x20000ed50 (precision 0x10) [device-fault] write invalid at 0x39672d000 (precision 0x1000) AGC graphics: vkWaitForFences graphics: Vulkan result -4 ``` The fault addresses are the same on every run. The Windows CI job builds only three execution tests (`ANYPS5_AGC_EXECUTION_TESTS`), so CI does not run this one. ### Environment NVIDIA GeForce RTX 4090, driver 617.42 (32.0.16.1742), Windows 11 Pro 26200, Intel i9-13900K, WinLibs GCC 15.2.0 r7, Release, `BUILD_TESTING=ON`, `ANYPS5_AGC_EXECUTION_TESTS` empty so every execution test is built. ### How often, by commit Ten runs of `ctest -R "^agc_driver_pixel_lds$"` at each commit: | Commit | Pass | Fail | |---|---|---| | `60fb61870` (2026-10-13) | 5 | 5 | | `f265cd559` | 5 | 5 | | `e1544df5f` (merge of #4772) | 0 | 10 | | `ad502d717` (`main`) | 0 | 10 | With `ANYPS5_NO_SHADER_CACHE=1`, `main` failed 6 of 6 and `f265cd559` passed 4 of 6, so the shader cache is not involved. #5271 reports this test passing on an RTX 4080 SUPER with driver 610.74 at `60fb61870`, from one run. ### #4772 changes the timing, not the shaders A first-parent bisect between `60fb61870` and `ad502d717` ends at the merge of #4772 ("index specialization tables by SPIR-V id"). But that change does not alter the shaders this test runs. I dumped the input and output of `SpecializeSpirv` from this test at `f265cd559` and `e1544df5f` with a local patch. For all 12 shaders compiled before the fault, both the input and the specialized output are byte-identical between the two commits. #4772 makes specialization faster, so the fault looks timing-dependent. It was already intermittent before #4772, and from #4772 on it happens every time on this machine. ### Not known - Which write faults, and whether the wave32 path or something shared with the earlier draws causes it. - Whether other NVIDIA cards or drivers show it. AI-assisted: yes (Claude Code)
simonbbby commented 2026-10-19 04:25:30 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by simonbbby on 2026-10-19T04:25:30Z.


Linux counterexample on Ampere, including your exact failing-main commit: I could not reproduce the device loss on an RTX 3090 here.

Ubuntu 24.04, Ryzen 9 9950X, GCC 13.3, Release, BUILD_TESTING=ON, ANYPS5_AGC_EXECUTION_TESTS=PixelLds (the real execution target, not its unselected stub):

Exact source, no other PRs applied RTX 3090, NVIDIA 595.99.02 gfx1036 iGPU, RADV/Mesa 25.2.8
ad502d7170769d752e2e4c66939ae3a58ad50f55 from this report 10/10 pass 10/10 pass
Main snapshot 676d423968a1a8fcc79c6247020ce22090a8e0d4 10/10 pass 10/10 pass

Every run was a fresh process with ANYPS5_REQUIRE_VULKAN=1, ANYPS5_NO_SHADER_CACHE=1, and APS5_NO_PIPELINE_JOURNAL=1. ICDs were restricted to NVIDIA or RADV respectively; loader logs confirm the selected physical-device model and driver. There are two identical RTX 3090s in this machine; these runs use the fixture's selected device, not a UUID-pinned comparison between the two.

All runs printed the four stages (wave64 bounded, wave64 unbounded, wave32 bounded, wave32 unbounded) and completed 12 draws, 24576 pixels, 73728 LDS results. The fixture's per-pixel/bank readback and stride-guard checks ran, so these are execution passes rather than skips. PixelLds.cpp is identical between the two tested commits. Both builds used clean source checkouts; the tested binaries and runtime libraries were frozen and hashed separately.

This rules out a later-main fix as the reason for my pass, since the reported commit passes too. It does not establish that the problem is Windows-only or identify a cause: OS, NVIDIA driver version and Ampere versus Ada remain confounded. No Windows run, validation-layer run, shader-identity comparison around #4772, or title test was performed.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6259630184 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/7708#issuecomment-6259630184). Originally posted by [simonbbby](https://github.com/simonbbby) on 2026-10-19T04:25:30Z. --- Linux counterexample on Ampere, including your exact failing-main commit: I could not reproduce the device loss on an RTX 3090 here. Ubuntu 24.04, Ryzen 9 9950X, GCC 13.3, Release, `BUILD_TESTING=ON`, `ANYPS5_AGC_EXECUTION_TESTS=PixelLds` (the real execution target, not its unselected stub): | Exact source, no other PRs applied | RTX 3090, NVIDIA 595.99.02 | gfx1036 iGPU, RADV/Mesa 25.2.8 | |---|---:|---:| | `ad502d7170769d752e2e4c66939ae3a58ad50f55` from this report | 10/10 pass | 10/10 pass | | Main snapshot `676d423968a1a8fcc79c6247020ce22090a8e0d4` | 10/10 pass | 10/10 pass | Every run was a fresh process with `ANYPS5_REQUIRE_VULKAN=1`, `ANYPS5_NO_SHADER_CACHE=1`, and `APS5_NO_PIPELINE_JOURNAL=1`. ICDs were restricted to NVIDIA or RADV respectively; loader logs confirm the selected physical-device model and driver. There are two identical RTX 3090s in this machine; these runs use the fixture's selected device, not a UUID-pinned comparison between the two. All runs printed the four stages (`wave64 bounded`, `wave64 unbounded`, `wave32 bounded`, `wave32 unbounded`) and completed `12 draws, 24576 pixels, 73728 LDS results`. The fixture's per-pixel/bank readback and stride-guard checks ran, so these are execution passes rather than skips. `PixelLds.cpp` is identical between the two tested commits. Both builds used clean source checkouts; the tested binaries and runtime libraries were frozen and hashed separately. This rules out a later-main fix as the reason for my pass, since the reported commit passes too. It does **not** establish that the problem is Windows-only or identify a cause: OS, NVIDIA driver version and Ampere versus Ada remain confounded. No Windows run, validation-layer run, shader-identity comparison around #4772, or title test was performed.
Neithennn commented 2026-10-19 10:35:25 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by Neithennn on 2026-10-19T10:35:25Z.


Windows counterexample on Ada with the same driver and OS build: agc_driver_pixel_lds passes on an RTX 4080.

NVIDIA GeForce RTX 4080 (10de:2704, subgroups of 32), driver 617.42, Windows 11 Pro 26200, AMD Ryzen 7 5800X, WinLibs GCC 15.2.0 r7, Ninja, Release, BUILD_TESTING=ON, every execution test built. Unchanged main 36f60df9e.

  • ctest -R '^agc_driver_pixel_lds$' with ANYPS5_NO_SHADER_CACHE=1 and ANYPS5_REQUIRE_VULKAN=1: 20/20 pass, 0.55 to 0.60 s. Every run prints all four draws, including pixel LDS wave32 bounded, and pixel LDS tests passed: 12 draws, 24576 pixels, 73728 LDS results. No [device-fault] line.
  • It also passed in the full ctest -j 8 on the same tree (1631/1631).

So with driver 617.42 on Windows 11 26200, the device loss does not reproduce on an RTX 4080. Together with the RTX 3090 Linux result above, that points at something specific to the 4090 (or its host) rather than at the driver release or the OS. I have not run any commit other than 36f60df9e.

AI-assisted: yes (runs done with Claude Code).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6265236630 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/7708#issuecomment-6265236630). Originally posted by [Neithennn](https://github.com/Neithennn) on 2026-10-19T10:35:25Z. --- Windows counterexample on Ada with the same driver and OS build: `agc_driver_pixel_lds` passes on an RTX 4080. NVIDIA GeForce RTX 4080 (`10de:2704`, subgroups of 32), driver 617.42, Windows 11 Pro 26200, AMD Ryzen 7 5800X, WinLibs GCC 15.2.0 r7, Ninja, Release, `BUILD_TESTING=ON`, every execution test built. Unchanged `main` `36f60df9e`. - `ctest -R '^agc_driver_pixel_lds$'` with `ANYPS5_NO_SHADER_CACHE=1` and `ANYPS5_REQUIRE_VULKAN=1`: 20/20 pass, 0.55 to 0.60 s. Every run prints all four draws, including `pixel LDS wave32 bounded`, and `pixel LDS tests passed: 12 draws, 24576 pixels, 73728 LDS results`. No `[device-fault]` line. - It also passed in the full `ctest -j 8` on the same tree (1631/1631). So with driver 617.42 on Windows 11 26200, the device loss does not reproduce on an RTX 4080. Together with the RTX 3090 Linux result above, that points at something specific to the 4090 (or its host) rather than at the driver release or the OS. I have not run any commit other than `36f60df9e`. AI-assisted: yes (runs done with Claude Code).
Sign in to join this conversation.
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#7708
No description provided.