AGC: agc_driver_pixel_lds loses the device on its wave32 bounded draw on an RTX 4090 (Windows) #7708
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 MaxLikesCode on 2026-10-19T02:00:39Z.
What
On Windows with an NVIDIA GeForce RTX 4090,
agc_driver_pixel_ldsloses the device during its third draw,pixel LDS wave32 bounded. The two wave64 draws before it pass.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_TESTSempty so every execution test is built.How often, by commit
Ten runs of
ctest -R "^agc_driver_pixel_lds$"at each commit:60fb61870(2026-10-13)f265cd559e1544df5f(merge of #4772)ad502d717(main)With
ANYPS5_NO_SHADER_CACHE=1,mainfailed 6 of 6 andf265cd559passed 4 of 6, so the shader cache is not involved. #5271 reports this test passing on an RTX 4080 SUPER with driver 610.74 at60fb61870, from one run.#4772 changes the timing, not the shaders
A first-parent bisect between
60fb61870andad502d717ends 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 ofSpecializeSpirvfrom this test atf265cd559ande1544df5fwith 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
AI-assisted: yes (Claude Code)
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):ad502d7170769d752e2e4c66939ae3a58ad50f55from this report676d423968a1a8fcc79c6247020ce22090a8e0d4Every run was a fresh process with
ANYPS5_REQUIRE_VULKAN=1,ANYPS5_NO_SHADER_CACHE=1, andAPS5_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 completed12 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.cppis 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.
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_ldspasses 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. Unchangedmain36f60df9e.ctest -R '^agc_driver_pixel_lds$'withANYPS5_NO_SHADER_CACHE=1andANYPS5_REQUIRE_VULKAN=1: 20/20 pass, 0.55 to 0.60 s. Every run prints all four draws, includingpixel LDS wave32 bounded, andpixel LDS tests passed: 12 draws, 24576 pixels, 73728 LDS results. No[device-fault]line.ctest -j 8on 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).