fix(agc): decode implicit six-face cube extents #1308

Merged
TibixDev merged 1 commit from upstream-pr/1308 into main 2026-10-08 11:08:02 +00:00
TibixDev commented 2026-10-07 23:04:28 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by TibixDev on 2026-10-07T23:04:28Z.


What

Decode equal BASE_ARRAY and DEPTH as one six-face cube. Keep rejecting partial cube ranges.

The hardware reference used image_load, image_sample, and image_get_resinfo on RX 6600 (gfx1032), with base slices 0, 5, and 6. Console equivalence remains unverified.

Tested

Fedora 44, Release build, RX 6600 with host RADV and Vulkan validation:

  • agc_driver_graphics.
  • Recorder --cube-only: snapshot and storage views read all six faces at each base slice.
  • Contribution checks.

The initial GPU run passed its assertions but reported command-buffer reset errors from the recorder fixture. The corrected fixture enables reset. The repeated CPU and GPU tests pass with no validation errors.

Checklist

  • Current main; no duplicate open PR.
  • One topic.
  • No new code comments.
  • Unsupported paths still throw; UI stubs are documented.
  • No notes, logs, or images in the repository.
  • No new third-party code.
  • General behavior.
  • Depends on: none.
  • AI-assisted: yes.
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4779539588 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1308). Originally posted by [TibixDev](https://github.com/TibixDev) on 2026-10-07T23:04:28Z. --- ### What Decode equal `BASE_ARRAY` and `DEPTH` as one six-face cube. Keep rejecting partial cube ranges. The hardware reference used `image_load`, `image_sample`, and `image_get_resinfo` on RX 6600 (gfx1032), with base slices 0, 5, and 6. Console equivalence remains unverified. ### Tested Fedora 44, Release build, RX 6600 with host RADV and Vulkan validation: - `agc_driver_graphics`. - Recorder `--cube-only`: snapshot and storage views read all six faces at each base slice. - Contribution checks. The initial GPU run passed its assertions but reported command-buffer reset errors from the recorder fixture. The corrected fixture enables reset. The repeated CPU and GPU tests pass with no validation errors. ### Checklist - [x] Current `main`; no duplicate open PR. - [x] One topic. - [x] No new code comments. - [x] Unsupported paths still throw; UI stubs are documented. - [x] No notes, logs, or images in the repository. - [x] No new third-party code. - [x] General behavior. - [x] Depends on: none. - [x] AI-assisted: yes.
github-actions[bot] commented 2026-10-08 01:02:52 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-08T01:02:52Z.


Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.

Pull request Conflicting files (lines on main) Same exports Same new files
#1368 core/libs/prx/libSceAgcDriver/tests/shaders/SampleArray.comp
#1395 core/libs/prx/libSceAgcDriver/tests/shaders/SampleArray.comp
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6050004821 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1308#issuecomment-6050004821). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-08T01:02:52Z. --- <!-- pr-overlap --> Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in **Depends on**. | Pull request | Conflicting files (lines on `main`) | Same exports | Same new files | |---|---|---|---| | #1368 | | | `core/libs/prx/libSceAgcDriver/tests/shaders/SampleArray.comp` | | #1395 | | | `core/libs/prx/libSceAgcDriver/tests/shaders/SampleArray.comp` |
TibixDev commented 2026-10-08 07:15:20 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by TibixDev on 2026-10-08T07:15:20Z.


Rebased on eaa6ccea. Resolved the documentation conflict from merged #1051. Preserved the Linux host-import limitation and this PR’s distinct texture behavior; no production-code conflict.

Fedora 44 Release: agc_driver_graphics_tests, agc_driver_pm4_tests, agc_driver_recorder_tests build; the targeted tests and contribution checks pass. Windows CI is pending.
RADV and lavapipe: --cube-only pass with core and synchronization validation; no validation errors.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6054679794 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1308#issuecomment-6054679794). Originally posted by [TibixDev](https://github.com/TibixDev) on 2026-10-08T07:15:20Z. --- Rebased on `eaa6ccea`. Resolved the documentation conflict from merged #1051. Preserved the Linux host-import limitation and this PR’s distinct texture behavior; no production-code conflict. Fedora 44 Release: `agc_driver_graphics_tests`, `agc_driver_pm4_tests`, `agc_driver_recorder_tests` build; the targeted tests and contribution checks pass. Windows CI is pending. RADV and lavapipe: `--cube-only` pass with core and synchronization validation; no validation errors.
adriadam10 commented 2026-10-08 11:07:59 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-08T11:07:59Z.


Checked on gfx1035 with the HW oracle: a CUBE T# with BASE_ARRAY == DEPTH (0/0, 2/2, 5/5, 6/6) reads exactly faces base..base+5 with image_load and image_sample_lz, and image_get_resinfo returns depth 6, the same as DEPTH = BASE_ARRAY + 5; partial ranges are bounded by DEPTH on loads, so keeping them throwing is right. Build + ctest green, the decode test fails without the change, recorder --cube-only passes on RADV. Merging.

Note: #1368 and #1395 add tests/shaders/SampleArray.comp too (with the STENCIL variant), so they will need a rebase on top of this one.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6058531725 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1308#issuecomment-6058531725). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-08T11:07:59Z. --- Checked on gfx1035 with the HW oracle: a CUBE T# with `BASE_ARRAY == DEPTH` (0/0, 2/2, 5/5, 6/6) reads exactly faces base..base+5 with `image_load` and `image_sample_lz`, and `image_get_resinfo` returns depth 6, the same as `DEPTH = BASE_ARRAY + 5`; partial ranges are bounded by `DEPTH` on loads, so keeping them throwing is right. Build + ctest green, the decode test fails without the change, recorder `--cube-only` passes on RADV. Merging. Note: #1368 and #1395 add `tests/shaders/SampleArray.comp` too (with the `STENCIL` variant), so they will need a rebase on top of this one.
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!1308
No description provided.