vkback: create linear in-place images with the DMA-BUF handle type, or fall back #30

Manually merged
github merged 1 commit from github-bot/gh-30 into gh-pr/30/base 2026-12-01 07:38:45 +00:00 AGit
Owner

@⁠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 UTC

What

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 adds VkExternalMemoryImageCreateInfo with DMA_BUF_EXT where 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_validation 1.4.363, core, thread-safety and shader checks, errors only): 02728 and 09860 are in the main baseline 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.

**@⁠TheRifai** on GitHub · 2026-11-30 22:32 UTC · [original](https://github.com/vktory6/VKtory/pull/30) `TheRifai:vkback-external-image` → `main` · +24 −2 · 1 files · 1 commits · merged 2026-12-01 07:36 UTC ## What 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 adds `VkExternalMemoryImageCreateInfo` with `DMA_BUF_EXT` where 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_validation` 1.4.363, core, thread-safety and shader checks, errors only): `02728` and `09860` are in the `main` baseline 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.
Images bound over title memory did not declare the DMA-BUF handle type, so the
bind was invalid (VUID-vkBindImageMemory-memory-02728,
VkExportMemoryAllocateInfo-handleTypes-09860). Query the external-image format
properties and add VkExternalMemoryImageCreateInfo where RADV supports the
combination; where it does not (27 textures in the house scene), keep the
usual copying image and count the fallback.

Test: the validation run's distinct VUID list loses 02728 and 09860.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-30 22:33:20 +00:00
github-bot force-pushed github-bot/gh-30 from 6fe23b203d to cd2a74c28e 2026-11-30 23:37:07 +00:00 Compare
Author
Owner

@⁠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-02728 and VkExportMemoryAllocateInfo-handleTypes-09860 gone, no new VUID.

**@⁠TheRifai** on GitHub · 2026-12-01 00:09 UTC · [original](https://github.com/vktory6/VKtory/pull/30#issuecomment-7295999002) Rebased onto `f85217a` (cd2a74c) and revalidated: 15 -> 13 distinct VUIDs on the house scene, `vkBindImageMemory-memory-02728` and `VkExportMemoryAllocateInfo-handleTypes-09860` gone, no new VUID.
github-bot changed target branch from main to gh-pr/30/base 2026-12-01 07:38:43 +00:00
github manually merged commit cd2a74c28e into gh-pr/30/base 2026-12-01 07:38:45 +00:00
Author
Owner

@⁠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-02728 and VkExportMemoryAllocateInfo-handleTypes-09860 are gone, nothing new. The "Shared images" line is off the validation list (8e399e0).

**@⁠vktory6** on GitHub · 2026-12-01 07:38 UTC · [original](https://github.com/vktory6/VKtory/pull/30#issuecomment-7304300246) Merged, thanks! The house-scene validation run on the reference system confirms it: `vkBindImageMemory-memory-02728` and `VkExportMemoryAllocateInfo-handleTypes-09860` are gone, nothing new. The "Shared images" line is off the validation list (8e399e0).
This discussion has been locked. Commenting is limited to contributors.
No description provided.