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

Merged
Jerkin42 merged 1 commit from upstream-pr/42 into main 2026-11-24 13:45:22 +00:00
Jerkin42 commented 2026-11-24 10:28:06 +00:00 (Migrated from github.com)

Imported from brcly/TuxBox. Originally posted by Jerkin42 on 2026-11-24T10:28:06Z.


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

<!-- greyfinch-sync:brcly/TuxBox:issue:6579735365 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/pull/42). Originally posted by [Jerkin42](https://github.com/Jerkin42) on 2026-11-24T10:28:06Z. --- 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)
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
brcly/TuxBox!42
No description provided.