Clear stale constant-buffer descriptors on null writes #446

Open
UwUCammie wants to merge 1 commit from upstream-pr/446 into main
UwUCammie commented 2026-11-27 09:33:18 +00:00 (Migrated from github.com)

Imported from avatarmanz/VIctory-7900XTX. Originally posted by UwUCammie on 2026-11-27T09:33:18Z.


A null CreateConstantBufferView now replaces the previous title descriptor. Empty views take the existing typed-null path before the runtime looks for a shadow buffer. Dynamic tables use that same path, including when scratch storage is unavailable, so the old host resource and raw twin are cleared together.

Adapted from fxceless #304 for this branch’s descriptor heap.

Tested the exact head 82313d59 with Windows MSVC under Wine 11.22 on an RX 7900 XT, RADV 26.3.1 and vkd3d-proton 71cae091b06571e. Both title descriptor formats passed, and the physical device test verified that writing null removes the old buffer and its raw twin. The executable and PDB matched 111 runtime source checksums. Wine test results

<!-- greyfinch-sync:avatarmanz/VIctory-7900XTX:issue:5524357032 --> Imported from [avatarmanz/VIctory-7900XTX](https://github.com/avatarmanz/VIctory-7900XTX/pull/446). Originally posted by [UwUCammie](https://github.com/UwUCammie) on 2026-11-27T09:33:18Z. --- A null `CreateConstantBufferView` now replaces the previous title descriptor. Empty views take the existing typed-null path before the runtime looks for a shadow buffer. Dynamic tables use that same path, including when scratch storage is unavailable, so the old host resource and raw twin are cleared together. Adapted from [fxceless #304](https://github.com/fxceless/victory-fork/pull/304) for this branch’s descriptor heap. Tested the exact head `82313d59` with Windows MSVC under Wine 11.22 on an RX 7900 XT, RADV 26.3.1 and vkd3d-proton `71cae091b06571e`. Both title descriptor formats passed, and the physical device test verified that writing null removes the old buffer and its raw twin. The executable and PDB matched 111 runtime source checksums. [Wine test results](https://github.com/UwUCammie/victory-amd/commit/a937345b)
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/446:upstream-pr/446'
git switch 'upstream-pr/446'

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.

git switch 'main'
git merge --no-ff 'upstream-pr/446'
git switch 'upstream-pr/446'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/446'
git switch 'upstream-pr/446'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/446'
git switch 'main'
git merge --squash 'upstream-pr/446'
git switch 'main'
git merge --ff-only 'upstream-pr/446'
git switch 'main'
git merge 'upstream-pr/446'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
avatarmanz/VIctory-7900XTX!446
No description provided.