host: hide VK_EXT_descriptor_buffer only on GPUs that need it #42

Manually merged
github merged 1 commit from gh-pr/42/head into gh-pr/42/base 2026-11-26 06:27:07 +00:00
Owner

@⁠Jerkin42 on GitHub · 2026-11-24 10:28 UTC · original
Jerkin42:fix/cbv-descriptor-buffer-per-gpu → main · +57 −6 · 3 files · 1 commits · merged 2026-11-24 13:45 UTC

The constant-buffer workaround sets VKD3D_DISABLE_EXTENSIONS=VK_EXT_descriptor_buffer on every GPU, but only devices whose uniform buffers can't use 16-byte offsets need the descriptor-set path. This moves the decision into the Vulkan layer, which hides the extension per device. The patched-Proton branch keeps its environment override.

Why

On an RX 9060 XT (RADV, Mesa 26.1.8, Proton Experimental), ProjectScarlett crashes during startup with the extension disabled. 12 launches with stock providers, changing only this setting and the layer:

VK_EXT_descriptor_buffer Old layer New layer Aborted or faulted
Disabled 4 2 6 of 6 (5 heap-corruption aborts, 1 ran on with 22 RADV access violations)
Enabled 2 4 0 of 6

Runs were capped at 80 to 270 seconds and the order was varied. I have not found the cause inside the driver.

Behaviour change

A GPU that can't use 16-byte offsets for uniform or storage buffers now keeps the extension, because the layer's fallback can't apply there.

Testing

  • 125 Python tests pass.
  • Layer checked against a mock driver (AMD-like 4/4 and 64/64 keep the extension, NVIDIA-like 64/16 hides it) and the real Vulkan loader on AMD.
  • Not tested on NVIDIA hardware.

This does not fix the black screen in #39.

🤖 Generated with Claude Code

**@⁠Jerkin42** on GitHub · 2026-11-24 10:28 UTC · [original](https://github.com/brcly/TuxBox/pull/42) `Jerkin42:fix/cbv-descriptor-buffer-per-gpu` → `main` · +57 −6 · 3 files · 1 commits · merged 2026-11-24 13:45 UTC The constant-buffer workaround sets `VKD3D_DISABLE_EXTENSIONS=VK_EXT_descriptor_buffer` on every GPU, but only devices whose uniform buffers can't use 16-byte offsets need the descriptor-set path. This moves the decision into the Vulkan layer, which hides the extension per device. The patched-Proton branch keeps its environment override. ## Why On an RX 9060 XT (RADV, Mesa 26.1.8, Proton Experimental), ProjectScarlett crashes during startup with the extension disabled. 12 launches with stock providers, changing only this setting and the layer: | `VK_EXT_descriptor_buffer` | Old layer | New layer | Aborted or faulted | | --- | --- | --- | --- | | Disabled | 4 | 2 | 6 of 6 (5 heap-corruption aborts, 1 ran on with 22 RADV access violations) | | Enabled | 2 | 4 | 0 of 6 | Runs were capped at 80 to 270 seconds and the order was varied. I have not found the cause inside the driver. ## Behaviour change A GPU that can't use 16-byte offsets for uniform *or* storage buffers now keeps the extension, because the layer's fallback can't apply there. ## Testing - 125 Python tests pass. - Layer checked against a mock driver (AMD-like 4/4 and 64/64 keep the extension, NVIDIA-like 64/16 hides it) and the real Vulkan loader on AMD. - **Not tested on NVIDIA hardware.** This does not fix the black screen in #39. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
The constant-buffer workaround disabled VK_EXT_descriptor_buffer for every
GPU, but only devices whose uniform buffers cannot use 16-byte offsets need
the descriptor-set path. On an RX 9060 XT (RADV), ProjectScarlett aborted
with heap corruption in five of six launches with the extension disabled,
and the sixth logged RADV access violations. Six launches with the extension
enabled had neither.

Let the Vulkan layer hide the extension from devices that need the storage
buffer fallback. The patched Proton branch keeps its environment override.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01788Yqq5ukLPSxJwbnno1sm
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 06:27:05 +00:00
github manually merged commit 72766e72c0 into gh-pr/42/base 2026-11-26 06:27:07 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.