Commit Graph
2 Commits
Author SHA1 Message Date
Anees Iqbal 4c6a29c409 Windows: dma-buf items unix-only; dirty pages, residency and rotation on every host
The runtime's first Windows check stopped at its module tree: dma_buf.rs
takes file descriptors (std::os::fd) unconditionally, while dirty_pages,
host_residency and texture/rotation were unix-only modules that every host's
code names.

- dma_buf.rs: every item that holds or makes a file descriptor (the
  sources, requests and chunks, the imports of dma-bufs and their pages,
  images bound to them, exported pages) is cfg(unix). The DRM-modifier image
  items that hold none (ModifierMemory, the explicit-plane and natural-layout
  checks, the format queries) stay on every host: their extension decides at
  run time.
- dirty_pages and texture/rotation hold no unix code: on every host.
- host_residency: the descriptor limit (RLIMIT_NOFILE), the dma-buf form of
  an import made again and its descriptor counts are unix-only; the pointer
  form and the sweeps stay on every host.
- devtools' scratch lock: the file identity on Windows is the volume serial
  number and file index (GetFileInformationByHandle) in place of dev/ino.

Verified: a step of the Windows check iteration (gnullvm, msi job).
2026-11-15 05:24:38 -08:00
Anees Iqbal 8264a4c1f0 Remove each scratch temporary that outlived its tool, kill included
Content: the tree of `development` at 16257a79ad, unchanged.
2026-10-26 13:19:16 +02:00