vkback: create linear in-place images with the DMA-BUF handle type, or fall back #30
No reviewers
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!30
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-30"
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?
@TheRifai on GitHub · 2026-11-30 22:32 UTC · original
TheRifai:vkback-external-image→main· +24 −2 · 1 files · 1 commits · merged 2026-12-01 07:36 UTCWhat
Images bound over title memory did not declare the DMA-BUF handle type, so the bind was invalid (
VUID-vkBindImageMemory-memory-02728,VUID-VkExportMemoryAllocateInfo-handleTypes-09860). The linear in-place path now queries the external-image format properties and addsVkExternalMemoryImageCreateInfowithDMA_BUF_EXTwhere RADV supports the combination. Where it does not (27 textures in the house scene, counted with a note), it keeps the usual copying image instead of binding title memory.The external VUIDs are gone; the fallback is the existing usual path, not a second in-place path.
Why this verification is enough (rules 27 and 30)
Validation run on the house scene (about 60 world s,
VK_LAYER_KHRONOS_validation1.4.363, core, thread-safety and shader checks, errors only):02728and09860are in themainbaseline and absent after the change, with no new VUID; the fallback note fired 27 times.cargo test -p vkback --lib: 148 passed, 3 ignored.cargo test -p vkback --test policy: 6 passed.6fe23b203dtocd2a74c28e@TheRifai on GitHub · 2026-12-01 00:09 UTC · original
Rebased onto
f85217a(cd2a74c) and revalidated: 15 -> 13 distinct VUIDs on the house scene,vkBindImageMemory-memory-02728andVkExportMemoryAllocateInfo-handleTypes-09860gone, no new VUID.@vktory6 on GitHub · 2026-12-01 07:38 UTC · original
Merged, thanks! The house-scene validation run on the reference system confirms it:
vkBindImageMemory-memory-02728andVkExportMemoryAllocateInfo-handleTypes-09860are gone, nothing new. The "Shared images" line is off the validation list (8e399e0).