Cyberpunk 2077 (PPSA04029): draws refused for PA_CL_CLIP_CNTL CLIP_DISABLE (register 0x204 = 0x00090000) once #6218 accepts the packed storage format #6806
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 snoozedDev on 2026-10-16T12:50:57Z.
Title: Cyberpunk 2077 (PPSA04029 v02.120.000, EU disc, owned). Converted from the dump's
eboot.binwithrelinker --registrybuilt from the same tree, no--to-intel. Follows #3308, #4634 and #6119. Opened at harry-z-kang's request in #6119. On baremainthe title stops at the storage format of #6119 first, so this stop is reached only with #6218 applied. Onmain5d9dcc42dwith #6218 alone, the intermittent watchdog of #4634 came first, so the later runs on that tree also carry #6321.Host: Linux (kernel 7.2.5), GCC 16.2.1, RTX 3090, NVIDIA 610.57.04, selected with
ANYPS5_GPU=3090.Build: Release,
-DBUILD_TESTING=ON -DANYPS5_ENABLE_SPIRV_TOOLS=ON(whatbuild.yml's linux job uses). PRs cherry-picked ontomainwithout conflicts,libsrebuilt for every tree, no probes. PR heads: #6218 at 8322164f1 and 628767b52 ond92a8dad3(the runs of #6119's comparison) and at 1057f47ca (current, rebased) on5d9dcc42d; #6321 at a52b7235b; #6572 at 3e28c99af.Launch:
APS5_TRACE_DISPATCH_IO=1 APS5_TRACE_SUMMARY_EVERY=30 APS5_TRACE_DRAWS=1 ANYPS5_GPU=3090 timeout 1500 ./app.elfinsidegamescope --backend headless -W 2304 -H 1296 -r 60, one launch at a time. Times are seconds from launch: in warm 1 and warm 2 below, launch to exit measured by the wrapper script (no per-line times; warm 1 also ran without the summary and draw switches); in every other run, added to each log line by the wrapper script. A warm run reuses the shader cache of the run before it.sce_module/: as in #3308.The stop
With #6218 the title creates its swapchain, dispatches, draws and presents (the counts for
d92a8dad3are in #6119), and then a draw is refused. Log tail on5d9dcc42d+ #6218 + #6321, warm, the four device lines of the last draw, the[dispatch-io]header lines of two host-side shaders (0x5f9d95d06300, 0x5f9d95d04000) and[dispatch-io]body lines left out:The
d92a8dad3runs end at the same place: cold 3 and cold 4 after shader 0x1aa4f83e00 and the same 256x128 format-64 storage texture, warm 1 and warm 2 right after shader 0x1aa4fd6900. The title's own exit follows theterminate. Every run:d92a8dad3+ #6218 8322164f1d92a8dad3+ #6218 8322164f1d92a8dad3+ #6218 8322164f1d92a8dad3+ #6218 628767b525d9dcc42d+ #6218!!! EngineWatchdog timeout!(#4634)5d9dcc42d+ #6218 + #6321The
5d9dcc42d+ #6218 + #6321 run logs[gpu] driver failure:before theterminate, warm 2, cold 3 and cold 4 log[videoout] presentation failed:with the same text instead, and warm 1 logs both.Where it comes from
Line numbers are on
main5d9dcc42d; onmain82ddae75btoday the same code is atState.cpp:160,:1060and:1689,PacketExecution.cpp:363andLifecycle.cpp:39, withClipControlMaskunchanged.ClipControlMask(State.cpp:160) accepts bits 19, 24, 26 and 27 ofPA_CL_CLIP_CNTL;DecodeStatechecks it withzero(:1057) and the draw precheckDrawRejectionwithnonzero(:1685).Packets/PacketExecution.cpp:361throws the precheck's reason as aruntime_error, which fails the queue worker (Execution/src/Driver/Lifecycle.cpp:37,[gpu] driver failure:) and the presenter (VideoOutDriver.cpp:715,[videoout] presentation failed:), and the presenter terminates. 0x00090000 is bit 19 (DX_CLIP_SPACE_DEF, accepted) and bit 16,CLIP_DISABLEin AMD'sgc_10_3_0_sh_mask.h(PA_CL_CLIP_CNTL__CLIP_DISABLE__SHIFT 0x10). #678 (merged 2026-10-05) accepted bit 24 and listedCLIP_DISABLEamong the bits it leaves rejected.State.cppis unchanged in that respect fromd92a8dad3to5d9dcc42d, and neither #6218 nor #6321 touches it. No other issue mentions0x00090000.With #6572
#6572 (notaxeltv) adds bit 16 to
ClipControlMaskand todepthClamp, withDepthClipTestscovering0x00090000and0x0c090000(UFC 5, PPSA03541, sets the latter). coltken95 suggested a title run with it in #6119.5d9dcc42d+ #6218 + #6572!!! EngineWatchdog timeout!(#4634)5d9dcc42d+ #6218 + #6572!!! EngineWatchdog timeout!(#4634)5d9dcc42d+ #6218 + #6321 + #65725d9dcc42d+ #6218 + #6321 + #6572!!! EngineWatchdog timeout!(#4634), 0 dispatches5d9dcc42d+ #6218 + #6321 + #6572Without #6321 the watchdog came before the refusal's point, so those two runs say nothing about #6572. The cold run with #6321 and #6572 hit the early form of the #4634 watchdog (no dispatch yet, as in the 139 s runs there). Both runs that got past it went to the limit with no
0x204line. They passed shader 0x1aa4f83e00 (507 and 389 dispatches of it) and the 256x128 format-64 storage texture (twice in each), with 99,763 and 75,178 dispatches and 773 and 536 presents. Presents per summary interval were 194, 78, 8, 12 in the first run and 86, 70, 7, 3 in the second, then 10 to 13 per 30 s to the end (typical frame about 2.4 s and 2.9 s), with frames of 63 and 107 s in the first run and 132 and 121 s in the second. A headless run does not show what was on screen.Tests on Linux
On
5d9dcc42d+ #6218 + #6321 + #6572, RTX 3090:ctest -R 'agc_driver_graphics|packed16|agc_.*(texture|image|storage|unorm|format)|guest_memory'passes 87/87 in 34 s. The set includesagc_driver_graphics(theDepthClipTests#6572 extends), the fourpacked16tests (packed16_storage_133/134/136andpacked16_load) andguest_memory, which #6321 extends.Seen, not stops
In every run on
5d9dcc42dthat dispatched (thealways-passline is absent from the 431 s cold run with #6218 + #6572; the cold run that stopped at 150 s has only the first two): 79s_swappc_b64deferrals, 4unsupported registered shader type 8, one[gpu] always-pass depth/stencil state is rendered without a depth target (DB_DEPTH_CONTROL=0x00000062), one[gpu] DCC keys of mipmapped color targets are ignored, 8storage image ...: guest memory changed while GPU results were pendingand 4memory no longer registered; nonot implementedline.AI-assisted: yes (Claude Code, Claude Fable 5.1 and Claude Opus 5.5), operating under my supervision; I am accountable for this issue and will respond to review.
Imported from boykopovar/AnyPS5. Originally posted by plokmklo on 2026-10-18T05:45:50Z.
The refusal came from the draw precheck:
ClipControlMaskinGraphics/src/State.cppwhitelisted only bits 19, 24, 26 and 27 ofPA_CL_CLIP_CNTL, and per AMD's GFX10.3 register header (PA_CL_CLIP_CNTL__CLIP_DISABLE__SHIFT 0x10, matching Mesa'sgfx103.json) the missing bit 16 isCLIP_DISABLE, so0x204 = 0x00090000was thrown as "unsupported PA_CL_CLIP_CNTL flags" by bothDecodeStateandDrawRejection.A fix is on
https://github.com/plokmklo/AnyPS5/tree/contrib/6806-pa-cl-clip(commit1ffac0680): the bit releases the console's primitive clipper, and on the open drivers radeonsi sets it only for shaders that produce window-space positions — a state that also switches the viewport transform off, which this driver already rejects atPA_CL_VTE_CNTL(it requires 0x43f) — so every draw this driver accepts carries homogeneous clip-space positions and the bit only releases frustum clipping. Vulkan cannot waive viewport clipping (x/y stay clipped, guard band aside), so the fix draws the bit like it is clear:ClipControlMasknow accepts bit 16, no pipeline state changes, and z continues to follow the existingZCLIP_NEAR/FAR_DISABLEmapping.DepthClipTestsnow decodes0x00090000,0x04090000and0x0c090000, keeps the precheck verdict and decoded state unchanged by the bit, and still refuses every other bit. The residual gap (user clip planes with the bit set, near/far behaviour) is recorded indocs/dev/debt/libSceAgcDriver.md.What still needs validation: a Cyberpunk run past this stop would confirm the register-level reading; note open PR #6572 also touches this register (it maps the bit into
depthClampdifferently), so the two approaches need reconciling before either lands.Imported from boykopovar/AnyPS5. Originally posted by snoozedDev on 2026-10-18T16:15:56Z.
Ran the title with
contrib/6806-pa-cl-clip(1ffac0680) and, on the same base, with #6572 (fd301cc30).Base:
mainccb0c0926+ #6218 (50642a572) + #6321 (a52b7235b), the report's stack on today'smain(#6218 is unmerged, so baremainstops at #6119's storage format before this point, and on5d9dcc42dwithout #6321 the #4634 watchdog came first). Each fix was cherry-picked on top of the base without conflicts,libsrebuilt per tree. Host, build and launch as in the report (RTX 3090, NVIDIA 610.57.04, Release,-DANYPS5_ENABLE_SPIRV_TOOLS=ON,timeout 1500inside headless gamescope, summary and draw tracing on, times are seconds from launch).ClipControlMaskis stillState.cpp:160onccb0c0926, its checksDecodeState:1124andDrawRejection:1797; onmain81cb86339today the same mask, still without bit 16, is at:181and the checks at:1152and:1825. A warm run reuses the shader cache of the run before it.!!! EngineWatchdog timeout!(#4634), before the first dispatchunsupported PA_CL_CLIP_CNTL flags is unsupported (register 0x204 = 0x00090000)With 1ffac0680 the refusal is gone: no
0x204line in either log, and both runs went past the point where the base refused (the warm base run ended after the[dispatch-io]header of shader 0x1aa4f83e00 and before the 256x128 format-64 storage texture; with the fix that shader was dispatched 643 (warm) and 454 (cold) times and that texture created twice in each run) and on to the limit with no further throw and no watchdog. Presents per summary interval: warm 259 in the first 84 s after the first present (typical frame 104 ms), then 97 and 8, then 13 to 17 per 30 s (typical frame 1.8 to 2.4 s), with single frames of 54, 81 and 22 s; cold 35, 100, 8, then 12 to 13 per 30 s (typical frame 2.4 to 2.6 s), with frames of 105, 91 and 23 s. Screenshots from the headless gamescope show the title's "This game is a work of fiction" disclaimer at 529 s (warm) and 707 s (cold), and at 1,094 s (warm) a letterboxed cinematic frame with a subtitle line and a "press ○ to continue" prompt.With #6572 on the same base, warm, the run went the same way: no
0x204line, shader 0x1aa4f83e00 dispatched 594 times, the format-64 texture created twice, to the limit with no throw; presents 273, 96, 8, then 14 to 15 per 30 s (typical frame 2.1 to 2.2 s), frames of 54, 70 and 25 s. So the title does not tell the two readings apart: both accept the draw, and they differ only in whether bit 16 also clamps z, which these frames do not resolve. 0x00090000 was the onlyPA_CL_CLIP_CNTLvalue refused on the base, and no value was refused with either fix.Tests on Linux, RTX 3090:
ctest -R 'agc_driver_graphics|packed16|agc_.*(texture|image|storage|unorm|format)|guest_memory'passes 96/96 on base + 1ffac0680 (17 s) and 96/96 on base + #6572 (15 s); the set includesagc_driver_graphicswith theDepthClipTestsboth branches extend.Seen, not stops, in the runs that dispatched: 79
s_swappc_b64deferrals, 4unsupported registered shader type 8, onealways-pass depth/stencil state is rendered without a depth target, oneDCC keys of mipmapped color targets are ignored, 8guest memory changed while GPU results were pending, 4memory no longer registered; nonot implementedline.AI-assisted: yes (Claude Code, Claude Fable 5.1 and Claude Opus 5.5), operating under my supervision; I am accountable for this comment and will respond to review.
Imported from boykopovar/AnyPS5. Originally posted by klosixgaming-arch on 2026-10-19T18:41:07Z.
Tested on Windows 11, RTX 5090:
Tested with \CLIP_DISABLE\ (bit 16, \
Imported from boykopovar/AnyPS5. Originally posted by johandavidcm on 2026-10-21T14:17:18Z.
A second title confirms #8046.
Yakuza 0 Director's Cut (PPSA31327, #6722) stopped on the same refusal,
PA_CL_CLIP_CNTL=0x00090000, before its menus. Until now I carried #6572 locally to get past it.On
main80565c594, which has #8046 and not #6572, the title no longer stops there. Seven boots of 100-120 s each ran to the end with no abort. That was on Windows 11 with an RTX 4070 (NVIDIA 617.42).