Clear stale constant-buffer descriptors on null writes #446

Open
github-bot wants to merge 1 commit from github-bot/gh-446 into main AGit
Owner

@⁠UwUCammie on GitHub · 2026-11-27 09:33 UTC · original
UwUCammie:fix/avatar-main-null-cbv → main · +48 −5 · 3 files · 1 commits · open

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

**@⁠UwUCammie** on GitHub · 2026-11-27 09:33 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/pull/446) `UwUCammie:fix/avatar-main-null-cbv` → `main` · +48 −5 · 3 files · 1 commits · open 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)
Adapt AscilCH’s fxceless/victory-fork#304 to the Wine build’s constant-buffer and raw-twin path.

(cherry picked from commit 0989cf16f2a59b28c14b7b9560f5e45855909147)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 10:38:51 +00:00
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/446/head:github-bot/gh-446'
git switch 'github-bot/gh-446'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-446'
git switch 'github-bot/gh-446'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-446'
git switch 'github-bot/gh-446'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-446'
git switch 'main'
git merge --squash 'github-bot/gh-446'
git switch 'main'
git merge --ff-only 'github-bot/gh-446'
git switch 'main'
git merge 'github-bot/gh-446'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.