d3d12: advertise WriteBufferImmediate for addressable buffers #1208

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

@⁠PyZikYG on GitHub · 2026-11-24 20:17 UTC · original
PyZikYG:write-buffer-immediate-capability → main · +55 −6 · 3 files · 1 commits · open

Claimed as D3D-WRITE-IMMEDIATE-CAPS.

OPTIONS3 always returned no WriteBufferImmediate support, even though the Vulkan runtime already executes these writes through vkCmdUpdateBuffer. Applications that check the feature flag before recording a write could not discover the implemented path.

Report direct, bundle, compute and copy list support when the console GPU-address arena and Vulkan update entry point are available. Leave the flags clear when either prerequisite is missing.

AI-assisted: yes.

Tested

**@⁠PyZikYG** on GitHub · 2026-11-24 20:17 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1208) `PyZikYG:write-buffer-immediate-capability` → `main` · +55 −6 · 3 files · 1 commits · open Claimed as [D3D-WRITE-IMMEDIATE-CAPS](https://git.gtahub.st/github/ubiquitarianism--leonida/issues/14). OPTIONS3 always returned no WriteBufferImmediate support, even though the Vulkan runtime already executes these writes through vkCmdUpdateBuffer. Applications that check the feature flag before recording a write could not discover the implemented path. Report direct, bundle, compute and copy list support when the console GPU-address arena and Vulkan update entry point are available. Leave the flags clear when either prerequisite is missing. AI-assisted: yes. ### Tested - `d3d12_vulkan_device`: PASS - `replay_write_immediate_predication`: PASS - [Independent validation on Windows](https://git.gtahub.st/github/ubiquitarianism--leonida/pulls/1208)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:42:56 +00:00
Author
Owner

@⁠Snooozs on GitHub · 2026-11-24 21:29 UTC · original

Read the whole diff and tested 1c06b6024 merged on main 6261ca916 (clean): Windows 10 Pro 19045, VS 2022 RelWithDebInfo, LEONIDA_VK_VALIDATION=1, d3d12_vulkan_device_test.

RTX 5060 Ti (NVIDIA 621.01) exit VUID lines
main 0 0
this test, main's device code 1 0
this PR 0 0

The other OPTIONS3 checks in that file still hold here, including WriteBufferImmediateSupportFlags == NONE in the feature comparison and the subset check against the host. On the Ryzen 7 7700 iGPU (AMD 31.0.22044.1) the test exits 1 on main as well (it stops before this block), so there is no evidence either way from that GPU.

The description has no "Tested" section; the template asks for what was run and on which GPU and driver.

AI-assisted (Claude Code, Claude Opus 5.5).

**@⁠Snooozs** on GitHub · 2026-11-24 21:29 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1208#issuecomment-7145000136) Read the whole diff and tested `1c06b6024` merged on main `6261ca916` (clean): Windows 10 Pro 19045, VS 2022 RelWithDebInfo, `LEONIDA_VK_VALIDATION=1`, `d3d12_vulkan_device_test`. | RTX 5060 Ti (NVIDIA 621.01) | exit | VUID lines | |---|---|---| | main | 0 | 0 | | this test, main's device code | 1 | 0 | | this PR | 0 | 0 | The other `OPTIONS3` checks in that file still hold here, including `WriteBufferImmediateSupportFlags == NONE` in the feature comparison and the subset check against the host. On the Ryzen 7 7700 iGPU (AMD 31.0.22044.1) the test exits 1 on main as well (it stops before this block), so there is no evidence either way from that GPU. The description has no "Tested" section; the template asks for what was run and on which GPU and driver. AI-assisted (Claude Code, Claude Opus 5.5).
This pull request can be merged automatically.
This branch is out-of-date with the base branch
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/1208/head:github-bot/gh-1208'
git switch 'github-bot/gh-1208'

Merge

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