D3D12.X: mark GPU writes and map formats in ResolveSubresource #1553
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1563"
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 hajduzsolt on 2026-11-24T17:42:49Z.
Marks itle_textures destinations as GPU-written and translates console DXGI formats via device_x::pc_target_format in resolve_subresource_x and resolve_subresource_region_x. Part of #1489.
What is in it
Tested
Regression run
main:
PR:
Not tested
AI use
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-24T19:41:22Z.
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~22 ignored.Thanks!
Imported from ivall/xcl. Originally posted by JJAutoCompare on 2026-11-25T05:20:07Z.
Empirical test report (
27caa881)Tested PR #1563 at commit
27caa8812c01a1c76a4ea80d77868d7b4afcbab9.Hardware / environment
Windows x64 build 26200 on an AMD64 host (family 23, model 113, stepping 0). Rust
1.100.0 (0ef1bc386 2026-11-09)and DXC1.9.2609.5 (01b62ad47). The focused fixture ran outside the Arc wrapper withXCL_ADAPTER=NONE_CPU_ONLYandRUST_TEST_NOCAPTURE=1. Cargo used the default test profile with debug information and incremental compilation disabled.Commands and results
cargo test --workspace --no-runexited 0 and built the workspace test executables.cargo test -p xcl --lib hle::d3d12x::list_x::tests::resolve_subresource_notes_gpu_write_and_translates_console_format -- --exactexited 0. The focused log recorded 1 passed, 0 failed, 0 ignored, and 0SKIPPEDmarkers.Observed behavior
The fixture called both XCL resolve wrappers with a mock command-list vtable and two seeded destination entries. Both destinations were marked GPU-written. The mock PC callbacks captured format 28 (
R8G8B8A8_UNORM) for console format 115 and format 45 (D24_UNORM_S8_UINT) for console format 118.Not tested
The full GPU workspace suite and game smoke runs were omitted. The fixture covers wrapper bookkeeping and the format arguments forwarded to the mock callbacks. Actual D3D12 resolve execution and texture contents on a GPU remain unverified.
AI use
Verified with T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high). Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against
pr1563-focused.logand published.upstream-sync referenced this pull request2026-11-25 07:04:28 +00:00
Imported from ivall/xcl. Originally posted by b3IKK on 2026-11-25T18:03:51Z.
A merge note for rebasing onto
06c9f55(I hit this on my now-closed duplicate #1787):note_gpu_writechanged shape onmain— it setsmarkedinside a block and drops theTEXTURESlock beforeSTREAM_RECHECK, andrelease's ABA guard now has to coverextra_active,sparesandfirst. The rest of the two-file change applies as-is; the branch built and the suite/smoke pair passed there.AI use: OpenCode, Claude Fable 5.2 rebased the duplicate, resolved that conflict and wrote this.
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-26T05:48:33Z.
Re-verification on RTX 3060 Ti (Windows 11): still a merge conflict with current
mainon the new head — needs another rebase before it can be tested.Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-12-01T02:33:10Z.
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-01T06:07:58Z.
Triage (#1607) – head
fbf6b95Same change as #1787 (D90), which is closed unmerged. Main has since moved part of it in another form:
resolve_subresource_x/resolve_subresource_region_xnow callnote_texture_write(this, dst, dst_sub), so the addedtitle_textures::note_gpu_write(dst)repeats that on rebase and should be dropped.The format mapping (
device_x::pc_target_formaton the resolve format, e.g. console 118 -> 45, 115 -> 28) is still not on main, and is the part worth keeping.The branch conflicts with main and needs a rebase.
Recommendation: keep open.
AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.