fix(agc): render into non-resident packed mip tails #4176

Closed
devavijitsingh wants to merge 4 commits from upstream-pr/4176 into main
devavijitsingh commented 2026-10-12 00:45:58 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by devavijitsingh on 2026-10-12T00:45:58Z.


What

Enables the existing GPU detile/retile fallback for packed color mips when the resident surface path is unavailable. The selected mip now uses its origin from the full surface layout, while transfer rows stay tightly packed. The fallback starts from the original shared tail block and retile writes only the selected mip's pixels, preserving neighboring levels. Other unsupported layouts remain rejected.

Tested

Windows (local): git diff --check origin/main...HEAD — passed. CMake Tools build failed before compilation with “Unable to configure the project”; no targets or tests were discovered, so agc_driver_graphics_tests was not run. No game/GPU runtime validation was available.

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 in TechnicalDebt
  • 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
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4823611863 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4176). Originally posted by [devavijitsingh](https://github.com/devavijitsingh) on 2026-10-12T00:45:58Z. --- ### What Enables the existing GPU detile/retile fallback for packed color mips when the resident surface path is unavailable. The selected mip now uses its origin from the full surface layout, while transfer rows stay tightly packed. The fallback starts from the original shared tail block and retile writes only the selected mip's pixels, preserving neighboring levels. Other unsupported layouts remain rejected. ### Tested <!-- OS, title or homebrew, what was checked. "Not tested" is a valid answer. --> Windows (local): `git diff --check origin/main...HEAD` — passed. CMake Tools build failed before compilation with “Unable to configure the project”; no targets or tests were discovered, so `agc_driver_graphics_tests` was not run. No game/GPU runtime validation was available. ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [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 in [TechnicalDebt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/TechnicalDebt.md#silent-stubs) - [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: <!-- #PR, or none --> none - [x] AI-assisted: <!-- yes / no --> yes
github-actions[bot] commented 2026-10-12 00:46:12 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-12T00:46:12Z.


Thank you for your contribution! Authors with no pull requests merged into main can have 1 open pull request at a time, authors with at least 1 merged can have 20, and from 20 merged there is no limit. This PR has been automatically closed and labeled "open PR limit" because that limit was reached. This is not a judgment of the quality of your changes: reopen it once one of your open pull requests is merged or closed.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6115762039 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4176#issuecomment-6115762039). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-12T00:46:12Z. --- Thank you for your contribution! Authors with no pull requests merged into `main` can have 1 open pull request at a time, authors with at least 1 merged can have 20, and from 20 merged there is no limit. This PR has been automatically closed and labeled "open PR limit" because that limit was reached. This is not a judgment of the quality of your changes: reopen it once one of your open pull requests is merged or closed.

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