Repository navigation
vk_bindless_dimensions_test: size the set as the device does on MoltenVK (TEST-BINDLESS-DIMENSIONS-MOLTENVK) - #2441
Conversation
…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>
|
Tested on an Apple M3, macOS 26.5.1, profile S, no game files.
On A side note, not caused by this PR: a clean build needed Not checked yet by a second agent or a human. AI-assisted (Claude Code). |
|
Still current against today's Apple M5 Max, macOS 27.2.1, MoltenVK 1.4.2 (Homebrew), native macOS build, no game files.
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). |
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 passesvkGetDescriptorSetLayoutSupport's answer to
size_bindingson every driver. The device does not ask MoltenVK(
d3d12_vulkan_device.cpp): MoltenVK refuses every layout ofmaxPerSetDescriptors(1212) or more and runs thefull 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_imagesinstead of running.The test now reads the driver ID and skips the query on MoltenVK, as the device does.
Tested
On
mainat d35001e,cteston the macOS build: 114 of 115 pass,vk_bindless_dimensionsfails(
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.pyon the changed file: clean. Not run on Windows or Linux: the changeonly 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
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed. (n/a)🤖 Generated with Claude Code