| Age | Commit message (Collapse) | Author |
|
On MoltenVK (1.4.2, 1.4.3) the check sampled zeros: vkGetDescriptorSetLayoutSupport there accepts only layouts
of fewer than maxPerSetDescriptors (1212) descriptors, so size_bindings keeps the default 4096 2D images and
1024 samplers, and the test's 5001st view and 2100th sampler were refused as the arrays filled. MoltenVK does
create and sample a 65536-image, 4096-sampler set correctly (a native reproduction, and the whole test passes
under Wine with growth forced), so that is MoltenVK's to fix; the runtime keeps following the driver's answer.
The test now asks the set how much room it has (rt::d3d12::bindless_room, from BindlessSet::free_images and
free_samplers). Where the set holds the full counts nothing changes. Where it holds fewer, the test fills each
short array to its last index, checks the last view through the last sampler gives the texture, and that one
more view and sampler are refused and read as the fallbacks. The device logs at startup when its set holds
fewer samplers than a full shader-visible sampler heap. bindless_sizing_test gets MoltenVK's limits;
vk_bindless_test checks the free counts.
|
|
d3d12_descriptor failed every run on an Intel UHD 770 (101.7092) for two
reasons, both from the driver taking an option the Vulkan spec allows:
- VK_EXT_image_view_min_lod: the driver selects levels with
minLodInteger = floor(minLod), the spec's "alternative", so a 0.75 or
1.75 ResourceMinLODClamp read one mip too detailed. On Intel integrated
GPUs bind_image now passes the clamp rounded to the nearest level,
which point mip filtering selects exactly.
LEONIDA_MIN_LOD_INTEGER=1/0 forces it either way.
- The bindless set stayed at its default counts (4096 2D images, 1024
samplers) because the driver reports maxPerSetDescriptors = 6159 with
every other limit at 1048576. size_bindings now takes an optional
layout_supported callback, and past maxPerSetDescriptors the device
asks vkGetDescriptorSetLayoutSupport about the grown layout.
bindless::SetLayout describes set 0 once for create_layout and that
query.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
|
Set 0's 2D, sampler and storage arrays were constexpr (4096 2D images, 1024
samplers, 256 per storage array): one full D3D12 sampler heap (2048) did
not fit and bind_image/bind_sampler fell back. They are now sized once, when
the device creates the set, from the update-after-bind or plain limits:
today's sizes as the floor, then samplers up to min(4096,
maxSamplerAllocationCount - 64), 2D images up to 65536, storage up to 4096.
Sizing at creation keeps the set layout fixed for the pipelines built on it.
|