initial support for drm sync files, fences associated with file
authorjsg <jsg@openbsd.org>
Thu, 20 Jan 2022 03:43:30 +0000 (03:43 +0000)
committerjsg <jsg@openbsd.org>
Thu, 20 Jan 2022 03:43:30 +0000 (03:43 +0000)
commit61c1bba6b4d9ccd6369b7a98413218e87fdef6c1
treec1ab8e4092909971a96db694d323e229af7f1677
parent8a8c7d5cf6199fff6a9661022048f09172d6779e
initial support for drm sync files, fences associated with file
descriptors for explicit fencing

tested with libdrm's amdgpu_test syncobj timeline tests and vkcube on
intel broadwell with Mesa 21.3 (which hangs without sync file support
after the 'anv: Assume syncobj support' Mesa commit)

feedback and ok visa@
sys/dev/pci/drm/drm_linux.c
sys/dev/pci/drm/i915/gem/i915_gem_shmem.c
sys/dev/pci/drm/include/linux/file.h
sys/dev/pci/drm/include/linux/sync_file.h
sys/kern/kern_pledge.c
sys/sys/file.h