Skip to content

Add a fail-closed Dawn Linux external-image provider seam #637

Closed

Description

@wieslawsoltes

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 WGPUDevice token 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_required when 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

  1. added
    enhancement
    vscode-oss/planned
    on Sep 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementvscode-oss/planned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions