Descriptor table entries are mirrored at submission, so a dispatch can see an entry the title changed after recording it #542
Labels
No labels
accessibility
bug
claimed
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
tester report
urgent
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/LakshanSivakumar--Native-Victory-macOS#542
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
@Olima34 on GitHub · 2026-11-28 01:40 UTC · original
What happens
The host copies (mirrors) a descriptor table entry when the work is submitted, not when the draw or dispatch is recorded. GTA VI changes entries of its big shared table (root slot 0, entries 8 to 251) between recording a dispatch and submitting it: bind, dispatch, unbind. So the earlier dispatch runs with the later record.
Measured
300 s windowed world runs on the preview branch (
b3c1a1b0), Series S, M5 Pro, counting the entries each compute shader's table ranges reach:Examples (ids only):
3d7ddd732c89db9fwas recorded with a 2,048-byte constant buffer at entry 251, and a null constant buffer was there at submission (3 times);a96ed16c68231d2dwas recorded with a texture view at entry 82, andf50436bfbc651bc5then has a null view there;98dc84d373234c59was recorded with a null view at entry 48, and a placed buffer view was there at submission.Many other differences are the same placed view with other padding words (1 and 13); those are harmless.
Not seen: an entry holding two records for two commands of one submission (0), or an entry rewritten with older work in flight (0). Only dispatches were counted, not draws.
What would fix it
Keep the bound entries' records with the command when it is recorded, instead of reading the table at submission. It's small in count, but a dispatch that reads a null constant buffer instead of its real one computes garbage.
@Sheffy007 on GitHub · 2026-11-28 01:48 UTC · original
/claim
@github-actions[bot] on GitHub · 2026-11-28 01:48 UTC · original
Claimed by @Sheffy007. Open a draft pull request with
Refs #538in its description within 24 hours, or the claim expires.