D3D12.X: a shadowed texture's source change is not a pending upload #1733
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!1733
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1733"
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?
@b3IKK on GitHub · 2026-11-24 20:01 UTC · original
b3IKK:d3d12x/recheck-shadowed-pending→main· +50 −6 · 1 files · 1 commits · openAddresses
XCL-BT-035from #1488.recheck_gpu_view_sourceswalks the active (by_res) and the shadowed textures, butrecheck_sourcemarked a changed-source texture pending for both. The upload inbefore_executewalks onlyby_res, so a shadowed texture'spendingwas never cleared:PENDING— the counter whose zero is the submit fast path — stayed above zero for the rest of the process, and everyExecuteCommandListsran the full scan. A texture that comes back into use takes its pending flag fromTable::insertanyway.This passes whether the entry is active, and marks pending only for one the upload walks.
What is in it
crates/xcl/src/hle/d3d12x/title_textures.rs:recheck_source(e, active); the shadowed pass ofrecheck_gpu_view_sourcespassesfalse; add testa_shadowed_texture_source_change_does_not_count_as_pending(fails with the flag ignored:a shadowed texture has no upload to be pending for) and update the two calls in the existinga_lazily_mapped_page_in_a_gpu_view_is_its_own_source.Tested
stable-x86_64-pc-windows-msvc), DXC 1.9.2609.5, debug (scripts/test.ps1) and release (scripts/smoke.ps1).\scripts\test.ps1(cargo build --workspace+cargo test --workspace -- --test-threads=4): 960 passed, 0 failed, 43 ignored (SKIPPED: the wave64 / direct-DXIL per-lane tests that need 64-lane hardware or a semantics mode this adapter refuses,no heap windows, andcannot disable the driver cache (Windows Developer Mode is required))cargo test -p xcl --lib title_textures: 14 passed, 0 failedRegression run
main (
1d027e5, clean tree, no local changes):PR (
44089a2, clean tree, no local changes):Not tested
recheck_sourcedirectly)AI use
XCL-BT-035against the upload walk andTable::insert, wrote the fix and test (and confirmed it fails without the flag), rebased onto1d027e5, ran the test suite andscripts/smoke.ps1regression runs with #677's title hashing, and drafted this PR description.@futurepro62 on GitHub · 2026-11-24 21:14 UTC · original · edited 2026-11-24 21:37 UTC
Full-suite run, since this PR has no test report yet. Tested exact head
e3c5085(on its basec160d86).Tested
cargo build --workspace, thenXCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4 --skip heap_window_out_of_memory_falls_back_to_the_switch_form --skip pso_measurement_compiles_an_exact_synthetic_record: 858 passed, 0 failed, 42 ignored. SKIPPED (no wave64):gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware.a_shadowed_texture_source_change_does_not_count_as_pending.XCL_ADAPTER=radeon),cargo test --workspace -- --test-threads=4: 859 passed, 0 failed, 42 ignored. SKIPPED:heap_window_out_of_memory_falls_back_to_the_switch_form(no heap windows).--skipon NVIDIA. Both fail on main7f7e768too, not because of this PR: underXCL_REQUIRE_GPU=mesh,runner::skip_testturns their skips into failures.heap_window_out_of_memory_falls_back_to_the_switch_formskips whenXCL_HEAP_WINDOWSis unset (#1651), andshaders::tests::pso_measurement_compiles_an_exact_synthetic_recordskips because Developer Mode is off on this PC (it cannot disable the driver cache). The AMD run does not setXCL_REQUIRE_GPU, so there both just print SKIPPED.Not tested
AI use
@b3IKK on GitHub · 2026-11-24 21:44 UTC · original
Rebased onto
1d027e5and re-ran both with the current scripts/smoke.ps1 (#677's hashed itle: line): 960 passed, 0 failed, 43 ignored.@DavidM1911 on GitHub · 2026-11-24 22:37 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~23 ignored.Thanks!
@JJAutoCompare on GitHub · 2026-11-25 03:43 UTC · original
PR #1733 verification on STOR-WINLAB
Tested the clean, detached PR head
44089a2db11e8d50ec9cf5ccf397b629c7bceda6. The shadowed-texture regression passed. The full workspace suite finished with 19 failures.Tested
DoublePrecisionFloatShaderOps=0). Host metadata listsd3d12SDKLayers.dllas absent. The focused run logged the real D3D12.X backend on the A770.cargo build --workspaceandcargo test --workspace --no-runsucceeded. Test runs used the shared Arc lock.cargo test -p xcl hle::d3d12x::title_textures::tests -- --nocapturereported 14 passed, 0 failed, 0 ignored, with one skip included in the passed count. The new regression verified that shadowed entries update their source without becoming pending and that active entries increment the pending count once. The lazy GPU-view mapping and real GPU mirror-upload tests passed. The placed-texture pixel test reportedtiled tier < 2and skipped its pixel check.cargo test --workspace --no-fail-fast -- --test-threads=4exited 101. Summed across 20 harness summaries inpr1733-suite.log: 941 passed, 19 failed, 43 ignored. The new regression passed again. The log contains 22SKIPPEDlines covering 17 unavailable wave64 cases, 3 refused wave32 per-lane forms, 1 driver-cache control skip, and 1 unavailable heap-window case. Skips give no coverage. The focused pixel-test skip is separate from the 22 suite log lines.Of the 18 library failures, 14 were compute pipeline creation errors (
0x80070057), including FP64 cases. Four shader tests reported result mismatches in fused FMA, sample LOD, FP16 high-half preservation, and wave reduction. The test-title E2E failed theRSSetDepthBiasXpixel check (blue where green was expected).Not tested
Main baseline, retail-title smoke runs, and AMD or NVIDIA adapters. Regression attribution requires a baseline comparison.
AI use
T3 Code / Codex (
gpt-6.2-sol,reasoningEffort: high) ran the build and verification. Coordinator #2 (T3 Code / Antigravity,gemini-4-neon) verified counts againstpr1733-suite.logand published this report.@upipibi on GitHub · 2026-11-25 18:14 UTC · original · edited 2026-11-25 18:20 UTC
NVIDIA test report for
44089a2(head as is, base1d027e5), for #1607's NVIDIA list. RTX 3070 8 GB (Ampere, 32-lane waves), driver 616.56, Windows 11, debug, aftercargo build --workspace:cargo test --workspace --no-fail-fast -- --test-threads=4 --skip hle::xaudio2: 951 passed, 0 failed, 43 ignored. The end-to-end title tests pass.mainat0829441(not currentmain) on the same machine, same command: 1263 passed, 0 failed, 46 ignored (the PR's base is older, so it has fewer tests).hle::xaudio2, because its tests fail or hang on this machine onmaintoo. The PR doesn't touch it.no wave64on this card, 3 f16/f32 forms the per-lane path refuses, 1 no heap windows, and 1 PSO measurement that needs Developer Mode to turn the driver cache off.AI-assisted (Claude Code, Claude Opus 5.5). Synthetic tests only; no title run.
@ClosetPie107 on GitHub · 2026-11-25 19:54 UTC · original
Independent AMD RDNA4 / Linux (RADV, native wave64) test report for head
44089a2db11e8d50ec9cf5ccf397b629c7bceda6(merged cleanly ontomain2898511).Hardware & environment
experimental-11.0-20261112),vkd3d-protonmasterec207194(3.2.0) +dxil-spirvb540c8a2+ relaxed-vtable patch (-Db_ndebug=true), DXVKv3.1.1-209, DXC1.9.2609.5, Rustx86_64-pc-windows-gnu(debug for tests, release for retail)Unit / GPU tests (
XCL_REQUIRE_GPU=wave64,XCL_DXC_DIR,VKD3D_CONFIG=ignore_shared_fence,--test-threads=1 --nocapture)hle::d3d12x::title_textures: 20 passed, 0 failed, 0 ignored (0 skipped)Combined retail sanity run (
main2898511+#2103,#838,#1250,#1733merged together;XCL_DIRECT_DXIL=1,XCL_TEXTURE_LEVEL_PAGES=1,XCL_PSO_WAIT_MS=50,XCL_SPLIT_MIDLIST_WAIT=0,XCL_COHERENT_MB=1024,VKD3D_CONFIG=ignore_shared_fence,XCL_PSO_PRELOAD=0,XCL_NETWORK=0, warm PSO cache)45,841translated draws,154,125dispatches (+4,634chained split-compute),47,255Opus packets (0 errors),13.2 GiBpeak VRAM (0 GTT spill),15.1 GiBpeak RSS (vs19.3 GiBon cleanmain2898511).268.4 son the same pre-existingmain0xc0000005TOCTOU race intitle_textures::subresources(copy_nonoverlappingreading0x793a08000) also reproduced on cleanmain2898511(161.8 s).Not tested
AI use
main, ran the tests and combined retail run under Proton on this machine, and drafted this report.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.