Test: views_are_made_beside_the_heap_and_copied_in fails on AMD (RX 6600): descriptor bytes are the driver's own #298
No reviewers
Labels
No labels
accessibility
already-solved
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
merged
needs-decision
needs-game-run
needs-rebase
not-merged
nvidia
obsolete
question
security
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/avatarmanz--VIctory-7900XTX!298
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-298"
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?
@lerapeurdu62280-debug on GitHub · 2026-11-26 14:50 UTC · original
lerapeurdu62280-debug:fix/view-copy-test-amd→main· +26 −3 · 1 files · 1 commits · openWhat and why
descriptor::host::tests::views_are_made_beside_the_heap_and_copied_infails onmainon an RX 6600 (RDNA 2), every run, on both test jobs' feature sets. It passes on the CI because the CI runs on WARP.The test compares the 32 bytes of a slot in the shader-visible heap with the bytes
staged()made beside it. Descriptor bytes are the driver's own:CopyDescriptorsinto the shader-visible heap changes them. They hold addresses that name the slot they are in: the same view made in place in the next slot differs by exactly the 32-byte increment. The first 32 bytes also do not change when the slot gets another view, so the oldassert_ne!("another view since") cannot hold there either.Create*View, so a copy keeps the bytes made beside the heap, but the same view made again in place has new ones.So no single byte comparison holds on both. The test now accepts either legitimate form: a copy must hold the bytes made beside the heap (WARP, presumably NVIDIA, which is what the test checked so far), or those of the same view made in place at that slot (AMD). This is checked for the raw view and for the null view after it. Test-only change; the runtime is untouched.
Tested
--features diagnostics,VICTORY_D3D12_WARP=1)maincopied as it was made)VICTORY_VIEW_COPY=0(made in place)HostHeap::putmade a no-op (sanity check that it still catches a missing copy)Clippy
-D warnings(default and--all-features) is clean once #241's one-line fix is applied.Not tested on NVIDIA.
AI-assisted: yes (Claude Code)
🤖 Generated with Claude Code
Test: views_are_made_beside_the_heap_and_copied_in fails on every AMD card (descriptor bytes are the driver's own)to Test: views_are_made_beside_the_heap_and_copied_in fails on AMD (RX 6600): descriptor bytes are the driver's ownf2c635c269toa477ca9a7e@compaccount1-coder on GitHub · 2026-11-26 15:44 UTC · original
Confirmed on a second RDNA 2 card: RX 6700 XT (Windows 11, Adrenalin 32.0.21045, the same driver), with this PR merged onto
main(c9c932c).cargo test -p victory-gpu --lib --testspasses in full (381 passed, 0 failed), includingviews_are_made_beside_the_heap_and_copied_in, which fails onmainon this card every run. The Ryzen 7000 integrated graphics (RDNA 2,VICTORY_D3D12_ADAPTER=1) shows the same slot-tied descriptor bytes.I had opened #299 for the same failure a little later. This PR does it better (on AMD it still checks the copy against the view made in place at the slot, where mine only skipped the bytes), so I'm closing #299 in favour of it.
AI-assisted: yes (Claude Code)
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.