[PPSA34501] Unsupported DB_RENDER_CONTROL depth copy (0x84) causes fatal abort #6304

Closed
opened 2026-10-15 10:29:45 +00:00 by alexpournaras · 7 comments
alexpournaras commented 2026-10-15 10:29:45 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by alexpournaras on 2026-10-15T10:29:45Z.


Description

When running Call of Duty: Black Ops (PPSA34501), AnyPS5 aborts on a graphics draw with DB_RENDER_CONTROL = 0x00000084.

Skipping the draw locally avoids the fatal error, but also skips the depth-copy operation. This is a temporary workaround, not a proper fix.

Error

terminate called after throwing an instance of 'std::runtime_error'
  what(): DB_RENDER_CONTROL depth copy, resummarize or decompress is unsupported (register 0x0 = 0x00000084)
FATAL: abort() (SIGABRT) on thread 1668

Environment

  • Title: PPSA34501
  • OS: Windows 11
  • CPU: AMD Ryzen 9 9900X
  • GPU: NVIDIA GeForce RTX 2060 (6 GB)
  • Vulkan driver version: 0x9a4a8000

Reproduction

  1. Launch PPSA34501 from main.
  2. Allow the startup intro to proceed until the depth-copy draw is submitted.
  3. AnyPS5 throws the fatal error above and aborts.

Local workaround

In core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawPrecheck.cpp:

if (const auto control = queue.context.find(0x000);
    control != queue.context.end() &&
    (control->second & 0xcu) != 0 &&
    (control->second & ~0xfacu) == 0) {
    return DrawVerdict::Nothing;
}

This prevents the immediate abort by discarding the draw. The condition also matches other register combinations and should not be treated as a safe general workaround.

Captured draw state

The captured draw uses:

  • Depth source: 1920×1080, D32, single-sample
  • Color destination: 1920×1080, R32_FLOAT, single-sample
  • Color write mask: Red component only
  • Depth/stencil testing and writing: Disabled
  • Draw: Direct, non-indexed rectangle list, 3 vertices, 1 instance

DB_RENDER_CONTROL = 0x84 appears to set DEPTH_COPY (0x4) and COPY_CENTROID (0x80).

The operation appears to copy depth values into the color output for the covered pixels. Skipping it may leave the destination without the expected data.

Expected behavior

Support this depth-copy operation while preserving draw coverage and scissor behavior, rather than skipping the draw. A register-based implementation could also benefit other titles using the same operation.

I don't currently have a validated implementation to submit. I'm experimenting with a local implementation, but haven't confirmed correct rendering or GPU output yet.

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5864445483 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/6304). Originally posted by [alexpournaras](https://github.com/alexpournaras) on 2026-10-15T10:29:45Z. --- ## Description When running [Call of Duty: Black Ops (PPSA34501)](https://github.com/boykopovar/AnyPS5/discussions/5389), AnyPS5 aborts on a graphics draw with `DB_RENDER_CONTROL = 0x00000084`. Skipping the draw locally avoids the fatal error, but also skips the depth-copy operation. This is a temporary workaround, not a proper fix. ## Error ```text terminate called after throwing an instance of 'std::runtime_error' what(): DB_RENDER_CONTROL depth copy, resummarize or decompress is unsupported (register 0x0 = 0x00000084) FATAL: abort() (SIGABRT) on thread 1668 ``` ## Environment - **Title:** PPSA34501 - **OS:** Windows 11 - **CPU:** AMD Ryzen 9 9900X - **GPU:** NVIDIA GeForce RTX 2060 (6 GB) - **Vulkan driver version:** `0x9a4a8000` ## Reproduction 1. Launch [PPSA34501](https://github.com/boykopovar/AnyPS5/discussions/5389) from `main`. 2. Allow the startup intro to proceed until the depth-copy draw is submitted. 3. AnyPS5 throws the fatal error above and aborts. ## Local workaround In `core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawPrecheck.cpp`: ```cpp if (const auto control = queue.context.find(0x000); control != queue.context.end() && (control->second & 0xcu) != 0 && (control->second & ~0xfacu) == 0) { return DrawVerdict::Nothing; } ``` This prevents the immediate abort by discarding the draw. The condition also matches other register combinations and should not be treated as a safe general workaround. ## Captured draw state The captured draw uses: - **Depth source:** 1920×1080, D32, single-sample - **Color destination:** 1920×1080, R32_FLOAT, single-sample - **Color write mask:** Red component only - **Depth/stencil testing and writing:** Disabled - **Draw:** Direct, non-indexed rectangle list, 3 vertices, 1 instance `DB_RENDER_CONTROL = 0x84` appears to set `DEPTH_COPY` (`0x4`) and `COPY_CENTROID` (`0x80`). The operation appears to copy depth values into the color output for the covered pixels. Skipping it may leave the destination without the expected data. ## Expected behavior Support this depth-copy operation while preserving draw coverage and scissor behavior, rather than skipping the draw. A register-based implementation could also benefit other titles using the same operation. I don't currently have a validated implementation to submit. I'm experimenting with a local implementation, but haven't confirmed correct rendering or GPU output yet.
milescoviello commented 2026-10-15 14:53:25 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-15T14:53:25Z.


#5499 (open, by @codingreapermaps) implements this draw: it runs a DB_RENDER_CONTROL.DEPTH_COPY draw as a compute pass that copies one depth sample into an R32 float color target. Its PR body names Transport Fever 2 (PPSA12361) as the target, which uses the same 0x84 value.

Going by its DecodeDepthCopyPass, the state you captured matches what it accepts. It takes 0x84 (depth copy with COPY_CENTROID, no stencil copy, clear, resummarize or decompress), no depth or stencil tests, a Z_32_FLOAT depth plane, writes to the red channel of color target 0 only, and a single-sample R32 float target the size of the depth surface. A single-sample source is allowed, and the copied sample is 0. It still throws when the viewport and scissor don't cover the whole surface or when PA_SC_AA_MASK isn't full, and your capture doesn't show those two.

I haven't run PPSA34501, so this is only from reading the code. It might be worth trying #5499 in place of the skip.

AI-assisted: yes

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6195027792 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/6304#issuecomment-6195027792). Originally posted by [milescoviello](https://github.com/milescoviello) on 2026-10-15T14:53:25Z. --- #5499 (open, by @codingreapermaps) implements this draw: it runs a `DB_RENDER_CONTROL.DEPTH_COPY` draw as a compute pass that copies one depth sample into an R32 float color target. Its PR body names Transport Fever 2 (PPSA12361) as the target, which uses the same `0x84` value. Going by its `DecodeDepthCopyPass`, the state you captured matches what it accepts. It takes `0x84` (depth copy with `COPY_CENTROID`, no stencil copy, clear, resummarize or decompress), no depth or stencil tests, a `Z_32_FLOAT` depth plane, writes to the red channel of color target 0 only, and a single-sample R32 float target the size of the depth surface. A single-sample source is allowed, and the copied sample is 0. It still throws when the viewport and scissor don't cover the whole surface or when `PA_SC_AA_MASK` isn't full, and your capture doesn't show those two. I haven't run PPSA34501, so this is only from reading the code. It might be worth trying #5499 in place of the skip. AI-assisted: yes
alexpournaras commented 2026-10-16 14:39:43 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by alexpournaras on 2026-10-16T14:39:43Z.


@milescoviello, I tested PPSA34501 from main with PR #5499 plus #5956, and successfully reached the game's main menu. This resolves the issue. Thanks!

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6217900455 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/6304#issuecomment-6217900455). Originally posted by [alexpournaras](https://github.com/alexpournaras) on 2026-10-16T14:39:43Z. --- @milescoviello, I tested [PPSA34501](https://github.com/boykopovar/AnyPS5/discussions/5389) from `main` with PR #5499 plus #5956, and successfully reached the game's main menu. This resolves the issue. Thanks!
milescoviello commented 2026-10-16 14:46:57 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-16T14:46:57Z.


Great, thanks for testing! That is useful evidence for #5499 itself. If you can, post the same result there (title, main commit, that it needed #5956 too, and your RTX 2060 / Windows setup), since a second title helps it get merged. This issue can then close when #5499 lands.

AI-assisted: yes

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6218043241 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/6304#issuecomment-6218043241). Originally posted by [milescoviello](https://github.com/milescoviello) on 2026-10-16T14:46:57Z. --- Great, thanks for testing! That is useful evidence for #5499 itself. If you can, post the same result there (title, `main` commit, that it needed #5956 too, and your RTX 2060 / Windows setup), since a second title helps it get merged. This issue can then close when #5499 lands. AI-assisted: yes
mehmetbayoglu commented 2026-10-17 00:55:33 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by mehmetbayoglu on 2026-10-17T00:55:33Z.


4. Great, thanks for testing! That is useful evidence for #5499 itself. If you can, post the same result there (title, main commit, that it needed #5956 too, and your RTX 2060 / Windows setup), since a second title helps it get merged. This issue can then close when #5499 lands.
AI-assisted: yes

I solved the same issue today I can play menu 30 fps cutscenes 60 fps kino der toten avrage 20-30 low 15 high 45

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6227638116 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/6304#issuecomment-6227638116). Originally posted by [mehmetbayoglu](https://github.com/mehmetbayoglu) on 2026-10-17T00:55:33Z. --- > 4\. Great, thanks for testing! That is useful evidence for [#5499](https://github.com/boykopovar/AnyPS5/pull/5499) itself. If you can, post the same result there (title, `main` commit, that it needed [#5956](https://github.com/boykopovar/AnyPS5/pull/5956) too, and your RTX 2060 / Windows setup), since a second title helps it get merged. This issue can then close when [#5499](https://github.com/boykopovar/AnyPS5/pull/5499) lands. > AI-assisted: yes I solved the same issue today I can play menu 30 fps cutscenes 60 fps kino der toten avrage 20-30 low 15 high 45
MarcZX10 commented 2026-10-17 01:00:42 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-17T01:00:42Z.


Thanks for sharing the gameplay results. Does this refer to PPSA34501? If so, what code tree or PRs did you test? If #5499’s depth-copy implementation was included, could you add the exact main head, change commits, and system/build details to #5499? That would let reviewers connect the gameplay result to the proposed implementation. The earlier main-menu report is useful, and this could add further title evidence once the tested tree is clear.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6227687795 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/6304#issuecomment-6227687795). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-17T01:00:42Z. --- Thanks for sharing the gameplay results. Does this refer to PPSA34501? If so, what code tree or PRs did you test? If #5499’s depth-copy implementation was included, could you add the exact main head, change commits, and system/build details to #5499? That would let reviewers connect the gameplay result to the proposed implementation. The earlier main-menu report is useful, and this could add further title evidence once the tested tree is clear.
milescoviello commented 2026-10-17 17:19:13 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-17T17:19:13Z.


The same stop shows up on another region of the title, and on Linux. Call of Duty: Black Ops (PPSA34502), Ubuntu 24.04, RTX 4070 Ti (NVIDIA 595.99.02), main 66702f1cf with a local logging change only, cold cache, scripted pad input. It aborts 15 s after start, at the first draw with this register value:

[gpu] driver failure: DB_RENDER_CONTROL depth copy, resummarize or decompress is unsupported (register 0x0 = 0x00000084)
terminate called after throwing an instance of 'std::runtime_error'

So this isn't specific to Windows or to PPSA34501. I haven't tried #5499 on it: that PR conflicts with main right now.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6237453217 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/6304#issuecomment-6237453217). Originally posted by [milescoviello](https://github.com/milescoviello) on 2026-10-17T17:19:13Z. --- The same stop shows up on another region of the title, and on Linux. Call of Duty: Black Ops (PPSA34502), Ubuntu 24.04, RTX 4070 Ti (NVIDIA 595.99.02), `main` 66702f1cf with a local logging change only, cold cache, scripted pad input. It aborts 15 s after start, at the first draw with this register value: ```text [gpu] driver failure: DB_RENDER_CONTROL depth copy, resummarize or decompress is unsupported (register 0x0 = 0x00000084) terminate called after throwing an instance of 'std::runtime_error' ``` So this isn't specific to Windows or to PPSA34501. I haven't tried #5499 on it: that PR conflicts with `main` right now. AI-assisted: yes (Claude Code)
MarcZX10 commented 2026-10-17 17:34:43 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-17T17:34:43Z.


Thanks for the second title and Linux/NVIDIA reproduction. This confirms the unsupported DB_RENDER_CONTROL=0x84 stop is not limited to PPSA34501 or Windows. The existing implementation is still being worked through in PR #5499; its current review specifically calls out the single-sample D32 source in your report, because the existing sampler2DMS path cannot safely handle it. I would not open a parallel patch while that PR is being updated. If you can, please add the exact game version and the full first-draw register state to #5499 when the single-sample handling is ready to test.

AI-assisted: yes

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6237741905 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/6304#issuecomment-6237741905). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-17T17:34:43Z. --- Thanks for the second title and Linux/NVIDIA reproduction. This confirms the unsupported `DB_RENDER_CONTROL=0x84` stop is not limited to PPSA34501 or Windows. The existing implementation is still being worked through in [PR #5499](https://github.com/boykopovar/AnyPS5/pull/5499); its current review specifically calls out the single-sample D32 source in your report, because the existing `sampler2DMS` path cannot safely handle it. I would not open a parallel patch while that PR is being updated. If you can, please add the exact game version and the full first-draw register state to #5499 when the single-sample handling is ready to test. AI-assisted: yes
Sign in to join this conversation.
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#6304
No description provided.