fix(gpu): skip converting twin copy routes when depth converter is unavailable #3360
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!3360
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3360"
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?
@reeledMarek on GitHub · 2026-11-26 20:25 UTC · original
reeledMarek:fix/gpu-twin-copy-missing-converter→main· +62 −5 · 1 files · 1 commits · openSummary
r.depth.is_some()) andconverter()returnsNone,Twin::copypreviously skipped the compute conversion pass but still ran the secondCopyTextureRegionpass from the unwritten scratch offset (r.depthorr.twin) into the destination texture, corrupting it with uninitialized scratch bytes.copy_withhelper), skipping routes that require conversion when no converter is available and returningfalseearly without transitions or incrementingCOPIESif no active routes remain.copy_skips_converting_routes_when_converter_is_missing.Verification
cargo clippy -p victory-gpu --all-targets --target x86_64-pc-windows-msvc --locked -- -D warningscargo test -p xtask --locked@Dukestar69 on GitHub · 2026-11-26 20:28 UTC · original · approved these changes
LGTM — verified on RTX 5090 (Windows / D3D12) against
origin/main(63bcca4).converter()is unavailable avoids copying unconverted scratch bytes into the destination texture or emitting unnecessary transitions.cargo test -p victory-gpu --lib twin:: -- --test-threads=1: 3 passed, 0 failed (includingcopy_skips_converting_routes_when_converter_is_missing).cargo clippy -p victory-gpu --all-targets -- -D warnings: clean.cargo xtask policy: 191 files ok.Synthetic tests only (no game files used). AI-assisted (Gemini 4 Neon).
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.