XG: require writable memory for CopyFromSubresource #976
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!976
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-976"
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?
@Marukooh on GitHub · 2026-11-24 09:48 UTC · original
Marukooh:xg-require-writable-copy-destination→main· +160 −9 · 3 files · 2 commits · draftStacked on #684. Only the top commit,
807fbfb, belongs to this PR.CopyFromSubresourcewrites rows to the caller's destination. The range check in #684 also accepts committed read-only memory. Use the existing DirectStorage writable-range check so the call returnsE_INVALIDARGbefore copying to a read-only destination. This addresses the destination check noted in the review of #684.What is in it
Tested
CachyOS, Intel Core i9-14900KF, NVIDIA RTX 5070 Ti (driver 620.73.04), Proton Experimental, patched vkd3d-proton 3.1, DXC 1.9.2609.5. Windows GNU Release build with Rust 1.98.0.
On
807fbfb, the workspace cross-build and test build succeeded. Under Proton, XG tests passed 6/6 and DirectStorage tests passed 13/13 (zero failed or ignored in either filter).With just the regression assertion added to the upstream #684 head
e56dbc3, the read-only case terminated the synthetic test process. It returnsE_INVALIDARGand passes on this PR.Workspace attempt under Proton:
cargo test --locked --release --workspace --no-fail-fast --target x86_64-pc-windows-gnu -- --test-threads=4. The test binaries reported 708 passed, 14 failed and 41 ignored, with 89 GPU skip markers included in those totals. Several suites hit Vulkan device-initialization failures. The doctest target could not launch rustdoc in this setup. The full run is not green.Regression run
Both 60-second smoke runs used the same retail title on the RTX 5070 Ti with Proton and the
scripts/linux/smoke.shhelper from #257. Both usedVKD3D_CONFIG=ignore_shared_fence,single_queueafter the default Vulkan device creation failed. The Windows process-commit counter reported 0 MB under Wine, so these runs do not measure peak commit.Not tested
Native Windows and the native retail smoke pair.
AI use
OpenAI Codex (GPT-6) wrote the follow-up and its regression case, ran the local checks, and prepared this description.
@DavidM1911 on GitHub · 2026-11-24 12:28 UTC · original
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::: 6 passed, 0 failed — includes the newcopy_from_rejects_invalid_dst_spancovering the writable-memory requirement.cargo test -p xcl --test xg_oracle: 6 passed, 0 failed, 12 ignored (console-library comparisons needXCL_SAMPLE_*; the layout/copy oracle tests that run locally all pass).AI use: test runs by Devin (Cognition, SWE-2); no code changes.
@DavidM1911 on GitHub · 2026-11-26 03:23 UTC · original
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
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.