[pr-fix] Avoid AMD DXIL crash on raw buffer size queries #3
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/MahanYTT--VIctory-MA!3
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/3/head"
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?
@saifzetoney-ui on GitHub · 2026-11-29 16:29 UTC · original
saifzetoney-ui:fix/amd-raw-buffer-pipeline→main· +13 −1 · 1 files · 1 commits · merged 2026-11-29 16:53 UTCWhat it changes
On an RX 9070 XT, D3D12 compute pipeline creation can crash when the generated DXIL queries a raw buffer's size and then loads from the same buffer in one block. End the block after the size query when the shader reads the record count and also accesses the buffer. Shaders that never read the count retain existing handle reuse.
Ports the fix from DoubleGhosty/cool_fox#174 to this fork's descriptor lowering.
How it was tested
0xc0000005inamdxc64.dll.cargo test --locked -p victory-shader --libpassed with 462 passed and 9 ignored.Checked for overlap