d3d12: use final pixel footprints for mesh table mirrors #518
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/518"
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:58:53Z.
Dependency and summary
Depends on #512's consumption-time descriptor materialization. This branch is stacked on its
81d7efabprerequisite; the pixel-only commits are83eabde9,97d56646and0583cc65. Target remainsmain.Refine a mesh-rewritten table's pixel-only mirrors from the PSV of the final portable pixel stage actually sent to the driver, after stage selection/redirection. Original console resource metadata need not describe that translation. A resource-free final pixel stage consumes no mirror descriptors; sparse accesses materialize only their actual physical intervals, not the poisoned holes between them. Existing non-mirror footprints are preserved. Unknown/malformed stage, resource or root metadata remains conservative.
Regression and validation
The independent
mesh-descriptor-emptyandmesh-descriptor-sparsehomebrew scenarios poison unused mirror records and compare every output pixel with a reference. The sparse fixture deliberately lacks the user-data corroboration needed to trust its original console register names: its final portable PSV, not its original PSV, must determine the access. Null pipelines and missing worker translations are refused.97d56646, using the exact #512 native prerequisite: both new GPU output comparisons fail, while all nine other raster gates pass. This is not a compilation/setup failure.python tuxbox.py check --no-gpu: all seven groups pass; Windows native-test typecheck also passes. Nine new Rust controls cover empty/sparse accesses, array intersections, register spaces, CBVs/UAVs, appended offsets, duplicates and conservative malformed/unknown metadata.0583cc653747f4a2cf91067c736e77372f39cff4: 11/11 raster gates pass, including both independent poisoned-mirror output comparisons.fd636d09device::placement::check_pool::tests::check_chunk_runs_xmem_access_only_on_caller_threadfailure (left: 128,right: 64); it is disclosed, not counted as passing or changed here.These results are the exact pixel stack on pinned
fd636d09, with prerequisite81d7efab. The additional all-three run on refreshed main is reported separately below, not counted as this PR's isolated run.Validation correction: an initial shared compiled target silently supplied the previous scene DLL to a pixel artifact; identical provider hashes and a 0.01-second non-compiling build exposed it. That artifact was retained but rejected as pixel-source evidence. The accepted build uses new per-artifact native/compiler targets, verifies fresh D3D12 compilation and SHA-binds source, compiler helpers, guests and providers. Temporary tracing stays on a separate unpublished diagnostic branch and is not in this PR or the accepted uninstrumented binary.
Commands use placeholders for immutable local artifacts. The GPU wrappers run sequentially in an authenticated hidden/offline display with the stopped fixture prefix; no prefix copies, cache/save replacement, existing-cache cleanup 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 retail performance claims are included.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-29T20:08:20Z.
NVIDIA run: full
python tuxbox.py checkpasses on an RTX 5090 (10de:2b85, 620.70.10, GE-Proton11-14, Linux,windows-dxc1.8.2505.1).main2d6dc338(control, same card and prefix)0583cc65(so with #512) merged into2d6dc338(clean merge)The seven extra are #512's five and this PR's
lanes-mesh-descriptor-emptyandlanes-mesh-descriptor-sparse. No GPU errors in the kernel log.Not run: the native D3D12 unit tests (not part of
check), the prerequisite control, and the game.