GPU: presenting a texture already in the copy source state makes no barrier from it to itself #2330
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!2330
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/2330/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?
@denkencar-sketch on GitHub · 2026-11-25 10:42 UTC · original
denkencar-sketch:fix/queue-001→main· +39 −10 · 1 files · 1 commits · closed without mergingSummary
Presenting a texture that is already in the copy source state made a barrier from that state to itself, which D3D12 refuses.
transition_ifnow makes no barrier when the before and after states are the same.Testing
Test
a_barrier_to_the_same_state_is_not_madefails with the always-barrier behaviour and passes with this change.cargo test --workspace --lockedpasses apart from known flakes:modules::dstorage::tests::a_page_list_filled_after_its_request_startsfails now and then onmaintoo, and so does a parallel-run flake invictory-gpu's lib tests (watch::anddescriptor::host::tests, 2 of 40 runs on pristinemain).This fixes only the same-state barrier. Not fixed:
queue::presentalso reads and restores the texture's host state outside thesubmittedlock, which can clobber another queue's tracked state; that needs a presenter window to test. Not tried: a run in the game.AI-assisted.
@Marvisak on GitHub · 2026-11-25 15:23 UTC · original · edited 2026-11-25 15:57 UTC
Automated triage for the maintainers.
This pull request no longer merges cleanly into
main(conflicts incrates/victory-gpu/src/host.rs). It will be reviewed once it is rebased onto the currentmain. The earlier verdict (merge-candidate) was for an older state ofmain.Generated by Claude Code
@denkencar-sketch on GitHub · 2026-11-25 23:30 UTC · original
Closing as superseded: #1997 (\
Pull request closed