mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:50:51 +01:00
[PR #2406] [MERGED] bindless: size every sampled dimension alike and name a full array as its own refusal (RT-BINDLESS-DIMENSION-LIMITS) #2406
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#2406
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/2406
Author: @aslan2142
Created: 11/26/2026
Status: ✅ Merged
Merged: 11/26/2026
Merged by: @aslan2142
Base:
main← Head:bindless-dimension-limits📝 Commits (1)
7d5d820bindless: size every sampled dimension alike and name a full array as its own refusal (RT-BINDLESS-DIMENSION-LIMITS)📊 Changes
8 files changed (+629 additions, -44 deletions)
View changed files
📝
docs/d3d12_vulkan.md(+19 -6)📝
runtime/CMakeLists.txt(+28 -0)📝
runtime/shims/d3d12_vulkan_device.cpp(+32 -15)📝
runtime/src/vulkan_bindless.h(+45 -14)📝
runtime/test/bindless_sizing_test.cpp(+46 -8)➕
runtime/test/glsl/cs_bindless_dimensions.comp(+30 -0)➕
runtime/test/vk_bindless_dimensions_test.cpp(+421 -0)📝
runtime/test/vk_bindless_test.cpp(+8 -1)📄 Description
The bindless set gave 1D and 3D images 4,096 indices whatever the device holds. World runs fill the 1D array a few minutes in, and from then on every new 1D T# reads zeros. This sizes every sampled dimension alike and reports a full array under its own reason.
Claimed in the coordination issue as: RT-BINDLESS-DIMENSION-LIMITS
What was wrong
size_bindingsgrew 2D images to 65,536 but 2D arrays only to 16,384 and 3D and 1D to 4,096 (max_*_imagesinruntime/src/vulkan_bindless.h).forget_image, then the deferredbindless_slotrelease, thenremove_image).What changes
max_images, 65,536).hash_bindless_layouthashes the counts).gta6rt --precompile-pipelines/ the pipelines stage) has to be rebuilt once.BindlessSet::image_refusalsays whyadd_imagereturned 0: no array, array full, or storage range full.bind_title_imagenow counts:1D, not just3) and how many of the textures holding indices are still registered at their address.docs/d3d12_vulkan.mdsection 5 has the new sizes and reasons.Tests
bindless_sizing_test(CPU): RADV's and llvmpipe's limits give every sampled dimension 65,536; onmain1D and 3D stop at 4,096. A short budget is shared alike by the three dimensions.vk_bindless_dimensions_test(new, GPU, GLSL shader):mainit fails at "1D: 4096 indices in the set".cteston llvmpipe: 114 of 114 passed (3 skipped).main2d43417d4.vk_bindless_dimensions(passes).vk_bindless_ps_texandvk_bindless_ps_imgatomic: their index-space case assumed the first 1D index is 1, true only while the 1D array was as short as its storage arrays. The case now checks every index once, and that indices above the storage arrays go first. All fourvk_bindless*tests pass.main(presentation under xvfb, host DXGI and similar).tests/test_ci_registration.py,tests/test_ctest_registration.py,tests/test_docs_*.py,tests/test_text_write_line_endings.pyandscripts/check_no_game_data.pyon the changed files pass.World run
RX 7900 XTX, RADV (Mesa 26.3.1), Wine, from a local build of
mainfac8b4bb9with this change and two others (RT-VSHARP-SLOT-RECORDS and #2230):bindless set: 65536 2D images, 4096 samplers, 65536 2D-array, 65536 3D, 65536 1D, 4096 storage indices in 2D.a bindless image array is fullline, and "no view for the T#'s format or range" stays at a handful per window.mainhere (three of nine earlier runs), so it is not shown to come from this change, but the run stopped before the point (about 340 s) where the 1D array used to fill. So the run shows no regression and the new sizes, not yet the picture after the old fill point.Not tested
bindless_sizing_test).AI-assisted (Claude Code, Claude Opus 5.5 and Claude Fable 5.2)
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
[PR #2406] bindless: size every sampled dimension alike and name a full array as its own refusal (RT-BINDLESS-DIMENSION-LIMITS)to [PR #2406] [MERGED] bindless: size every sampled dimension alike and name a full array as its own refusal (RT-BINDLESS-DIMENSION-LIMITS)