fix(gpu): track direct buffer states in HostList and restore COPY_DEST to COMMON in place_copy #194
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!194
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-194"
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?
@BE29ZZ on GitHub · 2026-11-27 19:31 UTC · original
BE29ZZ:fix/hostlist-buffer-states→main· +836 −25 · 5 files · 1 commits · open### Problem
\HostList::place_copy\ (\crates/victory-gpu/src/host/place.rs) runs \CopyBufferRegion\ directly into a destination \Shadow::buffer, implicitly promoting it from \COMMON\ to \COPY_DEST, and never transitions it back to \COMMON. Because D3D12 buffers only decay back to \COMMON\ at the end of \ExecuteCommandLists:
What changed
eset_to_common.
Prior independent D3D12 Debug Layer validation
On the identical Belobug implementation before repo takedown, @MamaLeVrai validated with \VICTORY_D3D12_DEBUG=1 --features diagnostics\ on an RX 6950 XT (Windows 11 26300, release):
Local verification on \main\ (\cef07e) — Windows 11 x64, NVIDIA GeForce RTX 3060, Rust 1.98.1
epository_passes_policy\ clean).
Not tested with \VICTORY_D3D12_DEBUG=1\ locally (Graphics Tools optional feature not installed on this PC) or in the title itself (no game files here).
AI-assisted; no game data.
@1tsethan on GitHub · 2026-11-27 23:01 UTC · original
Independent Windows validation of PR #194.
Tested commit:
55e08da430c2ae45f03d3498ccbe1b0a17dfdc11.cargo test --locked -p victory-gpu host::buffers -- --nocapture --test-threads=1Exit: 0.
Coverage here is the buffer-state unit suite. The Windows debug layer is not installed, so this is not debug-layer or gameplay validation.
Independent verification with OpenAI Codex assistance. Windows 11 Pro build 26200; Rust 1.98.1 MSVC; Windows SDK libraries from Microsoft.Windows.SDK.CPP.x64 10.0.28000.2957. Test harness used an RTX 3070 Ti / AMD integrated-GPU host; adapter identity was not captured for every test. These are focused checks on the stated PR commit, not gameplay, FPS, or a merged-main integration result.
@kibagami-nc on GitHub · 2026-11-28 05:23 UTC · original
Independent debug-layer check of this PR's
place_copypart, on currentmain(63b902f).Setup: RTX 5070 Ti, diagnostics build,
VICTORY_D3D12_DEBUG=1, run as the tests ask (VICTORY_RELAY=2 VICTORY_RELAY_COPY=1, each test in a process of its own).The existing ignored tests of copies in place already hit these errors, but cannot see them. Every landing moves the debug layer's messages into the log (
Host::log_messages), socopy_draw_copy_draw's check at its end finds nothing, and the threecopies_stand_where_the_list_has_them_*tests do not look at all. I counted the errors moved into the log with a test-only counter inlog_messages:maincopy_draw_copy_draw..._on_the_card..._mixed..._in_pc_memory"Restores only" means just the
COMMONrestores inplace_copyandplace_source. In all four tests, what the draws read and what title memory and the card hold are unchanged.So on today's
main, the restore part alone clears these four. Your tracker also covers a host copy read through a root view before the copy, which the restores alone would report once as 527.This PR conflicts with
mainnow. If a smaller step would help meanwhile, the patch I measured is kibagami-nc/VIctory-NVIDIA@5bda8ffaa8 (+42/-9): the restores, the test counter, and asserts in the four tests. I won't open it as a separate PR unless you'd rather I did.0xc0000005atvictory-image-…dll+0x23cf683(write 0x0) during cutscene prestream on 8 GB RTX 4060 Laptop (Series S mode) #1031View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.