Repository navigation
host: also hide VK_EXT_descriptor_heap on GPUs that need storage CBVs - #212
Open
NickStallman wants to merge 1 commit into
Open
NickStallman wants to merge 1 commit into
NickStallman wants to merge 1 commit into
Conversation
vkd3d-proton's descriptor-heap path binds CBVs as uniform buffers, so 16-byte Xbox CBV offsets break where minUniformBufferOffsetAlignment is 64. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Author
|
NVIDIA follow-up, on this branch (fceed40):
🤖 Generated with Claude Code |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
GE-Proton11-14, now the pinned default, ships a vkd3d-proton that enables
VK_EXT_descriptor_heap. That path binds CBVs as uniform buffers. Xbox titles use 16-byte CBV offsets, and NVIDIA requires 64 (minUniformBufferOffsetAlignment). Vulkan validation reports it:In ProjectScarlett, the final full-screen copy to the display reads its projection from CB0. In menu frames that CBV sits at an address ≡ 32 (mod 64), so the copy reads shifted rows and its quad lands off-screen. The whole front end then presents black, while the menu itself renders correctly into its off-screen target. Over one traced run, the display was lit exactly while the copy's CBV address was 64-aligned and black while it was 32 mod 64.
The CBV layer already hides
VK_EXT_descriptor_bufferon GPUs whereneeds_storage_cbv()holds (#42), so vkd3d-proton uses its descriptor-set path, which binds CBVs as storage buffers. It now hidesVK_EXT_descriptor_heaptoo, on the same GPUs only. The Proton-feature path disables both. Vulkan headers older than the extension get a string fallback.Result on RTX 5090: the front end is visible and works with controller input. I went through the account-picker prompt, Navigation Experience, UI Text Size, Subtitles, Brightness, Finish Setup, Legal Notices and the Privacy Policy and Terms of Service acceptance, and the game then loads into the world. Every earlier run on GE-Proton11-14 was black from the first menu on. I verified this with
VKD3D_DISABLE_EXTENSIONS=VK_EXT_descriptor_heap, which is the setting this change applies.Stopgap. This follows the existing descriptor-buffer workaround but is not the final fix:
cbv_16_byte_alignmentdoes for descriptor sets.Checks
guest-present*gates. Those fail on this host because they sample a private rootful Xwayland, and the change doesn't touch them.buffer-remappassed. The layer is a no-op on RADV, where the alignment is 4.tuxbox.py checkwill follow in a comment.python -m unittest discover -s tests -q: 368 OK.🤖 Generated with Claude Code