Files
RedBear-OS/local
vasilito 27e5326ee0 intel: GEM Phase 10-12 — DMA-BUF, create params, LMEM allocator
gem_dmabuf.rs (65 lines):
  DmaBufManager: export/import/release with fd→handle mapping
  DmaBufExport/DmaBufImport structs with size tracking
  Per-handle export ref-counting through GemObjectManager

gem_create.rs (40 lines):
  CreateParams: size, region, flags, alignment, name
  CreateManager::create() with param validation
  create_lmem/create_named convenience constructors

gem_lmem.rs (60 lines):
  LmemAllocator: linear allocator for discrete GPU VRAM
  write_region/read_region with DWORD-aligned MMIO access
  64KB alignment, used_bytes tracking, out-of-bounds checking

Ported from Linux 7.1:
  gem/i915_gem_dmabuf.c → DmaBufManager
  gem/i915_gem_create.c → CreateManager + CreateParams
  gem/i915_gem_lmem.c → LmemAllocator

GEM subdirectory: 14 files, 1050 lines, 0 errors
2026-06-02 08:47:27 +03:00
..