AGC: samplers with DISABLE_CUBE_WRAP are rejected, so ps5-opengl titles stop at their first sampler (PPSA99005) #2577
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 AlxcBTW on 2026-10-10T06:50:28Z.
PPSA99005 (ps5-opengl showcase) stops at
guest sampler descriptor disables seamless cube filtering which is not implemented. ps5-opengl's Mesa setsDISABLE_CUBE_WRAP(S# word 0 bit 28) on every sampler, because non-seamless cube maps are GL's default.Cause
DecodeSamplerResourcerejects the bit. Vulkan has the same mode: RADV setsDISABLE_CUBE_WRAPexactly when a sampler is created withVK_SAMPLER_CREATE_NON_SEAMLESS_CUBE_MAP_BIT_EXT(Mesa35b085c4,src/amd/vulkan/radv_sampler.c:214,230,src/amd/common/ac_descriptors.c:123).Fix
AlxcBTW:fix/agc-non-seamless-cube(ab27ae2c, onmainc963432d). Full CI, with the change merged intomainc72d5ce1, passes on Linux, macOS and Windows. I can't open it as a PR while intake is limited, so it's here if a collaborator wants to cherry-pick it.VK_EXT_non_seamless_cube_mapwhennonSeamlessCubeMapis supported, and samplers with the bit are created withVK_SAMPLER_CREATE_NON_SEAMLESS_CUBE_MAP_BIT_EXT.RequireNonSeamlessCube, checked whereRequireDegammaFormatis). TechnicalDebt's cube texture entry is updated.Tested
Windows 11, WinLibs GCC 15.2.0 r7, NVIDIA RTX 5070 Laptop (616.92). The Radeon 880M (AMD 2.0.353) exposes the extension too.
agc_driver_graphicscovers decoding, the create flag with and without the device feature, and the cube-only rejection.ctest -R ^agc: 269/269.AI-assisted: yes (Claude Code).
Imported from boykopovar/AnyPS5. Originally posted by LeandroLP23 on 2026-10-10T08:29:55Z.
@AlxcBTW's ab27ae2c no longer applies to current
main:Sampler.hppandSampler.cppconflict with the opaque-black-border checkmainadded in the same places (ReadsOpaqueBlackBorder,RequireBorderSwizzle). Keeping both additions resolves it; nothing else changes. Rebased commit (still authored by AlxcBTW):LeandroLP23:rebase/agc-non-seamless-cube(5fb611c8, onmain89a1fb4e, also merges cleanly onto6cc33583).Tested on a Radeon 860M (RDNA 3.5), AMD driver 32.0.13058.8001, which exposes
VK_EXT_non_seamless_cube_map, so the device path is used rather than the fallback check. Windows 11 (26300), WinLibs GCC 15.2.0 r7, Release: all 247agc_drivertests pass,agc_driver_graphics(which holds the new sampler tests) passes 3/3, conventions pass.ps5-opengl doesn't reach its first sampler on Windows yet: with the imports it needs added it stops earlier, at #2580's registration error (details there).