Skip to content

fix(agc): present 8-bit resident images on SDR 10-bit displays - #144

Open
Thimo188 wants to merge 1 commit into
mainfrom
upstream-pr/10623
Open

Thimo188 wants to merge 1 commit into
mainfrom
upstream-pr/10623

Conversation

@Thimo188

@Thimo188 Thimo188 commented Dec 2, 2026

Copy link
Copy Markdown
Owner

Imported from boykopovar/AnyPS5#10623, originally opened by itsbo5.

Source commit: 06e5df182b00c44ffdc03d4e8cf568a8edefc2d9. The import branch preserves this fetched upstream PR snapshot. The description and validation below are copied from upstream; no new code changes or test runs were made for this import. Original reviews, discussions, and attachments remain at the linked upstream PR.


What

Present 8-bit resident storage images (VK_FORMAT_R8G8B8A8_UNORM, VK_FORMAT_B8G8R8A8_UNORM, and their sRGB/UINT variants) on SDR 10-bit displays through the GPU conversion path (ResidentPresent::Convert) without CPU readback fallback.

Previously, ResidentPresentPath returned ResidentPresent::None whenever tenBit was true for 8-bit storage textures, even on standard SDR displays, forcing PresentableResident to fall back to an expensive PCIe readback of the full framebuffer on every frame.

PQ displays (DisplayPq) remain on the fallback/conversion path to preserve proper PQ-to-SDR tone mapping and HDR passthrough constraints.

Tested

  • Built and verified with a standalone run of the updated decision tests in core/libs/prx/libSceAgcDriver/tests/ResidentPresent.cpp (all decision assertions pass, including sRGB to 10-bit SDR conversion and PQ rejection).
  • Tested on Windows 11
  • Verified in Unreal Engine 4 titles requesting 10-bit output with 8-bit resident storage targets: eliminated CPU readback stall and restored full GPU framerates.

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: none
  • Unblocks: none
  • GPUs tested: Driver 576.80, Windows 11
  • AI-assisted: yes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants