descriptor: a constant buffer's raw view stops at the buffer's end #451
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!451
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-451"
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?
@LeonardoS11 on GitHub · 2026-11-27 10:27 UTC · original
LeonardoS11:pr/av-cb-raw-clamp→main· +9 −3 · 1 files · 1 commits · openThe raw (R32_TYPELESS) view of a constant buffer took
SizeInBytes / 4elements, where the size is rounded up to 256 bytes. Near the end of a buffer that reaches past it, which D3D12 does not allow.constant_raw_atalready clamps towidth - offset; this makes the other raw view(s) indescriptor/host.rsdo the same.On the nvidia-wip line there are two such views: the
constants_own_slotone, which is on withVICTORY_PORT_CBV=1on NVIDIA, and the twin's. On main there is only the twin's.mgrein reports a device removal on an RTX 4070 from such a view (877d5b4, fixed in 9849f04 of mgrein's fork); credit for finding it goes there.
Not measured by us: our runs do not use
PORT_CBV=1, so we never hit it. The case is the code plus that report. It type-checks; no behaviour change when the view already fits.AI-assisted (Claude in Claude Code). Built from source; no game data.
🤖 Generated with Claude Code
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.