D3D12.X: a resolve marks its destination and names the PC's format #1787
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!1787
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1787/head"
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:44 UTC · original
b3IKK:d3d12x/resolve-subresource-gpu-write→main· +58 −0 · 2 files · 1 commits · closed without mergingAddresses
XCL-BT-031from #1488.resolve_subresource_xandresolve_subresource_region_xforwarded the console's format code to the PC'sResolveSubresourceas it was, and neither marked the destination withtitle_textures::note_gpu_write, whichCopyResourceand the copy hooks already do. Two consequences:116120are its depth family's codes and the PC reads them as video formats (116=P208, ), so a resolve into such a view's target was refused or resolved as the wrong format;This translates the format with
device_x::pc_target_format(the resolve format is the target's view format, like an RTV's) and marks the destination GPU-written, as the copies do.What is in it
crates/xcl/src/hle/d3d12x/list_x.rs:resolve_format()(pc_target_format) andtitle_textures::note_gpu_write(dst)in both resolve hooks; testresolve_subresource_marks_the_destination_and_translates_the_formatdrives both hooks through a fake list vtable.crates/xcl/src/hle/d3d12x/title_textures.rs: a#[cfg(test)]NOTE_GPU_WRITE_CALLScounter (no production change) so the hook's marking is observable.Evidence it fails without the fix (each half independently):
assertion 'left == right' failed: the console's D16S8 family is the PC's D24S8 on a resolve left: [116, 116] right: [10, 10]note_gpu_write:assertion 'left == right' failed: both resolves mark the destination GPU-written left: 0 right: 2Since the last push: rebased onto
main06c9f55. The conflict was innote_gpu_write, wheremainhad moved themarkedflag and the lock scope;main's structure is kept, with this PR's call counter inside it.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): 1266 passed, 0 failed, 46 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 list_x: 29 passed, 0 failedRegression run
main (
426a5a7, clean tree, no local changes):PR (
cbc1a4f, clean tree, no local changes):(The main block is
426a5a7, an ancestor of the currentmain, from the same machine and data folder.)Not tested
AI use
main06c9f55, resolved the conflicts, ran the suite and thescripts/smoke.ps1pair at the head above.@b3IKK on GitHub · 2026-11-24 21:18 UTC · original
Rebased onto
e9e94ce(which brought #677's anonymised itle: line into scripts/smoke.ps1) and re-ran both: 893 passed, 0 failed, 42 ignored; the blocks above are from the new script.@futurepro62 on GitHub · 2026-11-24 21:28 UTC · original · edited 2026-11-24 22:20 UTC
Full-suite run, since this PR has no test report yet. Tested exact head
f47659a(on its basee9e94ce).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: 891 passed, 0 failed, 42 ignored. SKIPPED (no wave64):gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware.resolve_subresource_marks_the_destination_and_translates_the_format.XCL_ADAPTER=radeon),cargo test --workspace -- --test-threads=4: 893 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_recordskipped because Developer Mode was off. Developer Mode was turned on before the AMD run, and therepso_measurement_compiles_an_exact_synthetic_recordran and passed.Not tested
AI use
@DavidM1911 on GitHub · 2026-11-24 23:36 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. (Intermittent single-test flake under parallel scheduling; clean on single-threaded rerun — same flake seen on unmodifiedmain.)Thanks!
@JJAutoCompare on GitHub · 2026-11-25 04:25 UTC · original
XCL PR #1787 verification
Head
f47659a701eb0b0ea23db9c08f6026e005064f4a. Clean detached checkout before and after the run. The diff changescrates/xcl/src/hle/d3d12x/list_x.rsandcrates/xcl/src/hle/d3d12x/title_textures.rs.STOR-WINLAB ran Windows 11 Enterprise Evaluation x64 build 26200, AMD Family 23 Model 113 (~3.9 GHz), Intel Arc A770 (16,258 MiB reported VRAM) with driver 32.0.101.9175, DXC 1.9.2609.5, and rustc 1.100.0 (0ef1bc386, x86_64-pc-windows-msvc). The dev and test profiles were unoptimized with debug info and incremental compilation disabled.
Tested
cargo build --workspaceandcargo test --workspace --no-runboth exited 0 outside the Arc mutex. Test compilation produced 19 executables.cargo test -p xcl --lib hle::d3d12x::list_x::tests::resolve_subresource_marks_the_destination_and_translates_the_format -- --exactwithXCL_ADAPTER=NONE_CPU_ONLYoutside the mutex yielded 1 passed, 0 failed, 0 ignored, 0 skips. Fake COM callbacks received 10 from both resolve methods for input 116, and 28 for input 28 from ResolveSubresource. The GPU-write notification count increased by two for the first two calls. DXGI value 10 is R16G16B16A16_FLOAT. The assertion message calls it D24S8 (DXGI 45).cargo test --workspace --no-fail-fast -- --test-threads=4ran once insideInvoke-ArcTest.ps1withXCL_ADAPTER=A770andRUST_TEST_NOCAPTURE=1. It exited 101. Summing all 20 result lines (19 executables and one doctest harness) gives 875 passed, 18 failed, 42 ignored. The resolve test passed again.Workspace failures and skips
SKIPPED. Reasons were missing wave64 (2), tiled tier below 2, driver cache control unavailable, debug layer or SDK layers unavailable (2), and heap windows unavailable. These skips provide no coverage. Optional fixture and audio paths also reported early returns outside that count.Not tested
Matched
mainbaseline, retail-title smoke, hardware resolve output and subsequent CPU upload behavior, AMD and NVIDIA. Failure attribution remains open.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 against
pr1787-suite.logand published.@throny on GitHub · 2026-11-25 17:00 UTC · original
Two contributors checked independently and found that this PR makes the same change as #1563 (for #1488): #1607, group D90. They suggest keeping #1563. If you agree, closing this PR or joining the other one would save the maintainers a review. If the two differ in a way the checks missed, a note in #1607 helps.
This is a hint from the community triage in #1607, not a maintainer decision.
AI use: Claude Code (Claude Opus 5.5), posted by a script from the #1607 table.
@b3IKK on GitHub · 2026-11-25 18:03 UTC · original
Closing in favour of #1563 (opened 17:42Z, before this one at 20:44Z), which the #1607 triage also recommends: both change
list_x.rsandtitle_textures.rsto mark a resolve's destination and name the PC's format. This branch was rebased onto06c9f55; the conflict was innote_gpu_write, wheremainmoved themarkedflag under a block — that resolution is noted on #1563 so the earlier PR can pick it up.AI use: OpenCode, Claude Fable 5.2 rebased and tested this branch, compared it with #1563 and wrote this.
@DavidM1911 on GitHub · 2026-11-26 06:19 UTC · original
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.Pull request closed