Test: views_are_made_beside_the_heap_and_copied_in fails on AMD (RX 6600): descriptor bytes are the driver's own #298
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from avatarmanz/VIctory-7900XTX. Originally posted by lerapeurdu62280-debug on 2026-11-26T14:50:18Z.
What 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
Imported from avatarmanz/VIctory-7900XTX. Originally posted by compaccount1-coder on 2026-11-26T15:44:57Z.
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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.