Tests: compare descriptor bytes only where copies are byte copies (views_are_made_beside_the_heap_and_copied_in fails on RDNA 2) #299
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!299
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-299"
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?
@compaccount1-coder on GitHub · 2026-11-26 15:02 UTC · original
compaccount1-coder:fix/descriptor-test-opaque-handles→main· +24 −3 · 1 files · 1 commits · closed without mergingWhat and why
descriptor::host::tests::views_are_made_beside_the_heap_and_copied_infails on every run on AMD RDNA 2 under Windows (RX 6700 XT, and the Ryzen 7000 integrated graphics; driver 32.0.21045, Windows 11), in both test jobs:On that driver, what a CPU descriptor handle points at is not the view's bytes:
0x3019c0000+ 64 in one run) is nowhere in them;CreateShaderResourceViewthere, and byCopyDescriptorsSimplefrom the staged slot) gives three different byte strings, differing exactly by the slots' 32-byte step;CopyDescriptorsSimplefrom the CPU-only staging heap into the shader-visible heap writes new bytes, not the staged ones.D3D12 leaves descriptor contents opaque, so the runtime is right here (it copies with
CopyDescriptorsSimple). Only the test assumed descriptor copies are byte copies. The runtime's two byte reads of descriptors are already safe:move_rawchecks the address before it changes anything and backs off otherwise, andshown_bytesis diagnostics-only.The change
Test only. Before comparing, the test copies the staged view into a second slot by hand. If that copy reads back as the staged bytes, the driver copies descriptors as bytes, and every check runs as before. If not, the two byte comparisons are left out and the test says so on stderr. The device-alive check runs in both cases.
Tested
On an RX 6700 XT (Windows 11, driver 32.0.21045):
VICTORY_D3D12_ADAPTER=1)--all-features,VICTORY_D3D12_WARP=1)So on WARP (the CI runners) the test is exactly as strict as before. Not run on an RX 7900 XTX: the strict branch is the one that should run there, as before.
Other results from this PC, for whoever looks next
c9c932c,cargo clippy --workspace --all-targets --locked -- -D warningspasses with and without--all-features, so those two are all clippy needs on today's main.victory-shader(first_half_values_render_on_hardware_and_warp,rectangles_are_drawn_whole,the_rectangle_stage_is_a_geometry_shader) withContainer part 'Pipeline State Validation' does not match expected for module. They fail only because the newest Windows SDK on this PC is 10.0.22621, whosedxil.dllis older than the runners' 26100. The runtime does not use the validator, so I have left those alone.AI-assisted: yes (Claude Code)
🤖 Generated with Claude Code
@compaccount1-coder on GitHub · 2026-11-26 15:44 UTC · original
Closing in favour of #298, which fixes the same RDNA 2 failure and keeps a real check on AMD (the copy against the view made in place at that slot) where this one only skipped the byte comparison. #298 passes on my RX 6700 XT too (confirmed there). Sorry for the duplicate: #298 did not show up in search when I looked.
Pull request closed