Validation error VUID-VkSparseMemoryBind-memory-02730 on main (not on the TASKS.md list) #42

Closed
opened 2026-12-01 04:00:20 +00:00 by github-bot · 2 comments
Owner

@⁠Mhyster on GitHub · 2026-12-01 03:59 UTC · original

vkQueueBindSparse(): pBindInfo[0].pBufferBinds[0].pBinds[0].memory.pNext<VkExportMemoryAllocateInfo>.handleTypes is VK_EXTERNAL_MEMORY_HANDLE_TYPE_DMA_BUF_BIT_EXT, but the external handle types specified in resource are VkExternalMemoryHandleTypeFlags(0).

umem allocates every chunk with VkExportMemoryAllocateInfo (DMA-BUF, umem/src/lib.rs make_chunk) and binds them into the sparse window buffers (lib.rs:946, SPARSE_BINDING | SPARSE_RESIDENCY), which are created without VkExternalMemoryBufferCreateInfo. The spec wants one of the memory's export types on the resource it is bound to. Either give the sparse window buffer the DMA-BUF handle type too, or allocate the chunks that only ever go into the window without the export.

Seen in two of two house-scene validation runs of main (RX 9070 XT, Mesa 26.3.1, layer from Arch's vulkan-validation-layers), with the rule 30 settings.

Seen on: bb34500 and 1da3463, the two sides of #47's validation run (two runs each; 02730 in all four). bb34500 is 2dd59da with the open PRs #22 and #29 merged, just-another-dude84/VKtory@324542c cherry-picked and a local translator version bump; 1da3463 is the same with #47 and #48. None of these touches umem. Not rechecked on 73ee0ab yet. (Corrected 2026-12-01: this line first said "2dd59da with local vkback changes only"; the builds also had the changes named here.)

🤖 Generated with Claude Code

**@⁠Mhyster** on GitHub · 2026-12-01 03:59 UTC · [original](https://github.com/vktory6/VKtory/issues/42) `vkQueueBindSparse(): pBindInfo[0].pBufferBinds[0].pBinds[0].memory.pNext<VkExportMemoryAllocateInfo>.handleTypes is VK_EXTERNAL_MEMORY_HANDLE_TYPE_DMA_BUF_BIT_EXT, but the external handle types specified in resource are VkExternalMemoryHandleTypeFlags(0).` umem allocates every chunk with `VkExportMemoryAllocateInfo` (DMA-BUF, `umem/src/lib.rs` `make_chunk`) and binds them into the sparse window buffers (`lib.rs:946`, SPARSE_BINDING | SPARSE_RESIDENCY), which are created without `VkExternalMemoryBufferCreateInfo`. The spec wants one of the memory's export types on the resource it is bound to. Either give the sparse window buffer the DMA-BUF handle type too, or allocate the chunks that only ever go into the window without the export. Seen in two of two house-scene validation runs of main (RX 9070 XT, Mesa 26.3.1, layer from Arch's vulkan-validation-layers), with the rule 30 settings. Seen on: bb34500 and 1da3463, the two sides of #47's validation run (two runs each; 02730 in all four). bb34500 is 2dd59da with the open PRs #22 and #29 merged, just-another-dude84/VKtory@324542c cherry-picked and a local translator version bump; 1da3463 is the same with #47 and #48. None of these touches umem. Not rechecked on 73ee0ab yet. *(Corrected 2026-12-01: this line first said "2dd59da with local vkback changes only"; the builds also had the changes named here.)* 🤖 Generated with [Claude Code](https://claude.com/claude-code)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 04:00:20 +00:00
Author
Owner

@⁠vktory6 on GitHub · 2026-12-01 07:34 UTC · original

Thanks! The cause is in the code on current main as you describe it: the chunks are allocated with the DMA-BUF export, and the sparse window buffers have no external-memory info. I created a task based on your report: it's on the "Vulkan validation errors" list in github.com/vktory6/VKtory@5169307.

**@⁠vktory6** on GitHub · 2026-12-01 07:34 UTC · [original](https://github.com/vktory6/VKtory/issues/42#issuecomment-7304233101) Thanks! The cause is in the code on current main as you describe it: the chunks are allocated with the DMA-BUF export, and the sparse window buffers have no external-memory info. I created a task based on your report: it's on the "Vulkan validation errors" list in https://github.com/vktory6/VKtory/commit/5169307.
Author
Owner

@⁠vktory6 on GitHub · 2026-12-01 10:36 UTC · original

Fixed by #52 (github.com/vktory6/VKtory@bc643a5): the sparse title windows now declare the DMA-BUF handle type, and VkSparseMemoryBind-memory-02730 no longer shows in the validation run. It is off the list (github.com/vktory6/VKtory@ac6c069). Closing, thanks!

**@⁠vktory6** on GitHub · 2026-12-01 10:36 UTC · [original](https://github.com/vktory6/VKtory/issues/42#issuecomment-7308440767) Fixed by #52 (https://github.com/vktory6/VKtory/commit/bc643a5): the sparse title windows now declare the DMA-BUF handle type, and `VkSparseMemoryBind-memory-02730` no longer shows in the validation run. It is off the list (https://github.com/vktory6/VKtory/commit/ac6c069). Closing, thanks!
This discussion has been locked. Commenting is limited to contributors.
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.

Dependencies

No dependencies set

Reference
github/vktory6--VKtory#42
No description provided.