fix(agc): wait for recorded writes over a sampled texture's DCC keys before reading them #4554

Merged
queeeef merged 1 commit from upstream-pr/4554 into main 2026-10-13 15:04:13 +00:00
queeeef commented 2026-10-12 15:33:57 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by queeeef on 2026-10-12T15:33:57Z.


What

Fixes #4552. textureClearKeys reads a sampled texture's DCC keys through a raw pointer, past the flush hook, so GPU writes the recorder holds for the key range are not in the bytes yet. A title that clears a target's keys with a kernel and samples the target in the same batch had its keys read from the memory's previous contents. In Palworld those were float data from a reused transient heap, so the keys read as mixed and the texels were read as stored.

  • Wait only when the keys don't decode. That is, when they are neither uncompressed nor a clear the format can fill. Then textureClearKeys calls WaitForKeyWriters, the function ProvedKeys already uses for storage images, and reads the keys again.
  • Known values first. WaitForKeyWriters answers from the pending fills and stores it knows, and otherwise waits for the batch that writes the keys.
  • Keys that decode are used as before, with no wait.

Tested

Windows 11 Pro 26300, RTX 2080 Ti (NVIDIA 610.74), MinGW-w64 GCC 15.2.0 (WinLibs r7), Release, BUILD_TESTING=ON, at main d592d54e1.

  • New case: RunSampledKeysBehindKernel in agc_driver_dcc_keys_first_write.
    • The key memory holds 00 00 80 3f (1.0f), and the sampled texture's keys first read as stored, as before.
    • The test then records the existing 0000 clear kernel over both halves of the keys, without waiting, and reads the keys again.
    • They read Clear0000, and after the batch the key bytes are 0x00.
    • Without the change the test fails with a sampled texture whose keys a recorded kernel stores 0000 over read uncompressed before the kernel ran.
  • Full suite: ctest --timeout 120 --parallel 12 -E '^agc_driver_bda_device$': 970 tests passed, 7 of them skipped (expected per check_skips.py --job windows). agc_driver_bda_device was not run: on this machine an older base lost the device in it, which also resets the display.
  • Repo checks: check_conventions.py, check_test_registration.py and git diff --check pass.

Palworld (PPSA23126):

  • Base: the same build with and without the change, with the open PRs the title needs (#2648) and local changes.
  • Character creation and world: the textures reported as read as stored drop from 19 to 30 per run to 2. Those two are listed in the issue and are separate cases.
  • Main menu, idle, two runs each:
Presents / 10 s Frame time Textures read as stored
With 195.8 / 193.0 51.1 / 51.8 ms 0
Without 185.5 / 185.5 53.9 / 53.9 ms 0

The menu has no texture this change applies to, so the difference there is run-to-run variation, not a cost. The change does not restore the colours of Palworld's world, which have another cause.

Not tested: Linux.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • AI-assisted: yes (Claude Code)

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4831596019 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4554). Originally posted by [queeeef](https://github.com/queeeef) on 2026-10-12T15:33:57Z. --- ### What Fixes #4552. `textureClearKeys` reads a sampled texture's DCC keys through a raw pointer, past the flush hook, so GPU writes the recorder holds for the key range are not in the bytes yet. A title that clears a target's keys with a kernel and samples the target in the same batch had its keys read from the memory's previous contents. In Palworld those were float data from a reused transient heap, so the keys read as mixed and the texels were read as stored. - **Wait only when the keys don't decode.** That is, when they are neither uncompressed nor a clear the format can fill. Then `textureClearKeys` calls `WaitForKeyWriters`, the function `ProvedKeys` already uses for storage images, and reads the keys again. - **Known values first.** `WaitForKeyWriters` answers from the pending fills and stores it knows, and otherwise waits for the batch that writes the keys. - **Keys that decode are used as before**, with no wait. ### Tested Windows 11 Pro 26300, RTX 2080 Ti (NVIDIA 610.74), MinGW-w64 GCC 15.2.0 (WinLibs r7), Release, `BUILD_TESTING=ON`, at `main` `d592d54e1`. - **New case:** `RunSampledKeysBehindKernel` in `agc_driver_dcc_keys_first_write`. - The key memory holds `00 00 80 3f` (1.0f), and the sampled texture's keys first read as stored, as before. - The test then records the existing `0000` clear kernel over both halves of the keys, without waiting, and reads the keys again. - They read `Clear0000`, and after the batch the key bytes are `0x00`. - Without the change the test fails with `a sampled texture whose keys a recorded kernel stores 0000 over read uncompressed before the kernel ran`. - **Full suite:** `ctest --timeout 120 --parallel 12 -E '^agc_driver_bda_device$'`: 970 tests passed, 7 of them skipped (expected per `check_skips.py --job windows`). `agc_driver_bda_device` was not run: on this machine an older base lost the device in it, which also resets the display. - **Repo checks:** `check_conventions.py`, `check_test_registration.py` and `git diff --check` pass. **Palworld (PPSA23126):** - **Base:** the same build with and without the change, with the open PRs the title needs (#2648) and local changes. - **Character creation and world:** the textures reported as read as stored drop from 19 to 30 per run to 2. Those two are listed in the issue and are separate cases. - **Main menu, idle, two runs each:** | | Presents / 10 s | Frame time | Textures read as stored | |---|---|---|---| | With | 195.8 / 193.0 | 51.1 / 51.8 ms | 0 | | Without | 185.5 / 185.5 | 53.9 / 53.9 ms | 0 | The menu has no texture this change applies to, so the difference there is run-to-run variation, not a cost. The change does not restore the colours of Palworld's world, which have another cause. Not tested: Linux. ### Checklist - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed in [TechnicalDebt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/TechnicalDebt.md#silent-stubs) - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] AI-assisted: yes (Claude Code) 🤖 Generated with [Claude Code](https://claude.com/claude-code)
MarcZX10 commented 2026-10-12 18:29:44 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-12T18:29:44Z.


I built the exact PR head c6c8cedccbdc9970bc24d39d6d6892ca21dbe40a on Linux x86-64 with GCC 12.2, Release, BUILD_TESTING=ON, and ANYPS5_ENABLE_SPIRV_TOOLS=ON. agc_driver_dcc_keys_first_write passed 1/1 under Vulkan llvmpipe (LLVM 15.0.6). This validates the focused regression on a software Vulkan driver; I did not run Palworld or test on GPU hardware.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6130213723 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4554#issuecomment-6130213723). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-12T18:29:44Z. --- I built the exact PR head `c6c8cedccbdc9970bc24d39d6d6892ca21dbe40a` on Linux x86-64 with GCC 12.2, Release, `BUILD_TESTING=ON`, and `ANYPS5_ENABLE_SPIRV_TOOLS=ON`. `agc_driver_dcc_keys_first_write` passed 1/1 under Vulkan llvmpipe (LLVM 15.0.6). This validates the focused regression on a software Vulkan driver; I did not run Palworld or test on GPU hardware.
Nesyth commented 2026-10-12 21:03:09 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Nesyth on 2026-10-12T21:03:09Z.


I hit the same bug in Ready or Not (#4184) and opened #4699 before I saw this PR. I'll close mine in favour of this one.

PR waits only when the keys don't decode, so stale keys that do decode are used while a recorded write is about to change them. A copy of your RunSampledKeysBehindKernel whose keys start as 0xff instead of float data fails with this PR: TextureClearKeys returns Uncompressed before the new check, where the test expects Clear0000. Checking for a recorded writer over the key range first, as currentDccKeys already does for render targets, covers it and passes your test.

On my Ready or Not build (#4184), a counter found 7 reads in one session where this check would have used keys that a recorded write then changes. I couldn't see a visible symptom from them. Happy to post the test if it's useful.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6132563326 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4554#issuecomment-6132563326). Originally posted by [Nesyth](https://github.com/Nesyth) on 2026-10-12T21:03:09Z. --- I hit the same bug in Ready or Not (#4184) and opened #4699 before I saw this PR. I'll close mine in favour of this one. PR waits only when the keys don't decode, so stale keys that do decode are used while a recorded write is about to change them. A copy of your `RunSampledKeysBehindKernel` whose keys start as `0xff` instead of float data fails with this PR: `TextureClearKeys` returns `Uncompressed` before the new check, where the test expects `Clear0000`. Checking for a recorded writer over the key range first, as `currentDccKeys` already does for render targets, covers it and passes your test. On my Ready or Not build (#4184), a counter found 7 reads in one session where this check would have used keys that a recorded write then changes. I couldn't see a visible symptom from them. Happy to post the test if it's useful.
kr4y4 commented 2026-10-13 01:38:17 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by kr4y4 on 2026-10-13T01:38:17Z.


A second GPU vendor, and the full suite with agc_driver_bda_device included.

Setup: Windows 11 (26200), WinLibs GCC 15.2.0 r7, Release, CI configure flags, an RTX 4070 Laptop GPU and an Intel Raptor Lake-S iGPU. The head c6c8cedcc merged into main 284a1c334.

  • agc_driver_dcc_keys_first_write passes on both GPUs with --repeat until-fail:3. With DccMetadata.cpp as on main it fails on both with a sampled texture whose keys a recorded kernel stores 0000 over read uncompressed before the kernel ran, as in the description.
  • Full suite (ctest --timeout 120 --parallel 4, nothing excluded): 1020 of 1020 on both GPUs. agc_driver_bda_device passes on both, and neither device was lost.

Written with AI assistance.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6136191808 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4554#issuecomment-6136191808). Originally posted by [kr4y4](https://github.com/kr4y4) on 2026-10-13T01:38:17Z. --- A second GPU vendor, and the full suite with `agc_driver_bda_device` included. Setup: Windows 11 (26200), WinLibs GCC 15.2.0 r7, Release, CI configure flags, an RTX 4070 Laptop GPU and an Intel Raptor Lake-S iGPU. The head c6c8cedcc merged into `main` 284a1c334. - `agc_driver_dcc_keys_first_write` passes on both GPUs with `--repeat until-fail:3`. With `DccMetadata.cpp` as on `main` it fails on both with `a sampled texture whose keys a recorded kernel stores 0000 over read uncompressed before the kernel ran`, as in the description. - Full suite (`ctest --timeout 120 --parallel 4`, nothing excluded): 1020 of 1020 on both GPUs. `agc_driver_bda_device` passes on both, and neither device was lost. Written with AI assistance.
Scramblrrrr commented 2026-10-13 01:39:24 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Scramblrrrr on 2026-10-13T01:39:24Z.


Windows NVIDIA cross-test of #4554 at c6c8cedccbdc9970bc24d39d6d6892ca21dbe40a, author-preserved on codex/first-light-dcc-key-writer-cross-test at 861fe25b9 (parent 010477a53, experimental #757/#758 title integration).

With ANYPS5_REQUIRE_VULKAN=1, agc_driver_dcc_keys_first_write and the full mocked agc_driver_graphics suite passed (2/2, 5.37 s). I then removed only the production DccMetadata.cpp change, retaining the new test: the native test failed because a sampled texture read uncompressed before the recorded kernel stored 0000 over its keys. Restored production and rebuilt: 2/2 passed again (5.08 s), without a Vulkan skip.

Next is a separate 007 run with only this DCC change on the previous diagnostic integration. No mixed-table optimization in that comparison. The user reports mostly black frames with bright shapes on our recent runs; this native result does not establish that DCC explains or fixes that rendering.

AI-assisted (Codex). No title code, captures, or assets uploaded.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6136203758 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4554#issuecomment-6136203758). Originally posted by [Scramblrrrr](https://github.com/Scramblrrrr) on 2026-10-13T01:39:24Z. --- Windows NVIDIA cross-test of #4554 at c6c8cedccbdc9970bc24d39d6d6892ca21dbe40a, author-preserved on `codex/first-light-dcc-key-writer-cross-test` at 861fe25b9 (parent 010477a53, experimental #757/#758 title integration). With ANYPS5_REQUIRE_VULKAN=1, agc_driver_dcc_keys_first_write and the full mocked agc_driver_graphics suite passed (2/2, 5.37 s). I then removed only the production DccMetadata.cpp change, retaining the new test: the native test failed because a sampled texture read uncompressed before the recorded kernel stored 0000 over its keys. Restored production and rebuilt: 2/2 passed again (5.08 s), without a Vulkan skip. Next is a separate 007 run with only this DCC change on the previous diagnostic integration. No mixed-table optimization in that comparison. The user reports mostly black frames with bright shapes on our recent runs; this native result does not establish that DCC explains or fixes that rendering. AI-assisted (Codex). No title code, captures, or assets uploaded.
Scramblrrrr commented 2026-10-13 01:51:06 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Scramblrrrr on 2026-10-13T01:51:06Z.


007 comparison result for 861fe25b9da540f293554445598265986e5dfb84 (#4554 c6c8cedcc on diagnostic 010477a53): title/menu/background rendered, then Resume at 2026-10-13 01:47:56.4034561 UTC (observed frame 1044). Process exited with 0xc0000005 at 01:49:25.9162966 UTC, about 90 s later. Same RenderThread null read as the preceding diagnostic/mixed-table runs: guest executable RVA 17bd927, read 0x40, rsi=0. This run does not establish #4554 as the cause or a fix for that fault.

Last memory sample: private 20.823 GB, free 4.206 GB; no guard-limit termination. Runtime-table deferred write-back unsupported-operation warnings remain. No steady cinematic/BDA interval or game FPS improvement established. The title/menu images already worked before this change.

One reported indirect-dispatch interval spent 9047 ms in the device call, including 8822 ms of resource construction. Its longest resource build was 4795.5 ms; new sampled snapshots accounted for 4569.6 ms inside it. These are nested CPU wall timings, not additive GPU times or a steady-scene benchmark. The substantial snapshot cost is still present.

Native #4554 positive/production-only negative/restored-positive evidence remains valid; it is separate from this title outcome. Next probe keeps this graphics binary and changes only APS5_SYNC_DRAWS to examine ordering/stability, not to claim an FPS optimization.

AI-assisted (Codex). No title code, dump contents, or captures uploaded.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6136328695 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4554#issuecomment-6136328695). Originally posted by [Scramblrrrr](https://github.com/Scramblrrrr) on 2026-10-13T01:51:06Z. --- 007 comparison result for 861fe25b9da540f293554445598265986e5dfb84 (#4554 c6c8cedcc on diagnostic 010477a53): title/menu/background rendered, then Resume at 2026-10-13 01:47:56.4034561 UTC (observed frame 1044). Process exited with 0xc0000005 at 01:49:25.9162966 UTC, about 90 s later. Same RenderThread null read as the preceding diagnostic/mixed-table runs: guest executable RVA 17bd927, read 0x40, rsi=0. This run does not establish #4554 as the cause or a fix for that fault. Last memory sample: private 20.823 GB, free 4.206 GB; no guard-limit termination. Runtime-table deferred write-back unsupported-operation warnings remain. No steady cinematic/BDA interval or game FPS improvement established. The title/menu images already worked before this change. One reported indirect-dispatch interval spent 9047 ms in the device call, including 8822 ms of resource construction. Its longest resource build was 4795.5 ms; new sampled snapshots accounted for 4569.6 ms inside it. These are nested CPU wall timings, not additive GPU times or a steady-scene benchmark. The substantial snapshot cost is still present. Native #4554 positive/production-only negative/restored-positive evidence remains valid; it is separate from this title outcome. Next probe keeps this graphics binary and changes only APS5_SYNC_DRAWS to examine ordering/stability, not to claim an FPS optimization. AI-assisted (Codex). No title code, dump contents, or captures uploaded.
oneandonlydean commented 2026-10-13 02:43:40 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-13T02:43:40Z.


Nesyth's case above is still open: keys that decode (his 0xff example) return at DccMetadata.cpp:452, before the new check, so a recorded write over them isn't waited for. Please check for a recorded writer over the key range first, as he suggests, and add the 0xff variant of RunSampledKeysBehindKernel.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6137046262 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4554#issuecomment-6137046262). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-13T02:43:40Z. --- Nesyth's case above is still open: keys that decode (his `0xff` example) return at `DccMetadata.cpp:452`, before the new check, so a recorded write over them isn't waited for. Please check for a recorded writer over the key range first, as he suggests, and add the `0xff` variant of `RunSampledKeysBehindKernel`.
Scramblrrrr commented 2026-10-13 03:50:02 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Scramblrrrr on 2026-10-13T03:50:02Z.


Confirmed the unresolved uniform-key case on our Windows/RTX5070Ti integration carrying #4554 c6c8cedcc. I extended the synthetic RunSampledKeysBehindKernel fixture with initial uniform 0xff and 0x40 metadata: both fail (returns uncompressed / 0001 while the recorded kernels overwrite the metadata to 0000); the existing mixed-key suite passes. This matches Nesyth and Dean's review above, so I will not open a duplicate PR. I am cross-testing the suggested currentDccKeys ordering locally, including both uniform variants and the original suite. Please send an updated canonical head when ready. No evidence yet that this explains 007's black scene. AI-assisted (Codex); synthetic inputs only.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6137808935 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4554#issuecomment-6137808935). Originally posted by [Scramblrrrr](https://github.com/Scramblrrrr) on 2026-10-13T03:50:02Z. --- Confirmed the unresolved uniform-key case on our Windows/RTX5070Ti integration carrying #4554 c6c8cedcc. I extended the synthetic RunSampledKeysBehindKernel fixture with initial uniform 0xff and 0x40 metadata: both fail (returns uncompressed / 0001 while the recorded kernels overwrite the metadata to 0000); the existing mixed-key suite passes. This matches Nesyth and Dean's review above, so I will not open a duplicate PR. I am cross-testing the suggested currentDccKeys ordering locally, including both uniform variants and the original suite. Please send an updated canonical head when ready. No evidence yet that this explains 007's black scene. AI-assisted (Codex); synthetic inputs only.
Scramblrrrr commented 2026-10-13 03:52:37 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Scramblrrrr on 2026-10-13T03:52:37Z.


Uniform-key follow-up cross-test now available: https://github.com/Scramblrrrr/AnyPS5/tree/codex/first-light-dcc-uniform-writer-probe at 5900427f5c4cbebdb49f985061726d7033e5fa67, parent f8381ecbe (our experimental title integration). Uses Nesyth/Dean's suggested currentDccKeys ordering before decoding any sampled key; keeps the pending known-store memo. No duplicate upstream PR opened.

Production unchanged negative with the new synthetic fixture: initial 0xff returns stale uncompressed, initial 0x40 returns stale 0001 instead of the recorded kernels' 0000. The original mixed-key suite passes. With the local correction both standalone uniform modes pass, and full DCC + mocked graphics pass 2/2, 5.20 s, Vulkan required on Windows/RTX5070Ti. Both variants also run in the regular DCC suite. Scoped conventions/diff checks pass.

Only patched graphics changed to 4673C2C7195228116178AB6C744DB81EB0742C6C3F8F80F21DC7A0D935D21E9C for the next separate warm 007 run; libc/kernel/settings unchanged. No game rendering/FPS benefit claimed yet. Synthetic code only; no title captures or assets uploaded. AI-assisted (Codex).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6137841484 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4554#issuecomment-6137841484). Originally posted by [Scramblrrrr](https://github.com/Scramblrrrr) on 2026-10-13T03:52:37Z. --- Uniform-key follow-up cross-test now available: https://github.com/Scramblrrrr/AnyPS5/tree/codex/first-light-dcc-uniform-writer-probe at 5900427f5c4cbebdb49f985061726d7033e5fa67, parent f8381ecbe (our experimental title integration). Uses Nesyth/Dean's suggested currentDccKeys ordering before decoding any sampled key; keeps the pending known-store memo. No duplicate upstream PR opened. Production unchanged negative with the new synthetic fixture: initial 0xff returns stale uncompressed, initial 0x40 returns stale 0001 instead of the recorded kernels' 0000. The original mixed-key suite passes. With the local correction both standalone uniform modes pass, and full DCC + mocked graphics pass 2/2, 5.20 s, Vulkan required on Windows/RTX5070Ti. Both variants also run in the regular DCC suite. Scoped conventions/diff checks pass. Only patched graphics changed to 4673C2C7195228116178AB6C744DB81EB0742C6C3F8F80F21DC7A0D935D21E9C for the next separate warm 007 run; libc/kernel/settings unchanged. No game rendering/FPS benefit claimed yet. Synthetic code only; no title captures or assets uploaded. AI-assisted (Codex).
Scramblrrrr commented 2026-10-13 04:03:55 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Scramblrrrr on 2026-10-13T04:03:55Z.


007 outcome for compiled5900427f5c4cbebdb49f985061726d7033e5fa67 (uniform-DCC ordering + sparse-hole restoration on886; graphics4673C2C7..., libc/kernel unchanged): rendered title/menu/background, then Resume around04:01:12 UTC/frame1051. The loaded scene remained black. Fatal RenderThread read0x40 with rsi=0 at guest executable RVA17bd927 appeared about100s after Resume; process exited0xc0000005 at04:03:07.7847501 UTC. This is the same signature as previous runs, not a newly established cause. Last private memory19.790 GB, free6.225 GB; no memory guard stop.

Unsupported runtime image-table deferred-writeback operations remain. No visible rendering/FPS gain established, and this was a combined-stack comparison, not isolated attribution to DCC or sparse initialization. Post-Resume8 draw-report intervals/48605draws: resources7.235s, lookup7.528s, pipeline0.612s. Includes loading and nested phases, not a steady-frame benchmark. Shader disk cache reached2897hits/0misses.

Native uniform-key reproduction/fix evidence remains separate and valid. Next build is the prepared range-local comparison memo (#2802) + incremental write snapshots (#4889), at b45e164b0; game has exited before starting the build. AI-assisted (Codex); no title code/captures/dumps/assets uploaded.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6137975296 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4554#issuecomment-6137975296). Originally posted by [Scramblrrrr](https://github.com/Scramblrrrr) on 2026-10-13T04:03:55Z. --- 007 outcome for compiled5900427f5c4cbebdb49f985061726d7033e5fa67 (uniform-DCC ordering + sparse-hole restoration on886; graphics4673C2C7..., libc/kernel unchanged): rendered title/menu/background, then Resume around04:01:12 UTC/frame1051. The loaded scene remained black. Fatal RenderThread read0x40 with rsi=0 at guest executable RVA17bd927 appeared about100s after Resume; process exited0xc0000005 at04:03:07.7847501 UTC. This is the same signature as previous runs, not a newly established cause. Last private memory19.790 GB, free6.225 GB; no memory guard stop. Unsupported runtime image-table deferred-writeback operations remain. No visible rendering/FPS gain established, and this was a combined-stack comparison, not isolated attribution to DCC or sparse initialization. Post-Resume8 draw-report intervals/48605draws: resources7.235s, lookup7.528s, pipeline0.612s. Includes loading and nested phases, not a steady-frame benchmark. Shader disk cache reached2897hits/0misses. Native uniform-key reproduction/fix evidence remains separate and valid. Next build is the prepared range-local comparison memo (#2802) + incremental write snapshots (#4889), at b45e164b0; game has exited before starting the build. AI-assisted (Codex); no title code/captures/dumps/assets uploaded.
adriadam10 commented 2026-10-13 14:24:55 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-13T14:24:55Z.


Rebased onto current main (conflict with the comp-to-single key handling in textureClearKeys) and applied the change @oneandonlydean and @Nesyth asked for:

  • textureClearKeys now checks for a recorded writer over the key range first (WaitForKeyWriters, as currentDccKeys does for render targets), before deciding whether the keys decode, so keys that decode (0xff) are covered too. The ClearSingle path is kept.
  • Added RunUniformKeysBehindKernel (keys start as 0xff, a recorded kernel stores 0000 over them) next to RunSampledKeysBehindKernel.

Checked: agc_driver_dcc_keys_first_write passes and fails without the production change; the rest of the libSceAgcDriver ctest passes except agc_driver_tessellation, which segfaults inside RADV's pipeline link on this host. Merging once the full Build is green.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6147790640 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4554#issuecomment-6147790640). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-13T14:24:55Z. --- Rebased onto current `main` (conflict with the comp-to-single key handling in `textureClearKeys`) and applied the change @oneandonlydean and @Nesyth asked for: - `textureClearKeys` now checks for a recorded writer over the key range first (`WaitForKeyWriters`, as `currentDccKeys` does for render targets), before deciding whether the keys decode, so keys that decode (`0xff`) are covered too. The `ClearSingle` path is kept. - Added `RunUniformKeysBehindKernel` (keys start as `0xff`, a recorded kernel stores `0000` over them) next to `RunSampledKeysBehindKernel`. Checked: `agc_driver_dcc_keys_first_write` passes and fails without the production change; the rest of the libSceAgcDriver ctest passes except `agc_driver_tessellation`, which segfaults inside RADV's pipeline link on this host. Merging once the full Build is green.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!4554
No description provided.