fix(libSceAgcDriver): accept FP16_ABGR exports into unsigned integer targets #12795

Closed
slopgobblercobbler wants to merge 1 commit from upstream-pr/12795 into main
slopgobblercobbler commented 2026-10-29 09:41:47 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by slopgobblercobbler on 2026-10-29T09:41:47Z.


What

Accept FP16_ABGR (export format 4) into unsigned integer color targets without throwing, retaining the unpacked float export path (color.packing = None, state.blendEnable = VK_FALSE), resolving the start-up abort regression from #9789.

Unblocks Marvel's Guardians of the Galaxy (PPSA01748) which was aborting before start-up menus on an 8-bit unsigned integer color target (VK_FORMAT_R8_UINT), as well as Grand Theft Auto V (PPSA04264), Minecraft (PPSA17221), and Builder's Journey (PPSA05496).

Tested

core/libs/prx/libSceAgcDriver/tests/Graphics.cpp uintTargetTests() verifying acceptance of FP16_ABGR into 32-bit and 8-bit unsigned integer targets (VK_FORMAT_R8_UINT) with ColorExportPacking::None and disabled blending, and rejecting format 5 (UNORM16_ABGR). Conventions check verified with zero findings.

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 under Silent stubs in their library's technical debt file
  • 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
  • Fixes: Fixes #12639, Fixes #11513
  • Unblocks: PPSA01748, PPSA04264, PPSA17221, PPSA05496
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5065714707 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12795). Originally posted by [slopgobblercobbler](https://github.com/slopgobblercobbler) on 2026-10-29T09:41:47Z. --- ### What Accept `FP16_ABGR` (export format 4) into unsigned integer color targets without throwing, retaining the unpacked float export path (`color.packing = None`, `state.blendEnable = VK_FALSE`), resolving the start-up abort regression from #9789. Unblocks *Marvel's Guardians of the Galaxy* (`PPSA01748`) which was aborting before start-up menus on an 8-bit unsigned integer color target (`VK_FORMAT_R8_UINT`), as well as *Grand Theft Auto V* (`PPSA04264`), *Minecraft* (`PPSA17221`), and *Builder's Journey* (`PPSA05496`). ### Tested `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` `uintTargetTests()` verifying acceptance of `FP16_ABGR` into 32-bit and 8-bit unsigned integer targets (`VK_FORMAT_R8_UINT`) with `ColorExportPacking::None` and disabled blending, and rejecting format 5 (`UNORM16_ABGR`). Conventions check verified with zero findings. ### 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 under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [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] Fixes: Fixes #12639, Fixes #11513 - [x] Unblocks: PPSA01748, PPSA04264, PPSA17221, PPSA05496 - [x] GPUs tested: n/a - [x] AI-assisted: yes

Pull request closed

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!12795
No description provided.