graphics: advance Ghost of Yotei loading past shader and image-heap stops #2226

Closed
github-bot wants to merge 30 commits from gh-pr/2226/head into gh-pr/2226/base
Owner

@⁠mmf1ne on GitHub · 2026-11-12 03:40 UTC · original
ci/shader-cfg-atomic → main · +908 −154 · 19 files · 30 commits · closed without merging

Draft build/test branch for the Ghost of Yotei loading investigation. It includes PR #2219, the existing formatted-store fixes, and an image-heap capacity/GC fix. Do not merge until the game reaches a real rendered frame.

**@⁠mmf1ne** on GitHub · 2026-11-12 03:40 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/2226) `ci/shader-cfg-atomic` → `main` · +908 −154 · 19 files · 30 commits · closed without merging Draft build/test branch for the Ghost of Yotei loading investigation. It includes PR #2219, the existing formatted-store fixes, and an image-heap capacity/GC fix. Do not merge until the game reaches a real rendered frame.
Allow strided known buffer formats through indirect resource specialization and map RDNA2 store dst selectors back to their source VGPR channels. Add UInt8 stride and reverse-swizzle coverage.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
# Conflicts:
#	src/graphics/shader/recompiler/ir/passes/ResourceMaterialization.cpp
#	tests/shaderCfgTests.cpp
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 10:17:16 +00:00
github-bot closed this pull request 2026-11-26 10:17:16 +00:00
Author
Owner

@⁠Nawid3333 on GitHub · 2026-11-12 04:53 UTC · original

@⁠mmf1ne On the image-heap part (6285b3b5a): ImageHeapCapacity is also the length of the heap's sampled-image array, and the ImageHeap constructor exits when the device's update-after-bind limits are below it (imageHeap.cpp:82). With 1u << 20:

  • Apple M5 on macOS (gpuinfo report 49982) reports 1000000 for those limits, so the emulator would stop at that check while it sets up Vulkan.
  • RTX 5060 Ti (gpuinfo report 45000) reports exactly 1048576 for every sampled-image limit. The heap binding is visible to all stages, so a pipeline that uses the heap and also has a sampled image in set 0 goes past what VUID-VkPipelineLayoutCreateInfo-descriptorType-03025 and VUID-VkPipelineLayoutCreateInfo-pSetLayouts-03041 allow.

For Ghost of Yōtei's stop, my open PR #2090 lowers the element count instead of raising the cap. The heap keeps one element per view and descriptor; at that stop it held 65535 elements for only 33822 distinct (profile, kind, descriptor) keys. With #2090, views with the same profile share their elements, and on my RX 9070 XT (an older main) the heap stayed below 40960 elements past that point.

Also, 2c7213e38 makes the same descriptorHeap.cpp change as open PR #1758 by Arda501, line for line.

**@⁠Nawid3333** on GitHub · 2026-11-12 04:53 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/2226#issuecomment-6814950293) @⁠mmf1ne On the image-heap part (6285b3b5a): `ImageHeapCapacity` is also the length of the heap's sampled-image array, and the `ImageHeap` constructor exits when the device's update-after-bind limits are below it (`imageHeap.cpp:82`). With `1u << 20`: - Apple M5 on macOS ([gpuinfo report 49982](https://vulkan.gpuinfo.org/displayreport.php?id=49982)) reports 1000000 for those limits, so the emulator would stop at that check while it sets up Vulkan. - RTX 5060 Ti ([gpuinfo report 45000](https://vulkan.gpuinfo.org/displayreport.php?id=45000)) reports exactly 1048576 for every sampled-image limit. The heap binding is visible to all stages, so a pipeline that uses the heap and also has a sampled image in set 0 goes past what VUID-VkPipelineLayoutCreateInfo-descriptorType-03025 and VUID-VkPipelineLayoutCreateInfo-pSetLayouts-03041 allow. For Ghost of Yōtei's stop, my open PR #2090 lowers the element count instead of raising the cap. The heap keeps one element per view and descriptor; at that stop it held 65535 elements for only 33822 distinct (profile, kind, descriptor) keys. With #2090, views with the same profile share their elements, and on my RX 9070 XT (an older main) the heap stayed below 40960 elements past that point. Also, 2c7213e38 makes the same `descriptorHeap.cpp` change as open PR #1758 by Arda501, line for line.

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.