AGC: Ghost of Yōtei (PPSA26344) stops on a draw that blends unclamped normalized color into two color targets #12796

Closed
opened 2026-10-29 09:43:32 +00:00 by Tehshortbus · 0 comments
Tehshortbus commented 2026-10-29 09:43:32 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by Tehshortbus on 2026-10-29T09:43:32Z.


What happens

On current main, Ghost of Yōtei stops on its first loading pass with AGC graphics: a draw merges into one color target at most, so blending unclamped normalized color cannot join another merged color target (CB_COLOR_INFO 0x0000000c, CB_BLEND1_CONTROL 0x40010504).

Title, test or build step

PPSA26344 02.002.000

AnyPS5 commit

main 4c7d275bef (the merge of #11684). The libraries also had a local print in libSceNpEntitlementAccess that only logs the add-on labels the title queries.

System

CachyOS Linux (kernel 7.3.0-4-cachyos), NVIDIA GeForce RTX 4070 SUPER (615.78.08), GCC 16.2.1, Release.

Steps to reproduce

  • relinker --registry input/eboot.elf app.elf, no other flags.
  • anyps5-entitlements.ini beside app.elf listing GHOSTYOTEIDUPLEX. Without it, 02.002.000 stays on its loading spinner and never reaches this draw; #12793 logs the label the title asks for.
  • APS5_TRACE_SUMMARY_EVERY=10 ./app.elf with a cold shader cache. It stops 549 s after launch, about 430 presents in, while the title streams its first world cell (hok_5_-39_-35.xpps).

Log

[gpu] driver failure: AGC graphics: a draw merges into one color target at most, so blending unclamped normalized color cannot join another merged color target (CB_COLOR_INFO 0x0000000c, CB_BLEND1_CONTROL 0x40010504)
[videoout] presentation failed: AGC graphics: a draw merges into one color target at most, so blending unclamped normalized color cannot join another merged color target (CB_COLOR_INFO 0x0000000c, CB_BLEND1_CONTROL 0x40010504)
terminate called after throwing an instance of 'std::runtime_error'

What was checked

  • This is the limit #11684 records in the debt entry for unclamped normalized color targets: the path "refuses … a second merged target in one draw".
  • CB_COLOR_INFO 0x0000000c has BLEND_CLAMP (bit 15) clear on a UNORM target. CB_BLEND1_CONTROL 0x40010504 is an enabled SRC_ALPHA / ONE_MINUS_SRC_ALPHA add.
  • The refusal is for MRT1, so another target of the same draw is already merged. Before #11684, mrfelek reported in #675 that main stopped on the same values in MRT0 (CB_COLOR_INFO 0x0000000c, CB_BLEND0_CONTROL 0x40010504), so this looks like one draw that alpha-blends both MRT0 and MRT1 without the clamp.
  • No open pull request lets a draw merge into more than one target. #9020, #9748 and #9335 extend the same single-target merge to other formats.

@oneandonlydean, since this is the next limit of #11684: are you planning to let a draw merge into more than one target? If not, I'd like to take it, and would follow how you'd want it shaped. The single merge runs through the pixel request, its serializer and cache key, the SPIR-V emitter and the driver's draw and pipeline setup, so it would probably be more than one pull request.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:6097005528 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/12796). Originally posted by [Tehshortbus](https://github.com/Tehshortbus) on 2026-10-29T09:43:32Z. --- ### What happens On current `main`, Ghost of Yōtei stops on its first loading pass with `AGC graphics: a draw merges into one color target at most, so blending unclamped normalized color cannot join another merged color target (CB_COLOR_INFO 0x0000000c, CB_BLEND1_CONTROL 0x40010504)`. ### Title, test or build step PPSA26344 02.002.000 ### AnyPS5 commit `main` `4c7d275bef` (the merge of #11684). The libraries also had a local print in `libSceNpEntitlementAccess` that only logs the add-on labels the title queries. ### System CachyOS Linux (kernel 7.3.0-4-cachyos), NVIDIA GeForce RTX 4070 SUPER (615.78.08), GCC 16.2.1, Release. ### Steps to reproduce - `relinker --registry input/eboot.elf app.elf`, no other flags. - `anyps5-entitlements.ini` beside `app.elf` listing `GHOSTYOTEIDUPLEX`. Without it, 02.002.000 stays on its loading spinner and never reaches this draw; #12793 logs the label the title asks for. - `APS5_TRACE_SUMMARY_EVERY=10 ./app.elf` with a cold shader cache. It stops 549 s after launch, about 430 presents in, while the title streams its first world cell (`hok_5_-39_-35.xpps`). ### Log ``` [gpu] driver failure: AGC graphics: a draw merges into one color target at most, so blending unclamped normalized color cannot join another merged color target (CB_COLOR_INFO 0x0000000c, CB_BLEND1_CONTROL 0x40010504) [videoout] presentation failed: AGC graphics: a draw merges into one color target at most, so blending unclamped normalized color cannot join another merged color target (CB_COLOR_INFO 0x0000000c, CB_BLEND1_CONTROL 0x40010504) terminate called after throwing an instance of 'std::runtime_error' ``` ### What was checked - This is the limit #11684 records in the debt entry for unclamped normalized color targets: the path "refuses … a second merged target in one draw". - `CB_COLOR_INFO 0x0000000c` has BLEND_CLAMP (bit 15) clear on a UNORM target. `CB_BLEND1_CONTROL 0x40010504` is an enabled `SRC_ALPHA` / `ONE_MINUS_SRC_ALPHA` add. - The refusal is for MRT1, so another target of the same draw is already merged. Before #11684, mrfelek reported in #675 that main stopped on the same values in MRT0 (`CB_COLOR_INFO 0x0000000c, CB_BLEND0_CONTROL 0x40010504`), so this looks like one draw that alpha-blends both MRT0 and MRT1 without the clamp. - No open pull request lets a draw merge into more than one target. #9020, #9748 and #9335 extend the same single-target merge to other formats. @oneandonlydean, since this is the next limit of #11684: are you planning to let a draw merge into more than one target? If not, I'd like to take it, and would follow how you'd want it shaped. The single merge runs through the pixel request, its serializer and cache key, the SPIR-V emitter and the driver's draw and pipeline setup, so it would probably be more than one pull request. AI-assisted: yes (Claude Code)
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#12796
No description provided.