feat(agc): resolve packed 11_11_10 float multisample targets #23252

Open
oneandonlydean wants to merge 1 commit from upstream-pr/23252 into main
oneandonlydean commented 2026-11-18 21:09:50 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-11-18T21:09:50Z.


What

Resolves packed 11_11_10 float multisample colour targets (2x, 4x and 8x) with exact per-channel accumulation, then truncates the packed result and orders NaNs ahead of infinity, as measured on gfx1036 in #11362. This is the work of @thalesdot1dot1, opened from their commit unchanged (author kept) because their first-contributor slot is in use; the Vulkan pass reuses @xXPBSXx's 55910c3097, adapted to CommandState and the attachment's 10/11/11 bit layout (co-author on the commit). The test reads back every source sample and the guest's resolved destination against an independent reference.

Refs #11362.

Tested

From the author's run on an RTX 5060 (https://github.com/boykopovar/AnyPS5/issues/11362#issuecomment-6990761769): stock main returns the first sample for the special-value case; this change matches all 768 packed texels at 2x, 4x and 8x over 5 runs of agc_driver_native_color_packed_float_resolve. Not yet run on PPSA12361 itself.

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 (refs #11362)
  • Unblocks: none
  • GPUs tested: RTX 5060 (by the author)
  • AI-assisted: carried unchanged from the author's commit
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5384151311 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/23252). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-11-18T21:09:50Z. --- ### What Resolves packed 11_11_10 float multisample colour targets (2x, 4x and 8x) with exact per-channel accumulation, then truncates the packed result and orders NaNs ahead of infinity, as measured on gfx1036 in #11362. This is the work of @thalesdot1dot1, opened from their commit unchanged (author kept) because their first-contributor slot is in use; the Vulkan pass reuses @xXPBSXx's 55910c3097, adapted to CommandState and the attachment's 10/11/11 bit layout (co-author on the commit). The test reads back every source sample and the guest's resolved destination against an independent reference. Refs #11362. ### Tested From the author's run on an RTX 5060 (https://github.com/boykopovar/AnyPS5/issues/11362#issuecomment-6990761769): stock main returns the first sample for the special-value case; this change matches all 768 packed texels at 2x, 4x and 8x over 5 runs of `agc_driver_native_color_packed_float_resolve`. Not yet run on PPSA12361 itself. ### 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: none (refs #11362) - [x] Unblocks: none - [x] GPUs tested: RTX 5060 (by the author) - [x] AI-assisted: carried unchanged from the author's commit
MarcZX10 commented 2026-11-18 22:13:05 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-18T22:13:05Z.

Review: COMMENTED


Reviewed — no blocking findings

No verified blocking defect was found in the inspected changes; runtime behavior remains unverified because the tests were not run.

What I ran

Reviewed head 202174d6e11f524446adea2c936e144e911be694 using the prepared diff and targeted repository reads through repo_read.py. No build or test commands were run. The PR description reports author testing on an RTX 5060; this was not independently verified.

Results

Check Result Note
Diff and targeted code review passed No concrete blocking defect found
Build and runtime tests not run Author-reported GPU results only

Negative control

Not run; no test was executed.

Findings

Blocking

None.

Non-blocking

None.

Sources

Inspected the packed float resolve shader and implementation, multisample resolve dispatch, metadata decoding, and added test code at the reviewed head. The test reads back source samples and compares destination texels to an independent reference. The description reports GPU results but says testing on PPSA12361 has not been done.

Not verified

No build or runtime tests were performed. Console behavior and hardware other than the author-reported RTX 5060 run are unverified. core/libs/prx/libSceAgcDriver/tests/Graphics.cpp was excluded by the review bundle size rule; its changed lines were read through the pinned repository reader. The remaining changed files were present in the review bundle; review focused on relevant diff hunks and targeted added test code rather than reading every full file.

To get this to a good state

Nothing is required. Optional: run the packed float multisample resolve test on PPSA12361 and report the result.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5966021978 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/23252#pullrequestreview-5966021978). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-18T22:13:05Z. **Review:** COMMENTED --- # Reviewed — no blocking findings No verified blocking defect was found in the inspected changes; runtime behavior remains unverified because the tests were not run. ## What I ran Reviewed head `202174d6e11f524446adea2c936e144e911be694` using the prepared diff and targeted repository reads through `repo_read.py`. No build or test commands were run. The PR description reports author testing on an RTX 5060; this was not independently verified. ## Results | Check | Result | Note | |---|---|---| | Diff and targeted code review | passed | No concrete blocking defect found | | Build and runtime tests | not run | Author-reported GPU results only | ## Negative control Not run; no test was executed. ## Findings ### Blocking None. ### Non-blocking None. ## Sources Inspected the packed float resolve shader and implementation, multisample resolve dispatch, metadata decoding, and added test code at the reviewed head. The test reads back source samples and compares destination texels to an independent reference. The description reports GPU results but says testing on PPSA12361 has not been done. ## Not verified No build or runtime tests were performed. Console behavior and hardware other than the author-reported RTX 5060 run are unverified. `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` was excluded by the review bundle size rule; its changed lines were read through the pinned repository reader. The remaining changed files were present in the review bundle; review focused on relevant diff hunks and targeted added test code rather than reading every full file. ## To get this to a good state Nothing is required. Optional: run the packed float multisample resolve test on PPSA12361 and report the result.
ligmaSec commented 2026-12-03 21:59:20 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by ligmaSec on 2026-12-03T21:59:20Z.

Review: COMMENTED


Trial merging this head with main 63db72fb61 conflicts in CMake, resolve routing, target state and both graphics fixtures. Please reconcile it with the existing packed-float resolve plumbing and retain the independent reference in the test. The RTX 5060 evidence distinguishes first-sample behavior from true accumulation. Keep the sample-count and special-value cases when rerunning the paired validation after the rebase.

AI-assisted: yes.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6179342215 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/23252#pullrequestreview-6179342215). Originally posted by [ligmaSec](https://github.com/ligmaSec) on 2026-12-03T21:59:20Z. **Review:** COMMENTED --- Trial merging this head with `main` `63db72fb61` conflicts in CMake, resolve routing, target state and both graphics fixtures. Please reconcile it with the existing packed-float resolve plumbing and retain the independent reference in the test. The RTX 5060 evidence distinguishes first-sample behavior from true accumulation. Keep the sample-count and special-value cases when rerunning the paired validation after the rebase. AI-assisted: yes.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/23252:upstream-pr/23252'
git switch 'upstream-pr/23252'

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.

git switch 'main'
git merge --no-ff 'upstream-pr/23252'
git switch 'upstream-pr/23252'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/23252'
git switch 'upstream-pr/23252'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/23252'
git switch 'main'
git merge --squash 'upstream-pr/23252'
git switch 'main'
git merge --ff-only 'upstream-pr/23252'
git switch 'main'
git merge 'upstream-pr/23252'
git push origin 'main'
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!23252
No description provided.