Repository navigation
Description
Parent: #28.
Problem
The merged Linux v3 external-image ABI can describe and transfer opaque-FD/DMABUF allocations, but it still needs a producer boundary that proves capabilities on the exact Dawn device, admits only allocations created against that device, drives SharedTextureMemory BeginAccess/EndAccess correctly, and fails closed when pinned public Dawn cannot expose native Vulkan identity.
Ordinary Dawn-created textures must never be presented as exportable, and CPU readback is not an acceptable fallback.
Fix
Add a product-neutral Dawn Linux external-provider seam with:
- public-Dawn feature/backend proof for DMABUF/opaque-FD, dedicated allocation, SyncFD and opaque semaphore;
- exact public
WGPUDevicetoken binding for injected host allocators; - immutable external-allocation identity through create/begin/end;
- direct external-memory import only;
- incoming-fence and Vulkan-layout BeginAccess;
- initialized/layout/fence-count validation after EndAccess;
- binary/timeline wait rules, owned exported FDs and queue/layout ownership rotation;
- publication through the merged v3 Linux provider;
- explicit
native_device_provider_requiredwhen the installed Dawn C ABI cannot prove VkDevice/VkPhysicalDevice/UUID/queue identity.
Remaining parent scope
Provide a real host Vulkan allocator created alongside Dawn's exact native device/physical-device/queue, populate UUID/create-info/modifier/queue fields, negotiate hardware format/modifier/handle/sync support, and complete the AppScene importer plus pixels, device-loss, residency, zero-readback and package gates.
Acceptance for this slice
- No ordinary Dawn texture or CPU fallback can enter the provider.
- Allocations are bound to the exact public device token.
- BeginAccess/EndAccess ownership and fence FDs are explicit and fail closed.
- Unsupported native-device discovery reports a precise capability reason.
- SDK/CMake/header closure exposes the reusable provider seam.
Activity