renderer: bind vertex buffers with the size of their descriptor #464
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
GPU
GUI
help wanted
question
Shaders
Video
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/KytyPS5--KytyPS5!464
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/464/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?
@brandostrong on GitHub · 2026-09-02 21:50 UTC · original
brandostrong:fix/vertex-buffer-descriptor-size→main· +5 −2 · 1 files · 1 commits · closed without mergingProblem. Vertex buffers were bound with a size derived from the draw rather than from the V#. A fetch past
num_recordsthen read whatever memory followed the buffer, where the hardware returns zero for out-of-range records (buffer descriptor clamping, RDNA2 ISA "buffer resource" section).Change. Bind the vertex buffer with the descriptor's own size so the host's bounds behaviour lines up with the guest's.
Effect. No isolated measured change; part of the GTA V rendering bring-up where out-of-range vertex fetches showed up as garbage attributes.
Verification. Suites pass.
References
num_records.@brandostrong on GitHub · 2026-09-15 18:13 UTC · original
Closing:
3f80151a("Respect vertex buffer sizes") makes the same change.Pull request closed