Cyberpunk 2077 (PPSA04029) on NVIDIA: guest storage texture format 4 (R5G6B5) cannot be used as a storage image #6119
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-14T22:44:04Z.
Title: Cyberpunk 2077 (PPSA04029 v02.120.000, EU disc, owned). Converted from the dump's
eboot.binwithrelinker --registrybuilt from the samemain, no--to-intel. Follows #3308 and #4634: stops 1 and 2 of #3308 are fixed onmain; stop 3 (the title'sEngineWatchdog) trips in 2 of 3 cold runs on thismain(rerun on #4634). This is the stop the title reaches on baremainwhen it gets past the watchdog.Host: Linux (kernel 7.2.5), GCC 16.2.1, RTX 3090, NVIDIA 610.57.04, selected with
ANYPS5_GPU=3090. The format query below was also run on the host's RADV Raphael iGPU (Mesa 26.2.2).Build:
main799982fac, Release,-DBUILD_TESTING=ON -DANYPS5_ENABLE_SPIRV_TOOLS=ON(whatbuild.yml's linux job uses). No probes; no cherry-picks in the runs quoted.Launch:
APS5_TRACE_DISPATCH_IO=1 ANYPS5_GPU=3090 timeout 520 ./app.elfinsidegamescope --backend headless -W 2304 -H 1296 -r 60, one launch at a time. Times are from launch to the title's exit, measured by the wrapper script.sce_module/: as in #3308.The stop
At the first presentation, 491 s after launch cold (10,330 compute dispatches before it) and 205 s warm (12,954):
The same shader and exception text ended two more cold runs and one warm run of this
mainwith #1324's (a) branch cherry-picked (#4634; the warm run's log has no[videoout]line before it). The lines before the stop in the cold run ([dispatch-io]resource lines left out; guest addresses differ between runs):Where it comes from
Line numbers are on
799982fac.format 4is theVkFormatvalue,VK_FORMAT_R5G6B5_UNORM_PACK16, which guest format 133 resolves to (TextureFormat.cpp:70).StorageFormatOrUndefined(Texture.cpp:909) accepts a format as a storage image only when the device reportsVK_FORMAT_FEATURE_STORAGE_IMAGE_BITinoptimalTilingFeatures, and falls back only from the five sRGB formats to their UNORM forms;StorageFormatFor(line 963) throws for every other unsupported format. A dispatch's storage image reachesStorageFormatForthroughcachedStorageTexture(ShaderResources.cpp:887; itsSurfaceKeyat line 835 callsStorageFormatForGuest) and, on a cache miss, again inStorageTexture's constructor (Texture.cpp:1086); both throw this text.vkGetPhysicalDeviceFormatPropertieson this host:VK_FORMAT_R5G6B5_UNORM_PACK16(4)0x0001dd81, noSTORAGE_IMAGE_BIT0x0001dd83VK_FORMAT_B5G6R5_UNORM_PACK16(5)0x0001d401, noSTORAGE_IMAGE_BIT0x0001dd83VK_FORMAT_A1R5G5B5_UNORM_PACK16(8)0x0001dd81, noSTORAGE_IMAGE_BIT0x0001dd83VK_FORMAT_B4G4R4A4_UNORM_PACK16(3)0x0001d401, noSTORAGE_IMAGE_BIT0x0001dd83So the stop depends on the driver: NVIDIA exposes none of these four packed 16-bit formats as a storage image, and RADV exposes all four. The sampled-texture path already asks before choosing (
SampledFromStorageEligible,ShaderResources.cpp:410, throughStorageFormatAvailable). A run of the title on the RADV iGPU did not reach its first presentation within the 520 s limit (9,869 dispatches, no watchdog; the iGPU is slower and the shader cache is per device), so whether the title gets past this point on RADV is not shown here.Seen, not stops, in every run
79
s_swappc_b64deferrals and 4unsupported registered shader type 8; nonot implementedline. TheGetImageResource dword 0background preparation failures and thesceSysmoduleLoadModuleunknown id listed in #3308 and #4634 no longer appear on thismain.AI-assisted: yes (Claude Code, Claude Fable 5.1), operating under my supervision; I am accountable for this report and will respond to review.
Imported from boykopovar/AnyPS5. Originally posted by harry-z-kang on 2026-10-15T04:40:13Z.
@snoozedDev I've opened #6218 to address the packed 16-bit storage-format failure reported here. It keeps the native packed sampled format and writes through a compatible R16_UINT storage view, preserving the original guest bytes.
The full build and 98 related tests passed on Windows 11 with an RTX 5080 (NVIDIA 617.14), including three packed-format GPU regressions. These local runs used
ANYPS5_ENABLE_SPIRV_TOOLS=OFF; Cyberpunk 2077 has not been run, so title progress is unverified.Could you compare current
mainwith #6218 on your RTX 3090 using PPSA04029 v02.120.000 and the same build/launch settings from this report, includingANYPS5_ENABLE_SPIRV_TOOLS=ON? The PR head is8322164f15e322f727a5fc35aaf10822de678970(harry-z-kang:codex/issue-6119-packed-storage).Please report whether the
guest storage texture format 4exception disappears, whether the title reaches its first presentation, and any replacement error. Commit IDs and the relevant log tail would help distinguish this fix from changes on main or an earlier watchdog stop. Thank you.Imported from boykopovar/AnyPS5. Originally posted by snoozedDev on 2026-10-15T16:02:26Z.
Compared on
maind92a8dad3and ond92a8dad3+ #6218 at 8322164f1, the head named in the request (cherry-picked, no conflict;libsrebuilt), plus one run on the PR's current head 628767b52 (refactor(shader): isolate packed storage conversion from SINT stores, on top of 8322164f1). Same title (PPSA04029 v02.120.000), host, build configuration and launch as in the report: Release,ANYPS5_ENABLE_SPIRV_TOOLS=ON, GCC 16.2.1, RTX 3090, NVIDIA 610.57.04, gamescope headless. Times are from launch to the title's exit, measured by the wrapper script; baremainand the first run with #6218 ran under a 540 s wrapper limit (the report's was 520 s), the later ones under 1500 s. Successful presents are not logged, so the last four runs carriedAPS5_TRACE_SUMMARY_EVERY=30and the last threeAPS5_TRACE_DRAWS=1(one[draw] ... okline per completed draw). The summary writes one line per interval, with that interval'spresentscount. An interval starts at the first present and closes at the first present 30 s or more after it opened, so a stalled interval writes no line.mainguest storage texture format 4 cannot be used as a storage image([videoout] presentation failed:+what())main[gpu] driver failure:+what(), no[videoout]line in this log)unsupported PA_CL_CLIP_CNTL flags is unsupported (register 0x204 = 0x00090000)!!! EngineWatchdog timeout!PA_CL_CLIP_CNTLrefusalPA_CL_CLIP_CNTLrefusal at 524 sPA_CL_CLIP_CNTLrefusal at 514 sDoes the
guest storage texture format 4exception disappear? Yes, in every run with #6218. Shader 0x1aa4f07500 is dispatched once per run on a 256x256 format 133 surface created as a storage texture (StorageTexture address=0x1cb2b50000 256x256 mips=1 ... format=133 vk=4in cold 1,Texture.cpp:1111; the address differs per run), followed byTexture ... 256x256 mips=1 viewed from storage image (vk=4).cannot be used as a storage imageappears in none of the six logs with #6218. On baremainthat dispatch is the stop in both runs.Does the title reach its first presentation? Yes. In cold 3, whose log lines carry seconds since launch, the swapchain is created at 15 s, the first compute dispatch and the first draw come at 186 and 187 s, and the first present at 189 s (
[trace] summarizing summary_every 30 from present 0). The summary lines then count 288, 295, 8 and 123 presents in the four intervals after it, 714 in all (frame p50 94 to 227 ms; the third interval is 96 s long because one frame took 95 s). Cold 2 counts 260, 274, 25 and 248 (one 102 s frame), 807 in all; warm 2 counts 280, 260 and 117 (one 82 s frame), 657 in all. Cold 4 on 628767b52 has its first dispatch and draw at 174 s and its first present at 176 s, and counts 298, 223 and 124 (one 105 s frame), 645 in all. Most draws are single-instance draws of 4, 6 or 12 indices (VulkanDevice::Draw indices=6 instances=1 ... colorTarget=1). In warm 2 these are 458, 720 and 210 of the 1,449, and the rest are 42 draws of 3 indices and 18 of 60 to 13,560 indices. 615 of warm 2's draws come before the 0x1aa4f07500 dispatch and 834 after it, 811 of those to one color target.With the storage format accepted, the title renders and presents at about 10 frames per second before the stall (frame p50 93 to 106 ms) and at 4 to 8 after it, with one stall of 82 to 105 s per run. In the stalled interval the largest leaf phase per frame is
Driver.Dispatch.materialize(2,020 ms in cold 3, 646 ms in cold 2), and aneu-stacksample of cold 3 at 520 s has the queue worker inside SPIRV-Tools optimization passes undermaterializeResult(fromDriver::draw). In cold 3 the fourth interval closes 186 s after the first present (375 s after launch). No fifth line follows, but 401 more draws run until the refusal at 524 s.Replacement errors. Two, neither in code the PR touches:
Both warm runs, cold 3 and cold 4 end on a draw refused for
PA_CL_CLIP_CNTL(State.cpp:857/:1472, same text).ClipControlMaskat:160accepts bits 19, 24, 26 and 27, andPacketExecution.cpp:295throws the precheck's reason, which fails the queue worker and the presenter. 0x00090000 is bit 19 (DX_CLIP_SPACE_DEF, accepted) and bit 16 (CLIP_DISABLEin AMD'sgc_10_3_0_sh_mask.h).State.cppis identical ond92a8dad3and both PR heads, the same check is onmain0029e62f9today (State.cpp:1051/:1679,ClipControlMaskunchanged at:160), and #678 leftCLIP_DISABLErejected on purpose, so this ismain's next draw stop once the storage format is accepted. Tail of warm 2 ([dispatch-io]body lines and twoTexturelines omitted):(Warm 1 has
[gpu] driver failure:with the same text before the[videoout]line.) No issue or PR mentions0x00090000;CLIP_DISABLEappears only in #678's list of bits it leaves rejected. I can open an issue for it in the shape of this report if useful.Cold 2 ends on the title's own watchdog 540 s after launch, with no host error. There is no present from 226 s after the first present onward (a fifth interval opened at 196 s and never wrote its line). The last log line before
!!! EngineWatchdog timeout!is a dispatch ([dispatch-io] shader 0x1aa4f59500), and the title then opens/temp0/CrashInfo.jsonfor writing. This is the intermittent cold-run stop of #4634. It did not fire in cold 1 (cut at the limit, 546 s), in cold 3 (524 s), in cold 4 (514 s) or in baremain's cold run here. Theeu-stacksamples of cold 3 at 360 and 450 s each show onesceKernelBatchMap2thread in the registry walks listed there (GuestAllocationsAcquire_nid_postfixfromDoMprotect,GuestAllocationsRequireAvailable_nid_postfixfromDoMapDirect).Tests on Linux (
ANYPS5_ENABLE_SPIRV_TOOLS=ON, RTX 3090):ctest -R 'packed16|agc_.*(texture|image|storage|unorm|format)'passes 81 of 81 ond92a8dad3+ 8322164f1 and ond92a8dad3+ 628767b52, includingagc_driver_image_packed16_storage_133,_134and_136.The wrapper's
timeoutcut only cold 1, at its 540 s limit; every other run ended before its limit, on the title's own exit. Seen, not stops, in every run on both trees: 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.AI-assisted: yes (Claude Code, Claude Fable 5.1), operating under my supervision; I am accountable for this comment and will respond to review.
Imported from boykopovar/AnyPS5. Originally posted by harry-z-kang on 2026-10-15T16:35:36Z.
Thank you, @snoozedDev. Your comparison confirms that #6218 removes the original format-133 storage failure on both tested heads and reaches rendering/presentation. I've credited your Linux, SPIRV-Tools-enabled and title results in the PR, and updated its
Unblocksentry.Yes, please open a separate issue for the
CLIP_DISABLErefusal, including register0x204 = 0x00090000, the relevant log tail, commit IDs and the #678 reference. A current search found only this issue mentioning that stop. The intermittent watchdog remains tracked in #4634.The PR is rebased onto current main; its packed-storage implementation is unchanged from
628767b52. The additional change consolidates its documentation. The later clip-control failure belongs in a separate fix.Imported from boykopovar/AnyPS5. Originally posted by coltken95 on 2026-10-15T21:45:31Z.
@snoozedDev #6572 accepts PA_CL_CLIP_CNTL CLIP_DISABLE as depth clamp. Its test fails on main with the same
register 0x204 = 0x00090000refusal you hit here, and passes with the PR on Linux (lavapipe). Might be worth a PPSA04029 run with it.AI-assisted: yes (Claude Code)
Imported from boykopovar/AnyPS5. Originally posted by snoozedDev on 2026-10-16T12:51:04Z.
Opened #6806 for the
PA_CL_CLIP_CNTLrefusal (register 0x204 = 0x00090000), with the log tail, the commit IDs and the #678 reference.As coltken95 suggested, the title was also run with #6572 (3e28c99af) on top of #6218 (1057f47ca) on
main5d9dcc42d. On that tree the #4634 watchdog came before the refusal's point, so #6321 (a52b7235b) was added. With it,main+ #6218 + #6321 still refuses the draw at 282 s. With #6572 as well, two runs went to the 1500 s limit with no0x204line and no throw, and one cold run stopped on the #4634 watchdog before its first dispatch. The runs are in #6806.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:40:48Z.
Tested on Windows 11, RTX 5090 (driver 572.16):
With packed 16-bit storage fallback (format 4 / \VK_FORMAT_R5G6B5_UNORM_PACK16\ mapped to \VK_FORMAT_R16_UINT), Cyberpunk 2077 (PPSA03974) completely bypasses the compute shader \