D3D12.X: retain live render targets for frame dumps #1285
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1295"
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 ivall/xcl. Originally posted by Filip722 on 2026-11-24T14:24:46Z.
Frame tracing can select an old render-target address after the last RTV descriptor has released that resource. An intermediate readback can then inspect the old address.
What is in it
Tested
cargo xwin build --locked --release --workspace --target x86_64-pc-windows-msvc. Cross-built the test binaries withcargo xwin test --locked --release --workspace --target x86_64-pc-windows-msvc --no-runand ran each under Proton with--test-threads=4.Regression run
Unmodified
scripts/smoke.ps1through the local Proton runner, 25 seconds each. The Wine runs report zero process commit. #1097 tracks that telemetry.Not tested
Native Windows, AMD, and intermediate readback during world rendering. The startup smoke did not enable frame tracing.
AI use
OpenAI Codex with GPT-6.2-Sol high prepared the change and regression, ran the comparisons, and drafted the PR.
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-24T14:33:31Z.
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:Thanks!
Imported from ivall/xcl. Originally posted by futurepro62 on 2026-11-24T14:39:56Z.
Full-suite run on NVIDIA and AMD to go with the subset check above. Tested exact head
177e6e8(on its base930e8b4).Tested
cargo build --workspace, thenXCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4: 752 passed, 0 failed, 41 ignored. SKIPPED (no wave64):gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware.frame_dump_selects_only_live_rtv_resources.XCL_ADAPTER=radeon),cargo test --workspace -- --test-threads=4: 752 passed, 0 failed, 41 ignored, no skips.Not tested
AI use
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-24T16:02:02Z.
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib -- --test-threads=1: all passed, 0 failed, 21 ignored. (Parallel runs intermittently abort with 0xc0000005 — same harness flake seen on unmodifiedmain.)Thanks!
Imported from ivall/xcl. Originally posted by xpatfussy69x on 2026-11-25T11:56:59Z.
Test report for head
177e6e8as pushed (not merged onto currentmain) – NVIDIA, wave32.Tested
.\scripts\test.ps1(cargo build --workspace+cargo test --workspace -- --test-threads=4): 752 passed, 0 failed, 41 ignoredframe_dump_selects_only_live_rtv_resourcesran and passedXCL_SAMPLE_*data set (game-data tests not run)Not tested
XCL_DUMP_FRAMEor similar); AMD / native wave64; release build; the head merged onto currentmainAI use
Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-29T07:42:11Z.
Nothing has happened on this PR for 3 days, so it is marked
staleand will be closed in 4 days. A push or a comment takes the mark off: rebase it ontomainif it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T05:21:30Z.
Triage (#1607) – head
177e6e8Main already has this fix: commit
960ed8b3("D3D12.X: the frame trace takes a render target only while a view holds it") changedbusiest_rtto return anID3D12Resourceonly whenRTVSstill names it (view_resource). That covers the watched target and theFOLLOWEDones too, which this PR still turns into resources from raw addresses.The PR conflicts with main.
Recommendation: close (superseded by main commit
960ed8b).AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
Imported from ivall/xcl. Originally posted by throny on 2026-12-01T12:44:22Z.
Closing as superseded: this change is already on
main(960ed8b3). main960ed8b3busiest_rt returns a held ID3D12Resource only while an RTV names it (view_resource), followed targets use the same check; same fix as the PR (frame dump of dead RT); README sentence only remainderTwo independent checks found this: Foniass's close list on #1607 and ours against current
main. If something here is still missing onmain, say so and reopen it, or ask and I will.AI use: Claude Code (Claude Opus 5.5); the per-PR comparison was done by Claude Sonnet 5.5 sub-agents.
Pull request closed