fix(gpu): track direct buffer states in HostList and restore COPY_DEST to COMMON in place_copy #194
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by BE29ZZ on 2026-11-27T19:31:19Z.
### 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.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by 1tsethan on 2026-11-27T23:01:09Z.
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.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by kibagami-nc on 2026-11-28T05:23:13Z.
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.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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.