Fix black world rendering by legalizing host barrier states #449
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Belobug--VIctory-Belobug-AMD!449
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-449"
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?
@jorgechavezxyz on GitHub · 2026-11-27 02:25 UTC · original
jorgechavezxyz:fix/host-barrier-legal-states→a-publier· +7 −2 · 1 files · 1 commits · openSummary
Sanitize both the before and after states of host texture barriers with
legal_state, and skip transitions that become no-ops after sanitizing.Verification
cargo build --locked --profile diag -p victory --features diagnosticscompleted on Windows with an RX 7900 XT.Related to #13 and #15.
@MamaLeVrai on GitHub · 2026-11-27 03:55 UTC · original
Tested on an RX 6950 XT (RDNA 2), driver 32.0.21045.29003, Windows 11 build 26300, Rust 1.98.1, release. At
b925191:cargo test --release -p victory-gpu --lib396 passed, 0 failed, 34 ignored.AI-assisted (Claude Code); no game data.
@gw1337x on GitHub · 2026-11-27 04:28 UTC · original
Another RDNA 3 card, as a no-regression check: RX 7800 XT 16 GB (driver 32.0.32015.7029), Ryzen 7 9800X3D, 32 GB RAM, Windows 11 26200 (Memory Integrity off). This setup never showed the black world, so this only says the change does no harm here.
Diagnostics builds of
b925191and its base4eb6cfd, same boot;scripts/play.ps1settings plusVICTORY_PORT_CONSTANTS/DESCRIPTORS/CBV/GUARD/JOURNAL=1, Series X profile, ray tracing off; 270 s hands-off from a Chapter I boat save; fps is the layer's 1 s figure from the window title every second.4eb6cfd(3 runs)b925191(1 run)No device loss, peak commit 33.8 GB (base 33.5-33.7 GB), and the 241 s screenshot matches the base (one frame compared). One run of the PR.
@adrianmjim on GitHub · 2026-11-27 06:48 UTC · original
Tested on RX 7900 XT (RDNA 3), driver 32.0.32029.2010, Windows 11 26300, Rust 1.98.1. PR head
b925191vs a-publier4eb6cfd, release, and the diag profile with --features diagnostics.Code path on
4eb6cfd:wanted = legal_for(copy.flags(), wanted). It stores that value in the list's States map and returns Some only when the previous state differs from it.beforehas always been through legal_for already.4eb6cfdalready passes aslast. Also, before_legal != after_legal whenever transition returns Some, so the new early return does not fire. The recorded barriers are the same as on4eb6cfd.Tests:
4eb6cfd.The description says the experimental performance settings were reverted locally. It does not say whether the black-world run and the working run used the same settings. Logs from runs with and without this patch, on the same commit and settings, would show whether the barriers are what changed.
Not tested: the game; the D3D12 debug layer (not installed).
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.