fix(agc): render alternate 1_5_5_5 targets during Windows loading #27829
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/27829"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by lgqdaxia on 2026-11-27T14:36:08Z.
What
A title stopped presenting during loading on Windows when
DecodeColorFormatRawrejected aCOLOR_1_5_5_5UNORM render target withSWAP_ALT(format 17, number type 0, component swap 1).In alternate order the packed word holds B in bits 0–4, G in 5–9, R in 10–14 and A in bit 15. This matches
VK_FORMAT_A1R5G5B5_UNORM_PACK16directly. Select the identity export mapping for this order so pixel exports, write masks and constant blend colors reach their intended channels. AMD PAL component swaps · Vulkan packed formatsTested
Windows 11 Pro build 26300, NVIDIA GeForce RTX 3080 Laptop GPU, driver 621.14. Compared main
2b6c1b0445with7c6c81043e.agc_driver_color1555_targetreproduced the title’s format error on main. The change passed on linear and tiled targets. A scissored draw with R = 3/31, G = 10/31, B = 21/31 and A = 1 stored0x8D55inside the scissor and preserved every texel outside it. The Vulkan validation layer was active in both runs, with zero VUID or synchronization errors.agc_driver_graphicsreproduced the same error on main and passed on the change, including the identity export, red/alpha write mask and constant blend color checks.The offline Windows integration retest reached the illustrated loading screen. Its native shader compilation was still in progress at this checkpoint.
Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Summary by CodeRabbit
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-27T14:40:08Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing blocks this change; review of the included changed lines supports the alternate 1_5_5_5 mapping and its tests, but execution checks were not run here.
What I ran
Reviewed head
7c6c81043e12d2dfd5109f1d7c9257349a2fb44cusingrepo_read.py. No commands or tests were run. Read all changed lines inState.cpp,Graphics.cpp,Color1555Target.cpp, andlibSceAgcDriver.md. The fullGraphics.cppfile was excluded from the review folder, so I read only its changed lines via the reader; no other changed files were excluded.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
The author reports passing Windows host integration checks, but I did not run them. PS5 behavior and the integration retest after native shader compilation are not verified.
To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by coderabbitai[bot] on 2026-11-27T14:44:16Z.
Review: COMMENTED
Actionable comments posted: 1
c8f9a55a-76e3-44b0-bd54-503ab131b2fbReviewing files that changed from the base of the PR and between
2b6c1b0445and7c6c81043e.core/libs/prx/libSceAgcDriver/Graphics/src/State.cppcore/libs/prx/libSceAgcDriver/tests/Graphics.cppcore/libs/prx/libSceAgcDriver/tests/execution/Color1555Target.cppdocs/dev/debt/libSceAgcDriver.mdIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-27T15:03:34Z.
Review: APPROVED
Reviewed — looks good
The change adds alternate 1_5_5_5 UNORM component ordering and corresponding checks; no blocking defect was identified in the code read.
What I ran
Reviewed head
b984d28314be17d09ab7906b921b049af5b67d9eusing the prepared review bundle and pinned-head reader. No build or tests were run.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
No tests or build were run. The author reports Windows 11/NVIDIA execution checks; those results were not independently verified.
core/libs/prx/libSceAgcDriver/tests/Graphics.cppwas read at the changed-line range; its full text was excluded from the review folder and not read. The other changed files were read at their changed lines, not in full.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by Plyxen on 2026-12-03T12:37:37Z.
Review: APPROVED
I read the diff at
b984d28314. Windows 11, GCC 15.2, merged intomainatdaa61711afetogether with other open PRs (so not an isolated build), withANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1andVK_LAYER_KHRONOS_validationon an RTX 5080 (621.24) and a Radeon iGPU (26.11.2).agc_driver_graphics,agc_graphics_profile_drawandagc_driver_color1555_target: pass on both GPUs. The loader log shows the layer inserted and no "was not found" line, and neither run has aVUID-orSYNC-HAZARDline.Not checked: a title.
AI-assisted: yes (Claude Code)
Imported from boykopovar/AnyPS5. Originally posted by ligmaSec on 2026-12-03T20:55:18Z.
Review: COMMENTED
The new execution case checks a full overwrite with distinct red and blue, and the decode test checks alternate blend constants and the red/alpha write mask. Could the execution case also draw into the same target with a red/alpha-only blend and distinct red/blue constants? Reading the untouched green and blue components back would check that the decoded mapping survives the pipeline and packed store together.
Source review at
b984d28314. The head trial-merges onto6ef4f2f73b. Focused Linux checks are queued.AI-assisted: yes.
Imported from boykopovar/AnyPS5. Originally posted by ligmaSec on 2026-12-03T22:05:03Z.
Review: COMMENTED
The new execution test blends through a red/alpha mask with unequal RGB constants and checks the preserved green and blue fields. That exercises the alternate packed mapping through both blending and the write mask, addressing my earlier coverage request. The paired 1_5_5_5 target fixture is queued on lavapipe.
AI-assisted: yes.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-12-03T22:31:59Z.
Review: APPROVED
Reviewed — looks good
Nothing blocks this change; the source and tests support the alternate 1_5_5_5 UNORM mapping.
What I ran
Reviewed head
9bd52932d975d56219b2e50167832dc3b65c04e5using the pinnedrepo_read.pyreader and prepared diff. No tests or builds were run.Results
Negative control
Not run; no tests were executed during this review.
Findings
Blocking
None.
Non-blocking
None.
Sources
Not verified
No tests were run. The author reports Windows 11 / RTX 3080 results for the test executables; those results were not independently reproduced. The author also reports the offline integration retest had not completed native shader compilation. Physical PS5 behavior was not verified. All four changed files listed in the manifest were reviewed; no files were excluded by the stated rules.
To get this to a good state
No changes are required for this review.
Imported from boykopovar/AnyPS5. Originally posted by Plyxen on 2026-12-04T16:13:47Z.
Review: APPROVED
Re-verified head
9bd52932d9on Windows 11 with GCC 15.2, applied alone to main484b0368d3. The new commit adds the masked-blending case toColor1555Target.cpp. Run withANYPS5_REQUIRE_VULKAN=1,ANYPS5_NO_SHADER_CACHE=1,VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validationandVK_LOADER_DEBUG=layer(layer 1.4.363).agc_driver_graphics,agc_graphics_profile_draw,agc_driver_color1555_targetState.cpprevertedEach log shows the loader inserting the layer, and none has a
VUID-.Not checked: a title.
AI-assisted: yes (Claude Code)
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.