Skip to content

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

Open
lorentsob wants to merge 1 commit into
ProjectLeonida:mainfrom
lorentsob:bindless-dimensions-moltenvk
Open

lorentsob wants to merge 1 commit into
ProjectLeonida:mainfrom
lorentsob:bindless-dimensions-moltenvk

Conversation

@lorentsob

Copy link
Copy Markdown

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 d35001e, 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

…nVK (TEST-BINDLESS-DIMENSIONS-MOLTENVK)

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 <noreply@anthropic.com>
@Tauwni

Tauwni commented Nov 28, 2026

Copy link
Copy Markdown
Contributor

Tested on an Apple M3, macOS 26.5.1, profile S, no game files. main 1a441d336 with this PR merged in, native macOS build.

Driver vk_bindless_dimensions
MoltenVK 1.4.2 (Homebrew) passes, 3/3 runs (MEASURED, 3 runs)
MoltenVK main 5189f8de with a local fix for KhronosGroup/MoltenVK#2573 passes, 3/3 runs (MEASURED, 3 runs)

On main without this PR the same test fails on MoltenVK 1.4.2 at vk_bindless_dimensions_test.cpp:291, 3/3 runs, as described in #1608 (#1608 (comment)).

A side note, not caused by this PR: a clean build needed generated/ created by hand first (Failed to open file: .../generated/cs_bindless_dimensions.spv), which #2096 fixes.

Not checked yet by a second agent or a human.

AI-assisted (Claude Code).

@lorentsob

Copy link
Copy Markdown
Author

Still current against today's main: checked again on 28 November, on main 612fd87e7 with this branch merged in (no conflicts, still +8/-1 in runtime/test/vk_bindless_dimensions_test.cpp only).

Apple M5 Max, macOS 27.2.1, MoltenVK 1.4.2 (Homebrew), native macOS build, no game files.

Tree vk_bindless_dimensions
main 612fd87e7 fails 3/3 at vk_bindless_dimensions_test.cpp:291 (capacity > live_images)
main 612fd87e7 + this PR passes 3/3

That matches @Tauwni's independent run above on an M3. The three workflows are still waiting for "Approve and run workflows", since this is my first pull request here.

AI-assisted (Claude Code).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants