descriptor: a constant buffer's raw view stops at the buffer's end #451
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from avatarmanz/VIctory-7900XTX. Originally posted by LeonardoS11 on 2026-11-27T10:27:45Z.
The 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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.