feat(agc): sample with DISABLE_CUBE_WRAP through non-seamless cube samplers #2625
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2625"
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 oneandonlydean on 2026-10-10T08:29:29Z.
Carrying @AlxcBTW's fix for #2577 while PR intake is paused. The change is theirs (from
AlxcBTW/AnyPS5:fix/agc-non-seamless-cube, ab27ae2c, rebased onto currentmain; the only conflict was the new opaque-black-border sampler check, kept next to this one).What
Samplers with
DISABLE_CUBE_WRAP(S# word 0 bit 28) are created instead of rejected. When the device supportsVK_EXT_non_seamless_cube_map(nonSeamlessCubeMap), the extension is enabled and such samplers getVK_SAMPLER_CREATE_NON_SEAMLESS_CUBE_MAP_BIT_EXT. Without it the sampler is still created, and only a cube texture sampled through it throws (RequireNonSeamlessCube, checked whereRequireDegammaFormatis). TechnicalDebt's cube texture entry is updated.Why
ps5-opengl's Mesa sets
DISABLE_CUBE_WRAPon every sampler, because non-seamless cube maps are GL's default, so PPSA99005 stops at its first sampler:RADV sets the same bit exactly when a sampler is created with
VK_SAMPLER_CREATE_NON_SEAMLESS_CUBE_MAP_BIT_EXT(Mesasrc/amd/vulkan/radv_sampler.c,src/amd/common/ac_descriptors.c). The bit only changes cube filtering.Tested
mainc72d5ce1passes on Linux, macOS and Windows.agc_driver_graphicscovers decoding, the create flag with and without the device feature, and the cube-only rejection;ctest -R ^agc269/269.tools/check_conventions.pypasses, and the branch merges cleanly with currentmain.Fixes #2577
Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-10T08:38:21Z.
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)docs/dev/TechnicalDebt.mdL373Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-10T08:47:29Z.
Checked on the PR merged onto current
main: libSceAgcDriver build and ctest (314/314), andagc_driver_graphicsfails to build without the change (it usesnonSeamlessCube/nonSeamlessCubeMap). Also measured the bit on gfx1035 (64x64 R32_FLOAT cube, bilinear, samples 0.002 from a face edge, all six faces): withDISABLE_CUBE_WRAPclear the result blends the neighbouring face, with it set the result is the face's own value, which is whatVK_SAMPLER_CREATE_NON_SEAMLESS_CUBE_MAP_BIT_EXTdoes. Without the device feature the sampler is created and only a cube texture sampled through it throws, as the TechnicalDebt entry says. Merging once CI is green.