vk_bindless_dimensions_test: size the set as the device does on MoltenVK (TEST-BINDLESS-DIMENSIONS-MOLTENVK) #2441

Open
github-bot wants to merge 1 commit from github-bot/gh-2441 into main AGit
Owner

@⁠lorentsob on GitHub · 2026-11-27 09:19 UTC · original
lorentsob:bindless-dimensions-moltenvk → main · +8 −1 · 1 files · 1 commits · open

Claimed in the coordination issue as: TEST-BINDLESS-DIMENSIONS-MOLTENVK

What and why

vk_bindless_dimensions_test (added in #2406) says it sizes set 0 as the D3D12 device does, but it passes
vkGetDescriptorSetLayoutSupport's answer to size_bindings on every driver. The device does not ask MoltenVK
(d3d12_vulkan_device.cpp): MoltenVK refuses every layout of maxPerSetDescriptors (1212) or more and runs the
full set. With its answer the set stays at the default 256 indices of each dimension, and on a Mac the test fails
at capacity > live_images instead of running.

The test now reads the driver ID and skips the query on MoltenVK, as the device does.

Tested

On main at d35001eef, ctest on the macOS build: 114 of 115 pass, vk_bindless_dimensions fails
(1D: 256 indices in the set). With this change: 115 of 115 (3 skipped). The test sizes each array to 65536,
reads 5000 live images of each dimension through their indices, fills the rest and sees the next one refused.
python -I scripts/check_no_game_data.py on the changed file: clean. Not run on Windows or Linux: the change
only takes effect when the driver ID is MoltenVK.

GPUs tested: Apple M5 Max, MoltenVK 1.4.2, macOS 27.2.1

AI-assisted: yes

Checklist

  • Based on current main and merges cleanly (a conflicting pull request is labeled needs rebase).
  • One topic; follow-up work goes in a new pull request.
  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed. (n/a)

🤖 Generated with Claude Code

**@⁠lorentsob** on GitHub · 2026-11-27 09:19 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/2441) `lorentsob:bindless-dimensions-moltenvk` → `main` · +8 −1 · 1 files · 1 commits · open Claimed in the coordination issue as: TEST-BINDLESS-DIMENSIONS-MOLTENVK ### What and why `vk_bindless_dimensions_test` (added in #2406) says it sizes set 0 as the D3D12 device does, but it passes vkGetDescriptorSetLayoutSupport's answer to `size_bindings` on every driver. The device does not ask MoltenVK (`d3d12_vulkan_device.cpp`): MoltenVK refuses every layout of `maxPerSetDescriptors` (1212) or more and runs the full set. With its answer the set stays at the default 256 indices of each dimension, and on a Mac the test fails at `capacity > live_images` instead of running. The test now reads the driver ID and skips the query on MoltenVK, as the device does. ### Tested On `main` at d35001eef, `ctest` on the macOS build: 114 of 115 pass, `vk_bindless_dimensions` fails (`1D: 256 indices in the set`). With this change: 115 of 115 (3 skipped). The test sizes each array to 65536, reads 5000 live images of each dimension through their indices, fills the rest and sees the next one refused. `python -I scripts/check_no_game_data.py` on the changed file: clean. Not run on Windows or Linux: the change only takes effect when the driver ID is MoltenVK. GPUs tested: Apple M5 Max, MoltenVK 1.4.2, macOS 27.2.1 AI-assisted: yes ### Checklist - [x] Based on current `main` and merges cleanly (a conflicting pull request is labeled `needs rebase`). - [x] One topic; follow-up work goes in a new pull request. - [x] No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here. - [ ] A new translator rule is in the contract table of `docs/design.md`, with how it was confirmed. (n/a) 🤖 Generated with [Claude Code](https://claude.com/claude-code)
The test says it sizes set 0 as the D3D12 device does, but it passed
vkGetDescriptorSetLayoutSupport's answer to size_bindings on every driver.
The device does not ask MoltenVK (d3d12_vulkan_device.cpp): MoltenVK refuses
every layout of maxPerSetDescriptors (1212) or more and runs the full set.
With its answer the set stayed at the default 256 indices of each dimension
and the test failed at "capacity > live_images" on a Mac instead of running.

Ask for the driver ID and skip the query on MoltenVK, as the device does.
On an Apple M5 Max (MoltenVK 1.4.2, macOS 27.2.1) the test now sizes each
array to 65536, reads 5000 live images of each dimension through their
indices, fills the rest and passes.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 10:34:40 +00:00
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/2441/head:github-bot/gh-2441'
git switch 'github-bot/gh-2441'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-2441'
git switch 'github-bot/gh-2441'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-2441'
git switch 'github-bot/gh-2441'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-2441'
git switch 'main'
git merge --squash 'github-bot/gh-2441'
git switch 'main'
git merge --ff-only 'github-bot/gh-2441'
git switch 'main'
git merge 'github-bot/gh-2441'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.