Repository navigation
fix(recompiler): size a typed storage heap for several images, not one dynamic image - #2282
Conversation
|
I reviewed the full diff against current |
|
Follow-up to the overlap note: #2347 now also touches the adjacent |
|
Additional Arch Linux validation of head Environment: Arch under WSL2, GCC 16.2.1, CMake 4.4.4, kernel 6.6.87.2-microsoft-standard-WSL2, Vulkan lavapipe/llvmpipe LLVM 23.1.1.
This validation includes only this PR's changes on main, without the other adjacent heap-capacity PRs. Written with AI assistance. |
|
Checked the diff, built and ran the libSceAgc/libSceAgcDriver ctest (all green, |
85268f8 to
1a6c8e4
Compare
…e dynamic image A typed storage-image heap held four elements, and a dynamic-mip storage image takes four of them for its mip slots. A shader with a dynamic-mip storage image and any other storage image of the same class needed five and failed with "shader image heap capacity exceeded". The mip slots per dynamic image stay four (StorageMipSlots); a storage heap now holds sixteen elements (StorageHeapCapacity). Heap arrays are declared with their compact length, so shaders that fitted before are unchanged. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
Rebased onto current main again: the only conflict was in |
1a6c8e4 to
83e0a01
Compare
…er-storage-heap-capacity fix(recompiler): size a typed storage heap for several images, not one dynamic image
What
A typed storage-image heap held
StorageHeapCapacity= 4 elements, and a dynamic-mip storage image reserves that many for its mip slots ([BindingAllocator::place](https://github.com/boykopovar/AnyPS5/blob/main/core/shader/recompiler/Optimization/src/BindingAllocator.cpp)). A shader with one dynamic-mip storage image and any other storage image of the same class therefore needed 5 elements and failed:Planet Coaster (PPSA01736) hits this with a mip-chain compute shader: the allocator reported group 30 needing 5 of 4 for 6 images (from a temporary diagnostic in the failure message). The title aborts there.
The constant is split in two:
StorageMipSlots= 4 stays the number of slots per dynamic-mip image, andStorageHeapCapacitybecomes 16, the elements one storage heap can hold. Heap arrays are declared with their compact length (binding.count), so every shader that fitted before gets the same layout and SPIR-V. The ABI structs andVersionare unchanged.Related open PRs: #757 and #758 also use
StorageHeapCapacityfor the dynamic mip count inResourceMaterializer.cpp; whichever lands second needs to pick up the rename toStorageMipSlotson that line. #2141 changes the sampler heap size only.Tested
Windows 11, MinGW-w64 15.2.0.
agc_shader_device_profile: a storage heap now holds two dynamic-mip images (8 elements), fills to exactlyStorageHeapCapacity, and still rejects one image more withheap capacity exceeded. The previous version of the test expected the second image to be rejected, so it fails with the old constant.tools/check_conventions.py --base origin/mainpasses.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🤖 Generated with [Claude Code](https://claude.com/claude-code)