Tests: cover XG copy argument forms across pitched subresources #2473
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2483"
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 anes66 on 2026-11-25T20:01:04Z.
Stacked on #1435; only the top commit,
767f439, belongs to this PR. The dependency keeps its original author.The existing ABI regression covers a single RGBA8 surface. These two CPU tests extend it to pitched mip levels, array slices, separate depth/stencil planes, BC1/BC3 blocks and 3D textures. They also cover a source whose address space is reserved but not committed, and stale upper stack-slot bits around the added 32-bit argument.
What is in it
crates/xcl/src/hle/xg.rs, tests only: 10 descriptors and 512 copy calls through the six- and seven-argument vtable forms. Expected bytes are placed per element; reads use that reference rather than the preceding copy's output. Whole-buffer comparisons check row/slice padding, other subresources and trailing sentinels too.PAGE_NOACCESSsource without reading it, three added-argument values, three stale upper halves, and unused trailing-slot values in the older form.Tested
14c8a2d:cargo test --locked -p xcl --lib hle::xg::tests -j2 -- --nocapture --test-threads=1: 4 passed, 0 failed, 0 ignored, 0 skipped.8b4d42c): the same command: 6 passed, 0 failed, 0 ignored, 0 skipped.maine0d93c8(this branch,767f439): the same command: 6 passed, 0 failed, 0 ignored, 0 skipped.main2898511+ #1435, headaec6fa1) also pass in release: 6 passed, 0 failed, 0 ignored, 0 skipped; 512 copy calls.Not tested
Merge prerequisites
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T20:34:27Z.
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)Thanks!
Imported from ivall/xcl. Originally posted by SlopTart on 2026-11-25T20:52:02Z.
gpu_suite (cold cache): 164 passed / 3 failed, no crashes. The three are the known baseline on this lane (seed-1003 fuzz, mad/mac contraction, promoted-UAV-clear driver gap, PR #2490); none caused by this PR.Targeted run of the three new copy tests (
copy_argument_forms_keep_reserved_sources_and_stack_dword_boundaries,copy_argument_forms_preserve_pitched_mips_planes_arrays_and_volumes,subresource_copies_take_both_argument_forms): 3 passed.Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-30T08:39:50Z.
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-01T08:09:28Z.
Triage (#1607) – head
767f439The first commit (
copy_argsin xg.rs, CopyInto/FromSubresource taking the newer library's added argument) is already on main asadccb7d8; #3099 carries the same commit inside its rebase. What this PR adds on top is the two testscopy_argument_forms_keep_reserved_sources_and_stack_dword_boundariesandcopy_argument_forms_preserve_pitched_mips_planes_arrays_and_volumes, which main does not have. A rebase onto main should leave only the test commit and clear the conflict.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.