XG: check the tiled source before copying a subresource #986
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/992"
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 Marukooh on 2026-11-24T10:04:13Z.
Stacked on #976 and #684. Only the top commit,
3c36945, belongs to this PR.CopyFromSubresourcenow checks the backing source range before detiling a volume or array slice. An unreadable source returnsE_INVALIDARGbefore modifying the destination. This addresses the source check noted in the review of #684.What is in it
Tested
Windows GNU Release cross-build with Rust 1.98.0 on CachyOS. Proton Experimental, patched vkd3d-proton 3.1, Intel Core i9-14900KF, RTX 5070 Ti (620.73.04), and DXC 1.9.2609.5.
The new synthetic case ended the test process on the #976 base. On this head the XG group passes 7/7 and the shader group passes 4/4, with zero failures or ignores in either filter.
Workspace suite under Proton: 719 passed, 4 failed, and 41 ignored, with 2 GPU skip markers included in those totals. Failures were in XAudio2, the synthetic-title end-to-end test, PLS quota, and predication. The full suite is not green.
Regression run
Same retail title and 60-second limit on both builds under Proton, using the smoke helper from #257 and
VKD3D_CONFIG=ignore_shared_fence,single_queue. The Windows process-commit counter reported 0 MB under Wine.Not tested
Native Windows, a native retail smoke pair, and a long run through world loading.
AI use
OpenAI Codex (GPT-6) wrote the change and its test, ran the local checks, and prepared the description.
Imported from ivall/xcl. Originally posted by dcastell1 on 2026-11-24T10:21:57Z.
Verified on Windows 11 10.0.26300, NVIDIA GeForce RTX 5090 (driver 621.24), Rust 1.100.0 MSVC 14.44.35207, debug build, on
main@02bfd1d(baseline 727 passed, 0 failed, 41 ignored on this box; the head of this PR is based on9aec53d, which is why the base is stated):Four more passing tests than the baseline; checking the tiled source before copying a subresource ships its own coverage and it runs green here.
Tree restored afterwards (full diff against a clean checkout), hardware adapter, no Wine, no game data. AI-assisted (opencode): applied the patch to a built tree, ran the suite, reverted it.
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-24T12:30:53Z.
Independent verification, merged onto current
main384f7f7locally (clean merge).Machine: Windows 11, Ryzen 9 7900X + RTX 3060 Ti; Rust stable MSVC, debug.
cargo test -p xcl --lib hle::xg::: 7 passed, 0 failed — includes the newcopy_from_rejects_unreadable_sourcefor the tiled-source check.cargo test -p xcl --test xg_oracle: 6 passed, 0 failed, 12 ignored (sample-gated prints ignored; all runnable oracle comparisons pass).AI use: test runs by Devin (Cognition, SWE-2); no code changes.
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-26T03:32:03Z.
Re-verification on RTX 3060 Ti (Windows 11), new head merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, 27 ignored. The earlier merge conflict is resolved.Thanks!
— Devin
Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-30T08:42:05Z.
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-01T04:36:14Z.
Triage (#1607) – head
3c36945Stacked on #976 and #684; only
3c36945is this PR's own:copy_fromchecks that the tiled source range is readable (newshader::readable_range,readablekeeps its 256 MiB limit) before it detiles. No other open PR makes that change.The same caveat as for the base PRs applies: main (
adccb7d) already reads CopyFromSubresource in both the 6- and 7-argument forms throughcopy_args. The stack's hardcoded 7-argumentcopy_fromsignature conflicts with that and would drop the 6-argument form, so the source check needs to be rebased onto main'scopy_argsversion.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.