GPU: use the host upload path for texture staging copies #680
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!680
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/680/head"
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?
@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 UTCSummary
Fixes #128.
CopyTextureRegionnow queues the list-owned D3D12 staging buffer throughdefer_fill. On Wine/vkd3d-proton, the title-memory copy path can skip this upload becauseVirtualQueryreports the host mapping asMEM_FREE. Using the existing host-upload path keeps the destination checks for actual writes to title memory in place.Verification
cargo test --locked -p victory-gpu --lib resource::tests::buffer_data_reaches_the_host_texture -- --exact --nocapturepassed.victory-gpulibrary test binary with--test-threads=1. 43 passed and one benchmark was ignored.AI-assisted implementation and verification with Codex.