d3d12: consume descriptor tables at draws and dispatches #512
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/512"
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?
Imported from brcly/TuxBox. Originally posted by MathiewMay on 2026-11-29T18:15:08Z.
Summary
Bind descriptor tables as logical bases and allocate, pin and materialize records at the command that actually consumes them. Binding alone must not consume an unused table or its declared tail. Preserve corroborated shader footprints even when compute or raster roots already match, including compute pipeline streams; replay logical bindings after native-list splits.
Inline scene descriptors are materialized independently at their actual offset. Native ray dispatch and bundle consumers retain conservative declared-span validation. Unknown metadata stays conservative. Ordinary invalid consumers are skipped without dropping later work or queue-label writes; actual pin exhaustion still makes
Closefail withE_OUTOFMEMORY. Stand-ins do not inherit the original shader's corroborated footprint.Regression proof and validation
Results are for
81d7efab3c16cf47ff07914e66f90d4bc810fd33on upstreamfd636d09153029330260c4fccff77fb147c81fa5.descriptor-tail output or guard differs; both raster cases failtexel 0,0 is 0. Guests, fixtures, compiler helpers and every other provider are identical and SHA-checked. This is not a compile/setup failure.python tuxbox.py check --no-gpu: all seven groups pass, using an isolated candidate Cargo target. Windowscargo check ... --testsalso passes.device::placement::check_pool::tests::check_chunk_runs_xmem_access_only_on_caller_threadassertion (left: 128,right: 64). This baseline failure is not counted as a passing native suite.Commands below use placeholders for immutable, source/helper/provider-SHA-bound local artifacts. Wrappers run sequentially in an authenticated hidden/offline display using the stopped fixture prefix; no prefix copies, cache/save replacement or retail launch:
GPU/backend: AMD Radeon RX 9070 (
1002:7550, RADV GFX1201), Mesa 26.2.7, GE-Proton11-14 on Linux. NVIDIA validation is still missing and required before merge. No title shaders, captures or diagnostics are included; this PR makes no retail performance or complete scene/AS-ordering claim.Additional all-three integration on refreshed main
A separate combined run of #512, #514 and #518 on
2d6dc33838f66c0784d539567628c07158351115(private integration08c5a6bf) used new per-artifact compiled targets. It is not an isolated run of this PR. All 7 code groups, 16 targeted checks, 66 translator groups, 133 homebrew checks and 22 provider controls pass. Swapping only D3D12 back to that clean main gives exactly seven expected descriptor/mirror reference-readback failures, while nine other targeted controls pass.Native results are 449 passed / 4 failed / 8 ignored, versus pristine refreshed main's 431 passed / 4 failed / 8 ignored. The exact failure sets match; neither native suite is described as passing:
device::placement::check_pool::tests::check_chunk_collects_all_changes_and_merges_profile— 128 vs 64.device::placement::check_pool::tests::check_chunk_reuses_cached_runs_and_retries_active_mapping_state— 32 vs 0.device::placement::check_pool::tests::check_chunk_runs_xmem_access_only_on_caller_thread— 128 vs 64.device::placement::guest_read::tests::section_watched_texture_caches_runs_and_invalidates_on_watch_or_mapping_change— 0 vs 1.The first combined provider-control attempt stopped after one passing case because newer main requires its constant-buffer helper to be prebuilt. Building
bash tools/build_frosty_cbv_layer.sh build/frosty-cbv-layerfrom the frozen sources into new private build output, without replacing a prior helper or changing frozen sources, made a fresh complete 22/22 run pass. The full native scene-capable runner then verified the four-failure baseline match. NVIDIA remains untested.Imported from brcly/TuxBox. Originally posted by NickStallman on 2026-11-29T19:52:32Z.
NVIDIA run: full
python tuxbox.py checkpasses on an RTX 5090 (10de:2b85, 620.70.10, GE-Proton11-14, Linux).main2d6dc338(control, same card and prefix, just before)81d7efabmerged into2d6dc338(clean merge)The five extra are this PR's:
lanes-descriptor-tail,-original,-stream,-raster,-raster-original. No GPU errors in the kernel log.windows-dxcwas 1.8.2505.1.Not run: the native D3D12 unit tests (not part of
check), the negative control with upstream's provider, and the game. I'm running #514 and #518 the same way next.Imported from brcly/TuxBox. Originally posted by DrArroway on 2026-11-29T21:41:15Z.
@MathiewMay Quick follow-up on the 4
device::placement::check_pool/guest_readhardware unit-test failures noted here (and on#514/#518): they came from#495(check_sequentialclearingWRITTENinWatch::rearmbefore checkingwatch_cacheable(),check_mips_speculativedouble-digesting first mip uploads, andcheck_chunk_reuses_cached_runs_and_retries_active_mapping_statenot committing digests between calls).Opened
#550with the fix —tuxbox-d3d12 --libis back to 435 passed / 0 failed on both RX 6900 XT and AMD Raphael iGPU.