Files
osyandClaude Opus 5.5 74da6f57dc Take the embedder contract, events and shm from directx-native
The shared-handle PODs, the event implementation and the anonymous-shm
allocator were hand-kept copies of what dxmt and the Neptune render
server also carry.  They now come from directx-native (statically
linked subproject, pinned in subprojects/directx-native.wrap):

- Shared handles are dxn_shared_texture/fence/buffer.  Every descriptor
  carries struct_size, imports check it with the version, and a texture
  export is one linear plane (plane_count = 1).  Textures also record
  sample quality and usage now.  Lockstep ABI break: 'DMTX'/'DMFN'/'DMTB'
  v2 are gone.
- dmn_event_* re-export dxn_event_*; DmnGFXTEvent keeps only the GFXT
  glue and the libdispatch semaphores.  dup_fd hands out a close-on-exec
  fd.
- dmn_share_anon_file/page_align are dxn_shm_create/dxn_shm_page_align
  (same 16 KiB floor under Rosetta).
- dmn_native_abi_version reports DXN_ABI_VERSION for the render
  server's load-time check.
- directx-native's diagnostics go through DMN_LOG.

dmn_wait_status/DMN_WAIT_* become dxn_wait_status/DXN_WAIT_*.
shared-contract now checks the whole
descriptor (dxn_shared_check, one plane), which the missing plane_count
would have failed.

meson test (x86_64): 48/49; d3d12-atomic64 fails identically with the
pre-change dylib.  Windows VM (D3DMetal): verify PASS, 27 shared opens
and 0 rejected descriptors, Time Spy GT1 VALID 30.02 fps.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-14 18:02:09 -07:00
..