GPU: use the host upload path for texture staging copies #680

Manually merged
github merged 1 commit from gh-pr/680/head into gh-pr/680/base 2026-11-26 04:12:45 +00:00
Owner

@⁠EatCodeSleep2 on GitHub · 2026-11-24 06:43 UTC · original
EatCodeSleep2:fix/wine-staging-upload-128 → main · +3 −1 · 1 files · 1 commits · merged 2026-11-24 08:21 UTC

Summary

Fixes #128.

CopyTextureRegion now queues the list-owned D3D12 staging buffer through defer_fill. On Wine/vkd3d-proton, the title-memory copy path can skip this upload because VirtualQuery reports the host mapping as MEM_FREE. Using the existing host-upload path keeps the destination checks for actual writes to title memory in place.

Verification

  • Windows 11: cargo test --locked -p victory-gpu --lib resource::tests::buffer_data_reaches_the_host_texture -- --exact --nocapture passed.
  • Windows 11: Ran all 44 tests in the same victory-gpu library test binary with --test-threads=1. 43 passed and one benchmark was ignored.
  • Wine/vkd3d-proton verification is pending. No game files were used for these tests.

AI-assisted implementation and verification with Codex.

**@⁠EatCodeSleep2** on GitHub · 2026-11-24 06:43 UTC · [original](https://github.com/Marvisak/VIctory/pull/680) `EatCodeSleep2:fix/wine-staging-upload-128` → `main` · +3 −1 · 1 files · 1 commits · merged 2026-11-24 08:21 UTC ## Summary Fixes #128. `CopyTextureRegion` now queues the list-owned D3D12 staging buffer through `defer_fill`. On Wine/vkd3d-proton, the title-memory copy path can skip this upload because `VirtualQuery` reports the host mapping as `MEM_FREE`. Using the existing host-upload path keeps the destination checks for actual writes to title memory in place. ## Verification - Windows 11: `cargo test --locked -p victory-gpu --lib resource::tests::buffer_data_reaches_the_host_texture -- --exact --nocapture` passed. - Windows 11: Ran all 44 tests in the same `victory-gpu` library test binary with `--test-threads=1`. 43 passed and one benchmark was ignored. - Wine/vkd3d-proton verification is pending. No game files were used for these tests. AI-assisted implementation and verification with Codex.
Queue the list-owned D3D12 staging upload as a host fill so Wine does not skip it based on the title-memory VirtualQuery check.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:12:43 +00:00
github manually merged commit af22e5d3a1 into gh-pr/680/base 2026-11-26 04:12:45 +00:00
This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/Marvisak--VIctory!680
No description provided.