Registering a shader of type 8 aborts the title: "AGC driver: unsupported registered shader type" #1892
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 fisherjoey on 2026-10-08T22:51:18Z.
Stray (PPSA02100 v1.05, Unreal Engine 4) aborts during start-up, before its first frame:
Setup: Linux (Nobara 44, kernel 7.2), RTX 5070 Ti, NVIDIA 595.91.07. Base is
main1be6f9f1+ #861 + #1836. Without #1836 the title stops earlier, on #1817.The throw comes from the
switch (snapshot.type)inPrepareRegistered(ShaderRegistry.cpp), which knows types 0, 1, 2, 4, 5, 6 and 7. Since #639, every registered shader goes through it inRegisterShader. Stray registers 13 shaders of type 8. WithAPS5_TRACE_SHADER_REGS=all, the counts by type over one start-up are 0: 1626, 1: 1067, 2: 100, 4: 3, 6: 4 and 8: 13. One of them:The type 8 headers have no context registers, and their sh registers use offsets 0 to 7, which are not
SPI_SHADER_PGM_*registers. So there's no program address to read and no stage to map them to. The draw path only builds programs for types 1, 2, 4, 5, 6 and 7 (DrawDecode.cpp:37checks the type), and compute is type 0. Nothing in the driver can run a type 8 shader. The only effect of the throw is that start-up stops.Fix: at registration, log the type and skip preparing an unsupported type. Any later attempt to prepare it still throws, and the message now includes the type number. The PR has a test that registers a type 8 header shaped like Stray's. It fails on
mainand passes with the fix.AI-assisted: yes