lanes: pin the descriptor limit the reclaim self-test counts on #178
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/brcly--TuxBox!178
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/178/head"
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?
@3kynox on GitHub · 2026-11-25 16:37 UTC · original
3kynox:pr-reclaim-selftest-limit→main· +8 −1 · 1 files · 1 commits · merged 2026-11-25 17:58 UTCSummary
lanes-selftest-descriptor-reclaim(#172) fails onmainon this host:The scenario counts on a resident limit of 1,000,000 descriptors. Its last step pins 63 tables of 16,384 descriptors (1,032,192) in open lists and expects
Close()to returnE_OUTOFMEMORY.CreateDescriptorHeapuses the host'sMaxViewDescriptorHeapSizewhen that is above 1,000,000 (runtime/d3d12/src/device/resources.rs). On such a host the 63 tables fit and nothing overflows.The provider already has a cap for the resident limit,
TUXBOX_DESCRIPTOR_HEAP_LIMIT, read when the heap is created. The scenario now sets it to 1,000,000 around its ownCreateDescriptorHeapcall and clears it afterwards. It then pages the same way on every host, and a later scenario in the same process (--selftest all) is not affected.What I saw on this host, with
mainat9ca0060:TUXBOX_DESCRIPTOR_HEAP_LIMIT=1000000exported it passes;I have not read the value this host reports for
MaxViewDescriptorHeapSize. The three results above are what points at it.Verified on Lanes
python tuxbox.py checkpassed on this branchThe scenario is
descriptor-reclaimitself: on this host it fails without the change and passes with it.GPU, driver and backend: NVIDIA GeForce RTX 4070 Ti SUPER (
10de:2705), driver 595.112.07, Proton Experimental 11.0-20261112. NixOS, Linux 7.2.11, Intel Core i9-12900K, Hyprland (Wayland).The check ran on this commit (on
7b22d71) with--proton,--prefixand--windows-dxc(Microsoft's x64 DXC 1.8.2505.1): 64 of 64 guest checks and all 17 regression cases pass. Without the change that scenario fails on this base too: it is the one failure in the check of #177.Checks
lanes-xbox-replaystill passes its import check:SetEnvironmentVariableWresolves to a Windows core API set, so Lanes stays inside its Xbox title profile.No evidence JSON changed.
@postblink on GitHub · 2026-11-25 17:01 UTC · original
Same failure on a second NVIDIA host, and the same result with this change.
NVIDIA GeForce RTX 5080 (
10de:2c02), driver 620.73.04, Proton Experimental 11.0-20261112, CachyOS, KDE Plasma (Wayland). Full defaultpython tuxbox.py verifyon the GPU:7b22d71(main)lanes-selftest FAIL descriptor-reclaim: expected E_OUTOFMEMORY on unsubmitted pin overflow, got 0x000000000705a9d(this branch)On the host limit you hadn't read: the NVIDIA Vulkan driver here reports
maxDescriptorSetUpdateAfterBindSampledImages = 1048576(RADV on the same machine reports 8388606). If theMaxViewDescriptorHeapSizethe host D3D12 reports follows that limit, the heap gets 1,048,576 resident descriptors instead of 1,000,000, and the scenario's 63 × 16,384 = 1,032,192 pinned descriptors fit, soClose()succeeds. I read the Vulkan limit, not the D3D12 value itself, so treat that link as likely rather than measured. It does explain why the scenario passes on hosts that report 1,000,000 or less and fails here, and why pinning the limit in the scenario fixes it.@copilot-pull-request-reviewer[bot] on GitHub · 2026-11-25 16:45 UTC · original · reviewed
🔵 Needs a closer look
The review evidence is incomplete because one or more reviewer sessions failed.
No open issues 🎉
What changed in this PR
This PR makes the Lanes descriptor-reclaim self-test use the resident descriptor limit its overflow checks expect, avoiding failures on hosts with larger descriptor capacities.
Changes:
TUXBOX_DESCRIPTOR_HEAP_LIMITto1000000before creating the test heap.examples/lanes/selftest.cppReview effort: Balanced