Repository navigation
Conversation
ResolveSubresource / ResolveSubresourceRegion forwarded the console's format code as it was - its 116-120 are the console depth family's, and the PC reads those codes as video formats - so a resolve into such a view's target was refused (or resolved the wrong depth format). Neither marked the destination with title_textures::note_gpu_write, which CopyResource and the copies already do: a kept-in-step texture the GPU had resolved into was uploaded over by the next CPU write scan, losing the resolved image. Translate the format with device_x::pc_target_format (the target's view format) and mark the destination as written by the GPU. Assisted-by: OpenCode (Gemini 4 Neon)
4cd6ddd to
f47659a
Compare
|
Full-suite run, since this PR has no test report yet. Tested exact head Tested
Not tested
AI use
|
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
XCL PR #1787 verificationHead 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
Workspace failures and skips
Not tested Matched 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 |
Addresses
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: 2Tested
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): 893 passed, 0 failed, 42 ignored (SKIPPED: 2no wave64; 1no heap windows; 1cannot disable the driver cache (Windows Developer Mode is required))cargo test -p xcl --lib list_x: 29 passed, 0 failedRegression run
main (
e9e94ce, clean tree, no local changes):PR (
f47659a, clean tree, no local changes):Not tested
AI use
XCL-BT-031against the resolve and copy hooks, wrote the fix and test (and confirmed each half fails without it), rebased ontoe9e94ce, ran the test suite andscripts/smoke.ps1regression runs with Scripts: smoke blocks print the game folder's name #677's title hashing, and drafted this PR description.