Repository navigation
Description
Parent: #28.
Problem
AppScene's Linux shared-image consumer needs a stable WebScene ABI for external-memory planes and producer synchronization. The current retained-image lease only identifies a texture; it cannot describe opaque-FD/DMABUF memory, Vulkan creation/layout/device identity, queue ownership, or SyncFD/timeline waits. Passing raw descriptors without explicit duplication and retirement rules risks leaks, premature closes, and cross-device misuse.
Fix
Add a versioned Linux external-image export boundary with:
- opaque-FD and DMABUF plane descriptors;
- exact Vulkan image-create, layout, queue-family, device/driver UUID and logical producer-timeline metadata;
- SyncFD and opaque semaphore binary/timeline waits;
- atomic CLOEXEC FD duplication with rollback;
- explicit shared-owner and consumer retirement lifecycle tied to
owned_image_pool::consumer; - fail-closed provider SPI and unsupported-provider errors;
- C11 layout, ownership, source, exports, CMake and installed-SDK package/header contracts for every RID.
Remaining parent scope
Pinned Dawn can import external memory but cannot export ordinary Dawn-created texture allocations. #28 remains open for an external-memory Vulkan allocator on Dawn's exact device, Dawn BeginAccess/EndAccess integration, a real provider, ANGLE/EGL alternatives, Linux hardware pixels, device/modifier/layout/device-loss coverage, FD/GPU residency plateaus, zero-readback performance, package and runtime gates.
Acceptance for this slice
- ABI descriptors are versioned, bounded, validated and C11-compatible.
- Acquired descriptors own duplicated CLOEXEC FDs and roll back atomically on error.
- Shared image ownership outlives consumer leases and retires explicitly.
- Every SDK RID carries and hashes the public header.
- Unsupported providers fail specifically and cannot silently fall back to CPU readback.
Activity