D3D12.X: XCL_DEPTH_PLANE_NOW and XCL_TWIN_TRACE for depth twins in UAV #3481
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3481"
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 Foniass on 2026-11-30T00:01:18Z.
Draft, stacked on #3480; only the top commit (
ae2976f6) belongs here.The switch and the trace that came with raylitebull's amd-dev
0e68d606, split from #3480 because CONTRIBUTING wants diagnostics and env switches on their own:XCL_DEPTH_PLANE_NOW=0turns #3480's following of draws off (on by default): the copies are made around the title's transitions only, as before.XCL_TWIN_TRACE=<height>logs, for depth buffers of that height (736: a mirror's view in the retail title), the first 600 lines of:A world run with it shows whether the title takes #3480's path.
What is in it
crates/xcl/src/hle/d3d12x/depth_uav.rs,list_x.rs,real.rs: the switch and the trace lines (the R24G8 copy pass's lines are left out, as main has no R24G8 twin)Tested
cargo test -p xcl --lib depth_uav: 23 passed, 0 failedcargo test --workspace --no-fail-fast -- --test-threads=4onae2976f6, rebased on main86e86fcb(5070 Ti): 2893 passed, 0 failed, 51 ignored. SKIPPED: 28 notices, almost allno wave64(the others: no D3D12 debug layer, heap windows off, driver cache needs Developer Mode). The narrower runs listed here are from before the rebase.Regression run
main:
this PR:
Not tested
XCL_TWIN_TRACE=736)XCL_DEPTH_PLANE_NOW=0is set in the environment of the test runAI use
0e68d606.🤖 Generated with Claude Code
Imported from ivall/xcl. Originally posted by Foniass on 2026-12-02T08:05:57Z.
Closing together with #3480, whose diagnostics this adds.
AI-assisted: Claude Code (Claude Opus 5.5), posted by Foniass.
Pull request closed