Skip to content

Add exact-device Linux external allocation factory contract #645

Closed

Description

@wieslawsoltes

Parent: #28
VS Code OSS integration epic: #227

Problem

The merged Linux external provider can prove public Dawn capabilities and bind an injected allocator to a public WGPUDevice, but it lacks an atomic ownership contract proving that the Dawn adapter/device, native Vulkan tuple and exported-image allocator all come from the same device and lifetime domain.

Scope

  • Add a host-owned exact-device factory result containing public Dawn adapter/device tokens, opaque VkPhysicalDevice/VkDevice/VkQueue identities, queue family, device/driver UUIDs and one shared lifetime anchor.
  • Reject incomplete or mismatched identities before allocating or publishing.
  • Add concrete owned external allocation state for VkImage/VkDeviceMemory, exported FD and retained create-info ownership.
  • Keep the factory/device lifetime alive through SharedTextureMemory BeginAccess/EndAccess and allocation retirement.
  • Add a factory-backed provider overload, Linux SDK/CMake exposure, focused source contracts and validation documentation.
  • Preserve fail-closed behavior: no ordinary Dawn texture, CPU upload/readback or inferred device identity.

Completion

Implementation is committed at 779f2620877cf86093c2f0b7281c1cc9833a85eb on exact WebScene base 999325f6899c1e265e00b15fa0658d0bf71fd031. Only git diff ... --check ran locally under the current implementation policy.

The next child owns the supported pinned Dawn hook and AppScene factory implementation needed to populate this contract on real hardware.

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

    vscode-oss/planned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions