fix(agc): decode implicit six-face cube extents #1308
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1308"
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 TibixDev on 2026-10-07T23:04:28Z.
What
Decode equal
BASE_ARRAYandDEPTHas one six-face cube. Keep rejecting partial cube ranges.The hardware reference used
image_load,image_sample, andimage_get_resinfoon 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.--cube-only: snapshot and storage views read all six faces at each base slice.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
main; no duplicate open PR.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.
main)core/libs/prx/libSceAgcDriver/tests/shaders/SampleArray.compcore/libs/prx/libSceAgcDriver/tests/shaders/SampleArray.compImported 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_testsbuild; the targeted tests and contribution checks pass. Windows CI is pending.RADV and lavapipe:
--cube-onlypass with core and synchronization validation; no validation errors.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 withimage_loadandimage_sample_lz, andimage_get_resinforeturns depth 6, the same asDEPTH = BASE_ARRAY + 5; partial ranges are bounded byDEPTHon loads, so keeping them throwing is right. Build + ctest green, the decode test fails without the change, recorder--cube-onlypasses on RADV. Merging.Note: #1368 and #1395 add
tests/shaders/SampleArray.comptoo (with theSTENCILvariant), so they will need a rebase on top of this one.