Read a heap slot as a constant buffer only when it holds one #66
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/DexNom--VIctory!66
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-66"
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?
@ExMoha on GitHub · 2026-11-26 03:43 UTC · original
ExMoha:heap-slot-kind→main· +30 −7 · 4 files · 1 commits · openOn an RX 9070 (RDNA 4), the device was removed with a GPU page fault at the same place in the first open-world area every time. The address changed between runs (
0x3000_0270_3000,0x9000_02d9_8000,0x5c2d000). DRED put the fault in an indirect dispatch of a culling compute program, and the build before the latest merge faults there too, so the merge didn't cause it.The cause: the program picks a buffer from the view heap by an index it reads from its own records. For such loads the translator branches on the host's table of strides by slot. A non-zero stride is read as a buffer view, and anything else was read as a constant buffer. A slot holding a texture, or nothing, has no stride either, so its descriptor was read as a constant buffer's. That gives the card an address it never mapped. Reading a texture's descriptor as a constant buffer is undefined on any card, so this is probably not RDNA 4 specific. I haven't established why the records name a non-buffer slot at that spot.
The fix:
SLOT_CONSTANT_BUFFER(bit 31).SLOT_STRIDE_BITS).Tested on an RX 9070, Adrenalin 26.11.2 (32.0.32029.2010):
mainwithout this change). They always pass with--test-threads=1.Not tested on RDNA 3 or NVIDIA hardware.
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.