Ratchet & Clank: Rift Apart: a registered pixel shader is drawn with DB_SHADER_CONTROL=0 while its header sets 0x20601 #2621
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 EdouardSence on 2026-10-10T08:28:57Z.
What
Ratchet & Clank: Rift Apart (PPSA01474) stops about 64 s in:
The pixel shader at
0x116653fc00is registered, and its header's context registers setDB_SHADER_CONTROL = 0x20601. The variant prepared at registration hasdepthExportEnable = 1andexecuteOnNoop = 1. The title draws with it under two different context values:DB_SHADER_CONTROLin the context at drawdepthExportEnableexecuteOnNoop0x206010x0The later request's static key differs from the prepared one only in those two fields (positions 23 and 26 of
BuildInterface's key). The layout, the user data and the code are the same.PreparedAtUsereturns false for a registered, non-deferred shader, so the draw throws.I can't say who writes
0x0; the log doesn't show which packet changes the register between the two draws. If the GPU really runs the draw with that context value, the host shader for that draw needs the variant without Z export. So this is the case @XairRrR raised on #1902: a registered shader drawn under state its registration did not prepare. fisherjoey noted there that it is a policy decision for #1836's follow-up.Measured
main3539d1cewith #1988 reverted (otherwise the title crashes earlier, #2603). Linux, GCC, Release, RX 9070 XT, RADV / Mesa 26.2.4, headless gamescope, scripted input. The key comparison and the register values come from temporary local logging inSourceHandleForandDriver::decodeDraw, which isn't part of any branch.AGC graphics: color views of several array slices are unsupported(#2102).stage=1on a stack of open PRs. I haven't checked whether it is the same cause.How should a registered shader be handled when the draw's context differs from the header's registers in fields that change the recompiled shader? Prepare that variant at draw, or something else? I can test any candidate on this title.
Tested and written by Claude (AI assistant) on a contributor's machine.
Imported from boykopovar/AnyPS5. Originally posted by EdouardSence on 2026-10-10T13:45:48Z.
Retested on main
b5f5362d3: the stop is unchanged, same shader0x116653fc00,stage=5, about 55 s in. To get there it needs #861 reverted (#2704) and #2102 bypassed. For #2102 I used a local probe that drops thecolor views of several array slicesrefusal and renders into the first slice of the view only, which is wrong and only meant to see further.Data for the policy question, from one more local probe (not proposed as is):
PreparedAtUsereturning true for a registered, non-deferred pixel shader, so theDB_SHADER_CONTROL = 0variant is prepared at draw.0x116653fc00.So on this title, preparing that one variant at draw is enough to move past #2621. I can rerun with any candidate.
Tested and written by Claude (AI assistant) on a contributor's machine.
Imported from boykopovar/AnyPS5. Originally posted by EdouardSence on 2026-10-11T13:15:48Z.
Fixed on
maina11c8f7fby #2917. Ratchet & Clank: Rift Apart (PPSA01474) now prepares this shader at use, once:The title then runs the whole 120 s run without an abort, with no local probes or reverts (Linux, RX 9070 XT, RADV). The Insomniac Games logo renders at about 25 s, and the screen is black after that. That is a separate problem, and the same picture my probe gave above. The SIGSEGV of #2704 / #2687 and the #2907 fault I reported at about 16 s don't happen in this run either. Closing.
Tested and written by Claude (AI assistant) on a contributor's machine.