fix(agc): bind image and sampler tables through update-after-bind limits #6647

Merged
binarycleric merged 1 commit from upstream-pr/6647 into main 2026-10-19 10:20:51 +00:00
binarycleric commented 2026-10-16 01:30:39 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by binarycleric on 2026-10-16T01:30:39Z.


What

Image and sampler table capacity came only from the regular descriptor limits. MoltenVK reports Metal's argument table limits there, below the typed heaps the tables are reserved on top of, so both capacities were 0 and every table draw or dispatch was refused with image tables need runtimeDescriptorArray, descriptorBindingPartiallyBound and descriptorBindingVariableDescriptorCount, which the device lacks (or the sampler table equivalent), although MoltenVK has all of those features.

Limits MoltenVK 1.4.2 reports on an Apple M5 Max (x86-64 under Rosetta 2):

Limit Regular Update-after-bind
Per-stage sampled images 256 1000000
Per-stage samplers 16 500000
Per-stage resources 287 1000000
Per-set sampled images 1280 1000000
Per-set samplers 80 500000

The sampled heaps alone reserve 28 × 64 = 1792 sampled images per stage and the sampler heap 32 samplers, so ImageTableCapacity and SamplerTableCapacity were 0. descriptorBindingSampledImageUpdateAfterBind is supported.

  • descriptorBindingSampledImageUpdateAfterBind is queried and enabled, and the update-after-bind limits are read when either it or the storage buffer feature is present.
  • A table whose regular capacity is 0 takes its capacity from the update-after-bind limits (ImageTableUpdateAfterBind, SamplerTableUpdateAfterBind). Its binding gets VK_DESCRIPTOR_BINDING_UPDATE_AFTER_BIND_BIT and its set layout and pool are update-after-bind ones, in ShaderResources and in DescribeSetLayouts alike. A table that fits the regular limits is unchanged, so devices whose regular limits already hold the tables get the same layouts as before.
  • An update-after-bind set layout (ValidateDescriptorLayout) and its allocation (DescriptorCache::Allocate) are checked against the update-after-bind sampled image and sampler limits when the device has descriptorBindingSampledImageUpdateAfterBind. The limits chapter counts the descriptors of such sets against those limits in place of the regular ones, and its footnote 9 requires them to be at least the regular ones only when the matching update-after-bind feature is supported (otherwise they can be zero). So without the feature, and for storage images, the regular limits are kept as before, and existing storage buffer update-after-bind layouts are checked as they were. Storage buffers keep their own update-after-bind flag, set only when they need it.
  • Compute pipeline capture and replay accept update-after-bind sampled image and sampler bindings; replay requires the matching device feature.

tableUpdateAfterBindTests in agc_driver_graphics checks the capacities with the limits above and with large regular limits, and the layout, binding and pool flags of an image table and of a sampler table, with and without the descriptor cache; with the cache, DescribeSetLayouts returns the layout the build made. The existing combined update-after-bind layout case in descriptorCacheTests, a sampled image binding in an update-after-bind set on a device without update-after-bind sampled images (whose limits are left at 0), still passes unchanged, which covers the regular limits being kept there.

#6402 adds StorageTableCapacity next to the two capacity functions this changes; the two conflict in that one hunk, and the result is a plain union. Its storage tables use the regular storage image limit, which MoltenVK also reports as 256; that would be a follow-up after both.

Tested

macOS 26.6.2, Apple M5 Max, x86-64 under Rosetta 2, MoltenVK 1.4.2 and Vulkan loader 1.4.363 built from source. This main (5d9dcc42d) does not build on macOS by itself, so the GPU tests ran on it merged with the macOS series (mugurc/AnyPS5 ci/macos-series-2, cc431f831) and #6580, plus local fixes for four macOS build errors that are not part of this pull request. The cherry-picked commit here has the same changes as the tested one.

  • agc_driver_bindless_images, agc_driver_image_sint8, agc_driver_image_table, agc_driver_image_table_cache_bounds and agc_driver_image_table_reuse failed before and pass now.
  • Full ctest on that tree: 63 failures before, 58 after, none new; the remaining ones are unrelated (f16/f32 float modes, geometry and cull distance capabilities, and non-GPU macOS gaps).
  • agc_driver_graphics passes. Removing the update-after-bind flag from the image table binding makes tableUpdateAfterBindTests fail.
  • The Khronos validation layer (Vulkan-ValidationLayers 1.4.363, built for x86-64) over all 595 agc* tests on MoltenVK reports no descriptor, update-after-bind, binding flag, pipeline layout or descriptor limit messages. As a control, with descriptorBindingSampledImageUpdateAfterBind left disabled it reports VUID-VkDescriptorSetLayoutBindingFlagsCreateInfo-descriptorBindingSampledImageUpdateAfterBind-03006 for the table layouts.
  • tools/check_conventions.py --base upstream/main passes.

Linux: an Ubuntu 26.04 x86-64 container under Rosetta 2 with GCC 15.2.0 and Mesa 26.0.8 (llvmpipe), configured and run as the Linux job does (ANYPS5_ENABLE_SPIRV_TOOLS=ON, the libs target, check_test_registration.py, ANYPS5_REQUIRE_VULKAN=1, GALLIUM_OVERRIDE_CPU_CAPS=avx), on main 5d9dcc42d and on main with this commit and a separate, unrelated libSceNetCtl change. Both build. The 22 tests that fail on main in that container fail the same way with the change, and agc_driver_graphics and the image table tests pass. precise_wait failed once in the full run and 4 of 20 runs on its own; it measures sleep precision and is outside this change.

Windows was not built or tested.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source (none added)
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Unblocks: none
  • GPUs tested: Apple M5 Max, MoltenVK 1.4.2, macOS 26.6.2 (x86-64 under Rosetta 2); llvmpipe, Mesa 26.0.8, Ubuntu 26.04 (x86-64 under Rosetta 2)
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4882102319 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6647). Originally posted by [binarycleric](https://github.com/binarycleric) on 2026-10-16T01:30:39Z. --- ### What Image and sampler table capacity came only from the regular descriptor limits. MoltenVK reports Metal's argument table limits there, below the typed heaps the tables are reserved on top of, so both capacities were 0 and every table draw or dispatch was refused with `image tables need runtimeDescriptorArray, descriptorBindingPartiallyBound and descriptorBindingVariableDescriptorCount, which the device lacks` (or the sampler table equivalent), although MoltenVK has all of those features. Limits MoltenVK 1.4.2 reports on an Apple M5 Max (x86-64 under Rosetta 2): | Limit | Regular | Update-after-bind | |---|---|---| | Per-stage sampled images | 256 | 1000000 | | Per-stage samplers | 16 | 500000 | | Per-stage resources | 287 | 1000000 | | Per-set sampled images | 1280 | 1000000 | | Per-set samplers | 80 | 500000 | The sampled heaps alone reserve 28 × 64 = 1792 sampled images per stage and the sampler heap 32 samplers, so `ImageTableCapacity` and `SamplerTableCapacity` were 0. `descriptorBindingSampledImageUpdateAfterBind` is supported. - `descriptorBindingSampledImageUpdateAfterBind` is queried and enabled, and the update-after-bind limits are read when either it or the storage buffer feature is present. - A table whose regular capacity is 0 takes its capacity from the update-after-bind limits (`ImageTableUpdateAfterBind`, `SamplerTableUpdateAfterBind`). Its binding gets `VK_DESCRIPTOR_BINDING_UPDATE_AFTER_BIND_BIT` and its set layout and pool are update-after-bind ones, in `ShaderResources` and in `DescribeSetLayouts` alike. A table that fits the regular limits is unchanged, so devices whose regular limits already hold the tables get the same layouts as before. - An update-after-bind set layout (`ValidateDescriptorLayout`) and its allocation (`DescriptorCache::Allocate`) are checked against the update-after-bind sampled image and sampler limits when the device has `descriptorBindingSampledImageUpdateAfterBind`. The [limits chapter](https://github.com/KhronosGroup/Vulkan-Docs/blob/main/chapters/limits.adoc) counts the descriptors of such sets against those limits in place of the regular ones, and its footnote 9 requires them to be at least the regular ones only when the matching update-after-bind feature is supported (otherwise they can be zero). So without the feature, and for storage images, the regular limits are kept as before, and existing storage buffer update-after-bind layouts are checked as they were. Storage buffers keep their own update-after-bind flag, set only when they need it. - Compute pipeline capture and replay accept update-after-bind sampled image and sampler bindings; replay requires the matching device feature. `tableUpdateAfterBindTests` in `agc_driver_graphics` checks the capacities with the limits above and with large regular limits, and the layout, binding and pool flags of an image table and of a sampler table, with and without the descriptor cache; with the cache, `DescribeSetLayouts` returns the layout the build made. The existing combined update-after-bind layout case in `descriptorCacheTests`, a sampled image binding in an update-after-bind set on a device without update-after-bind sampled images (whose limits are left at 0), still passes unchanged, which covers the regular limits being kept there. [#6402](https://github.com/boykopovar/AnyPS5/pull/6402) adds `StorageTableCapacity` next to the two capacity functions this changes; the two conflict in that one hunk, and the result is a plain union. Its storage tables use the regular storage image limit, which MoltenVK also reports as 256; that would be a follow-up after both. ### Tested macOS 26.6.2, Apple M5 Max, x86-64 under Rosetta 2, MoltenVK 1.4.2 and Vulkan loader 1.4.363 built from source. This `main` (5d9dcc42d) does not build on macOS by itself, so the GPU tests ran on it merged with the macOS series (`mugurc/AnyPS5` `ci/macos-series-2`, cc431f831) and #6580, plus local fixes for four macOS build errors that are not part of this pull request. The cherry-picked commit here has the same changes as the tested one. - `agc_driver_bindless_images`, `agc_driver_image_sint8`, `agc_driver_image_table`, `agc_driver_image_table_cache_bounds` and `agc_driver_image_table_reuse` failed before and pass now. - Full `ctest` on that tree: 63 failures before, 58 after, none new; the remaining ones are unrelated (f16/f32 float modes, geometry and cull distance capabilities, and non-GPU macOS gaps). - `agc_driver_graphics` passes. Removing the update-after-bind flag from the image table binding makes `tableUpdateAfterBindTests` fail. - The Khronos validation layer (Vulkan-ValidationLayers 1.4.363, built for x86-64) over all 595 `agc*` tests on MoltenVK reports no descriptor, update-after-bind, binding flag, pipeline layout or descriptor limit messages. As a control, with `descriptorBindingSampledImageUpdateAfterBind` left disabled it reports `VUID-VkDescriptorSetLayoutBindingFlagsCreateInfo-descriptorBindingSampledImageUpdateAfterBind-03006` for the table layouts. - `tools/check_conventions.py --base upstream/main` passes. Linux: an Ubuntu 26.04 x86-64 container under Rosetta 2 with GCC 15.2.0 and Mesa 26.0.8 (llvmpipe), configured and run as the Linux job does (`ANYPS5_ENABLE_SPIRV_TOOLS=ON`, the `libs` target, `check_test_registration.py`, `ANYPS5_REQUIRE_VULKAN=1`, `GALLIUM_OVERRIDE_CPU_CAPS=avx`), on `main` 5d9dcc42d and on `main` with this commit and a separate, unrelated libSceNetCtl change. Both build. The 22 tests that fail on `main` in that container fail the same way with the change, and `agc_driver_graphics` and the image table tests pass. `precise_wait` failed once in the full run and 4 of 20 runs on its own; it measures sleep precision and is outside this change. Windows was not built or tested. ### Checklist - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source (none added) - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Unblocks: none - [x] GPUs tested: Apple M5 Max, MoltenVK 1.4.2, macOS 26.6.2 (x86-64 under Rosetta 2); llvmpipe, Mesa 26.0.8, Ubuntu 26.04 (x86-64 under Rosetta 2) - [x] AI-assisted: yes
github-actions[bot] commented 2026-10-16 01:37:13 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-16T01:37:13Z.


Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.

Pull request Shared files not compared
PR 1395 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 4040 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 4072 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
PR 4472 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
PR 5021 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 5441 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 5499 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 5500 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 5925 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 6146 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 6177 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 6188 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 6192 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 6194 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 6202 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 6223 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 6235 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 6249 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 6290 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 6292 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 6340 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 6548 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 6612 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 6615 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 6636 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 6661 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 6683 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 6741 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 6762 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 6788 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 6808 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 6937 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 6946 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 6947 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 6960 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 6970 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 6972 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 6977 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 7201 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 7233 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 7254 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 7256 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 7258 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 7292 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 7340 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 7369 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 7390 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 7449 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 7484 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 7622 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 7642 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 7647 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
PR 7659 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 7689 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 7729 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 7800 core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 7803 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6206039098 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6647#issuecomment-6206039098). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-16T01:37:13Z. --- <!-- pr-overlap --> Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap. | Pull request | Shared files not compared | |---|---| | [PR 1395](https://www.github.com/boykopovar/AnyPS5/pull/1395) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 4040](https://www.github.com/boykopovar/AnyPS5/pull/4040) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 4072](https://www.github.com/boykopovar/AnyPS5/pull/4072) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp` | | [PR 4472](https://www.github.com/boykopovar/AnyPS5/pull/4472) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp` | | [PR 5021](https://www.github.com/boykopovar/AnyPS5/pull/5021) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 5441](https://www.github.com/boykopovar/AnyPS5/pull/5441) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 5499](https://www.github.com/boykopovar/AnyPS5/pull/5499) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 5500](https://www.github.com/boykopovar/AnyPS5/pull/5500) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 5925](https://www.github.com/boykopovar/AnyPS5/pull/5925) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 6146](https://www.github.com/boykopovar/AnyPS5/pull/6146) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 6177](https://www.github.com/boykopovar/AnyPS5/pull/6177) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp` | | [PR 6188](https://www.github.com/boykopovar/AnyPS5/pull/6188) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 6192](https://www.github.com/boykopovar/AnyPS5/pull/6192) | `core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp` | | [PR 6194](https://www.github.com/boykopovar/AnyPS5/pull/6194) | `core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 6202](https://www.github.com/boykopovar/AnyPS5/pull/6202) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp` | | [PR 6223](https://www.github.com/boykopovar/AnyPS5/pull/6223) | `core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp` | | [PR 6235](https://www.github.com/boykopovar/AnyPS5/pull/6235) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 6249](https://www.github.com/boykopovar/AnyPS5/pull/6249) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 6290](https://www.github.com/boykopovar/AnyPS5/pull/6290) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 6292](https://www.github.com/boykopovar/AnyPS5/pull/6292) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp` | | [PR 6340](https://www.github.com/boykopovar/AnyPS5/pull/6340) | `core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp` | | [PR 6548](https://www.github.com/boykopovar/AnyPS5/pull/6548) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 6612](https://www.github.com/boykopovar/AnyPS5/pull/6612) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 6615](https://www.github.com/boykopovar/AnyPS5/pull/6615) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp` | | [PR 6636](https://www.github.com/boykopovar/AnyPS5/pull/6636) | `core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 6661](https://www.github.com/boykopovar/AnyPS5/pull/6661) | `core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp` | | [PR 6683](https://www.github.com/boykopovar/AnyPS5/pull/6683) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp`<br>`core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 6741](https://www.github.com/boykopovar/AnyPS5/pull/6741) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 6762](https://www.github.com/boykopovar/AnyPS5/pull/6762) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 6788](https://www.github.com/boykopovar/AnyPS5/pull/6788) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 6808](https://www.github.com/boykopovar/AnyPS5/pull/6808) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 6937](https://www.github.com/boykopovar/AnyPS5/pull/6937) | `core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp` | | [PR 6946](https://www.github.com/boykopovar/AnyPS5/pull/6946) | `core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp` | | [PR 6947](https://www.github.com/boykopovar/AnyPS5/pull/6947) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp` | | [PR 6960](https://www.github.com/boykopovar/AnyPS5/pull/6960) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 6970](https://www.github.com/boykopovar/AnyPS5/pull/6970) | `core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 6972](https://www.github.com/boykopovar/AnyPS5/pull/6972) | `core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 6977](https://www.github.com/boykopovar/AnyPS5/pull/6977) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 7201](https://www.github.com/boykopovar/AnyPS5/pull/7201) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 7233](https://www.github.com/boykopovar/AnyPS5/pull/7233) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 7254](https://www.github.com/boykopovar/AnyPS5/pull/7254) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 7256](https://www.github.com/boykopovar/AnyPS5/pull/7256) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 7258](https://www.github.com/boykopovar/AnyPS5/pull/7258) | `core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp` | | [PR 7292](https://www.github.com/boykopovar/AnyPS5/pull/7292) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 7340](https://www.github.com/boykopovar/AnyPS5/pull/7340) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp` | | [PR 7369](https://www.github.com/boykopovar/AnyPS5/pull/7369) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 7390](https://www.github.com/boykopovar/AnyPS5/pull/7390) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp` | | [PR 7449](https://www.github.com/boykopovar/AnyPS5/pull/7449) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 7484](https://www.github.com/boykopovar/AnyPS5/pull/7484) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp` | | [PR 7622](https://www.github.com/boykopovar/AnyPS5/pull/7622) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 7642](https://www.github.com/boykopovar/AnyPS5/pull/7642) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp` | | [PR 7647](https://www.github.com/boykopovar/AnyPS5/pull/7647) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp` | | [PR 7659](https://www.github.com/boykopovar/AnyPS5/pull/7659) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 7689](https://www.github.com/boykopovar/AnyPS5/pull/7689) | `core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp` | | [PR 7729](https://www.github.com/boykopovar/AnyPS5/pull/7729) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 7800](https://www.github.com/boykopovar/AnyPS5/pull/7800) | `core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp` | | [PR 7803](https://www.github.com/boykopovar/AnyPS5/pull/7803) | `core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp` |
savvaniss commented 2026-10-16 20:58:31 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by savvaniss on 2026-10-16T20:58:31Z.


Intel Windows data point: this also fixes image tables on an Intel UHD 770, whose Windows driver reports limits of the same shape as MoltenVK.

Intel UHD Graphics 770 (8086:a780), driver 32.0.101.7088, Windows 11 Pro 26300, WinLibs GCC 15.2.0 r7, Release, BUILD_TESTING=ON, every execution test built. Base: main a7f108030 + #6452 (4fe92c9c2, needed to build on Windows); this head 506d49aaa merged on top. ANYPS5_NO_SHADER_CACHE=1.

Limit Regular Update-after-bind
Per-stage sampled images 200 1048576
Per-stage resources 200 1048576
Per-set sampled images 1800 1048576
Per-stage samplers 64 1048576
Per-set samplers 576 1048576

descriptorBindingSampledImageUpdateAfterBind is supported.

Test, 3 runs Base This PR
agc_driver_bindless_images, agc_driver_image_sint8, agc_driver_image_table fail: image tables need runtimeDescriptorArray, descriptorBindingPartiallyBound and descriptorBindingVariableDescriptorCount, which the device lacks pass
agc_driver_image_table_cache_bounds, agc_driver_image_table_reuse abort (0xc0000409) on the same error pass
agc_driver_image_table_cache, agc_driver_graphics pass pass

bindless_images and image_sint8 predate the capacity check (d9e47d1e9, #757), so on Intel Windows they regressed with it.

Full CTest on the UHD 770 with this PR: 1337 of 1339. The failures are select_tests (needs symlink privilege on this machine) and agc_driver_sample_multisample_target, which fails on the base too and uses no tables. The same eight tests on an RX 9070 XT (regular limits unbounded, so the regular path): pass ×3.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6224572188 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6647#issuecomment-6224572188). Originally posted by [savvaniss](https://github.com/savvaniss) on 2026-10-16T20:58:31Z. --- Intel Windows data point: this also fixes image tables on an Intel UHD 770, whose Windows driver reports limits of the same shape as MoltenVK. Intel UHD Graphics 770 (`8086:a780`), driver 32.0.101.7088, Windows 11 Pro 26300, WinLibs GCC 15.2.0 r7, Release, `BUILD_TESTING=ON`, every execution test built. Base: `main` `a7f108030` + #6452 (`4fe92c9c2`, needed to build on Windows); this head `506d49aaa` merged on top. `ANYPS5_NO_SHADER_CACHE=1`. | Limit | Regular | Update-after-bind | |---|---|---| | Per-stage sampled images | 200 | 1048576 | | Per-stage resources | 200 | 1048576 | | Per-set sampled images | 1800 | 1048576 | | Per-stage samplers | 64 | 1048576 | | Per-set samplers | 576 | 1048576 | `descriptorBindingSampledImageUpdateAfterBind` is supported. | Test, 3 runs | Base | This PR | |---|---|---| | `agc_driver_bindless_images`, `agc_driver_image_sint8`, `agc_driver_image_table` | fail: `image tables need runtimeDescriptorArray, descriptorBindingPartiallyBound and descriptorBindingVariableDescriptorCount, which the device lacks` | pass | | `agc_driver_image_table_cache_bounds`, `agc_driver_image_table_reuse` | abort (`0xc0000409`) on the same error | pass | | `agc_driver_image_table_cache`, `agc_driver_graphics` | pass | pass | `bindless_images` and `image_sint8` predate the capacity check (d9e47d1e9, #757), so on Intel Windows they regressed with it. Full CTest on the UHD 770 with this PR: 1337 of 1339. The failures are `select_tests` (needs symlink privilege on this machine) and `agc_driver_sample_multisample_target`, which fails on the base too and uses no tables. The same eight tests on an RX 9070 XT (regular limits unbounded, so the regular path): pass ×3. AI-assisted: yes (Claude Code)
blawesom commented 2026-10-17 11:23:38 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by blawesom on 2026-10-17T11:23:38Z.


Rebase handoff — rebased onto current main (authorship unchanged). One conflict in ShaderResources.cpp: main evolved the limit checks into DescriptorLimitError throws while this PR computes them from the update-after-bind limits — the merged version keeps main's error style but sources the sampler and sampled-image bounds from your sampledUpdateAfterBind-aware locals, so the update-after-bind capacity your feature relies on is still allowed.

Verified on Linux (CachyOS, kernel 7.2.9, GCC 16.2.1, Ninja, Release, BUILD_TESTING=ON, AMD RX 9070 XT / RADV):

  • builds; tools/check_conventions.py --base origin/main passes
  • full suite: 1338/1339 — the only failure is the known main regression (agc_driver_tessellation segfault, #4727), not this PR

To pick it up:

git fetch https://github.com/blawesom/AnyPS5 rebase/6647
git checkout <your branch>
git merge --ff-only FETCH_HEAD

Head is 69b1a3e42.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6233310897 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6647#issuecomment-6233310897). Originally posted by [blawesom](https://github.com/blawesom) on 2026-10-17T11:23:38Z. --- **Rebase handoff** — rebased onto current `main` (authorship unchanged). One conflict in `ShaderResources.cpp`: `main` evolved the limit checks into `DescriptorLimitError` throws while this PR computes them from the update-after-bind limits — the merged version keeps `main`'s error style but sources the sampler and sampled-image bounds from your `sampledUpdateAfterBind`-aware locals, so the update-after-bind capacity your feature relies on is still allowed. Verified on Linux (CachyOS, kernel 7.2.9, GCC 16.2.1, Ninja, Release, `BUILD_TESTING=ON`, AMD RX 9070 XT / RADV): - builds; `tools/check_conventions.py --base origin/main` passes - **full suite: 1338/1339** — the only failure is the known `main` regression (`agc_driver_tessellation` segfault, #4727), not this PR **To pick it up:** ``` git fetch https://github.com/blawesom/AnyPS5 rebase/6647 git checkout <your branch> git merge --ff-only FETCH_HEAD ``` Head is `69b1a3e42`.
savvaniss commented 2026-10-17 17:15:31 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by savvaniss on 2026-10-17T17:15:31Z.


UHD 770 retest of @blawesom's rebase 69b1a3e42: the image-table fix still works after the ShaderResources.cpp conflict resolution.

Windows 11 Pro 26300, WinLibs GCC 15.2.0 r7, Release, every execution test built, ANYPS5_NO_SHADER_CACHE=1, serial CTest. Intel UHD Graphics 770 (8086:a780), driver 32.0.101.7088. AMD Radeon RX 9070 XT (1002:7550), driver 32.0.31041.1004, with VkCache emptied first. 69b1a3e42 from blawesom/AnyPS5 rebase/6647, merged into main 66702f1cf.

Test, ×3 main, UHD 770 Rebase, UHD 770 Rebase, RX 9070 XT
agc_driver_bindless_images, agc_driver_image_sint8, agc_driver_image_table fail: image tables need runtimeDescriptorArray, descriptorBindingPartiallyBound and descriptorBindingVariableDescriptorCount, which the device lacks (sampler tables need … for image_table) pass pass
agc_driver_image_table_cache_bounds, agc_driver_image_table_reuse abort (0xc0000409) on the same errors pass pass
agc_driver_image_table_cache, agc_driver_graphics and the other tests built from tests/Graphics.cpp, 22 in all with the rows above pass pass pass

Full CTest (--parallel 4) with the rebase merged:

  • UHD 770: only agc_driver_sample_multisample_target fails (#6957, fixed by #6971). On main alone, the five image-table tests above fail as well.
  • RX 9070 XT: the same failures as main alone, agc_driver_quad_pixel_mask (#6255) and agc_driver_layered_volume_vertex_no_gpl (#4768).

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6237389759 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6647#issuecomment-6237389759). Originally posted by [savvaniss](https://github.com/savvaniss) on 2026-10-17T17:15:31Z. --- UHD 770 retest of @blawesom's rebase `69b1a3e42`: the image-table fix still works after the `ShaderResources.cpp` conflict resolution. Windows 11 Pro 26300, WinLibs GCC 15.2.0 r7, Release, every execution test built, `ANYPS5_NO_SHADER_CACHE=1`, serial CTest. Intel UHD Graphics 770 (`8086:a780`), driver 32.0.101.7088. AMD Radeon RX 9070 XT (`1002:7550`), driver 32.0.31041.1004, with `VkCache` emptied first. `69b1a3e42` from `blawesom/AnyPS5` `rebase/6647`, merged into `main` `66702f1cf`. | Test, ×3 | `main`, UHD 770 | Rebase, UHD 770 | Rebase, RX 9070 XT | |---|---|---|---| | `agc_driver_bindless_images`, `agc_driver_image_sint8`, `agc_driver_image_table` | fail: `image tables need runtimeDescriptorArray, descriptorBindingPartiallyBound and descriptorBindingVariableDescriptorCount, which the device lacks` (`sampler tables need …` for `image_table`) | pass | pass | | `agc_driver_image_table_cache_bounds`, `agc_driver_image_table_reuse` | abort (`0xc0000409`) on the same errors | pass | pass | | `agc_driver_image_table_cache`, `agc_driver_graphics` and the other tests built from `tests/Graphics.cpp`, 22 in all with the rows above | pass | pass | pass | Full CTest (`--parallel 4`) with the rebase merged: - UHD 770: only `agc_driver_sample_multisample_target` fails (#6957, fixed by #6971). On `main` alone, the five image-table tests above fail as well. - RX 9070 XT: the same failures as `main` alone, `agc_driver_quad_pixel_mask` (#6255) and `agc_driver_layered_volume_vertex_no_gpl` (#4768). AI-assisted: yes (Claude Code)
binarycleric commented 2026-10-18 05:06:41 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by binarycleric on 2026-10-18T05:06:41Z.


Rebased.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6245939182 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6647#issuecomment-6245939182). Originally posted by [binarycleric](https://github.com/binarycleric) on 2026-10-18T05:06:41Z. --- Rebased.
adriadam10 commented 2026-10-19 10:21:52 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-19T10:21:52Z.


Re-checked after the main change: the only difference from the head I reviewed before is the test-list adjacency in tests/Graphics.cpp, no logic change. The update-after-bind capacity and flag paths, compute capture/replay and tableUpdateAfterBindTests stand as reviewed, and the Intel UHD 770 / RX 9070 XT (Windows) and RADV runs from @savvaniss and @blawesom cover hardware our CI doesn't; merged.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6264999585 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6647#issuecomment-6264999585). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-19T10:21:52Z. --- Re-checked after the `main` change: the only difference from the head I reviewed before is the test-list adjacency in `tests/Graphics.cpp`, no logic change. The update-after-bind capacity and flag paths, compute capture/replay and `tableUpdateAfterBindTests` stand as reviewed, and the Intel UHD 770 / RX 9070 XT (Windows) and RADV runs from @savvaniss and @blawesom cover hardware our CI doesn't; merged.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!6647
No description provided.