dxil-spirv: add opt-in VKD3D_UNTYPED_VEC_SSBO for untyped vector SSBO loads/stores #532

Closed
github-bot wants to merge 1 commit from github-bot/gh-532 into main AGit
Owner

@⁠cerealfordinner on GitHub · 2026-12-04 23:28 UTC · original
cerealfordinner:upstream-pr-vkd3d-untyped → main · +224 −0 · 2 files · 1 commits · closed without merging

Adds an opt-in VKD3D_UNTYPED_VEC_SSBO switch to the dxil-spirv translator. When on, a byte-address buffer read/write of 2-4 dwords goes through one untyped pointer (SPV_KHR_untyped_pointers) instead of one access chain + load per dword, so RADV issues a single buffer_load_b64/b96/b128 (and buffer_store) where it issued a buffer_load_b32 per dword. loads restricts it to loads only.

Off by default and changes the translated shaders, so it needs an empty vkd3d-cache after toggling. Documented in docs/SETTINGS.md under Performance.

Patch-only change (patches/vkd3d.dxil-spirv.patch) plus the settings doc; no Rust is touched.

Signed-off-by: cerealfordinner [email protected]

**@⁠cerealfordinner** on GitHub · 2026-12-04 23:28 UTC · [original](https://github.com/lobomfz/VIctory-xmem/pull/532) `cerealfordinner:upstream-pr-vkd3d-untyped` → `main` · +224 −0 · 2 files · 1 commits · closed without merging Adds an opt-in `VKD3D_UNTYPED_VEC_SSBO` switch to the dxil-spirv translator. When on, a byte-address buffer read/write of 2-4 dwords goes through one untyped pointer (`SPV_KHR_untyped_pointers`) instead of one access chain + load per dword, so RADV issues a single `buffer_load_b64`/`b96`/`b128` (and `buffer_store`) where it issued a `buffer_load_b32` per dword. `loads` restricts it to loads only. Off by default and changes the translated shaders, so it needs an empty `vkd3d-cache` after toggling. Documented in `docs/SETTINGS.md` under Performance. Patch-only change (`patches/vkd3d.dxil-spirv.patch`) plus the settings doc; no Rust is touched. Signed-off-by: cerealfordinner <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-04 23:33:24 +00:00
github-bot closed this pull request 2026-12-05 17:32:01 +00:00

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.