Validation error VUID-VkSparseMemoryBind-memory-02730 on main (not on the TASKS.md list) #42
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/vktory6--VKtory#42
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@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.rsmake_chunk) and binds them into the sparse window buffers (lib.rs:946, SPARSE_BINDING | SPARSE_RESIDENCY), which are created withoutVkExternalMemoryBufferCreateInfo. 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
2dd59dawith 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 on73ee0abyet. (Corrected 2026-12-01: this line first said "2dd59dawith local vkback changes only"; the builds also had the changes named here.)🤖 Generated with Claude Code
@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 10:36 UTC · original
Fixed by #52 (
github.com/vktory6/VKtory@bc643a5): the sparse title windows now declare the DMA-BUF handle type, andVkSparseMemoryBind-memory-02730no longer shows in the validation run. It is off the list (github.com/vktory6/VKtory@ac6c069). Closing, thanks!