diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2022-01-20 03:43:32 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2022-01-20 03:43:32 +0000 |
commit | c4780a22570746dd0188808cb7b8d69b2ee2e7ff (patch) | |
tree | 1506cecc9059db5ca1e55ccd26b95d94e92deceb /sys/kern/kern_pledge.c | |
parent | 4e7bd025f10b79bc46a65840ff86e80c27d95e72 (diff) |
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@
Diffstat (limited to 'sys/kern/kern_pledge.c')
-rw-r--r-- | sys/kern/kern_pledge.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/kern/kern_pledge.c b/sys/kern/kern_pledge.c index c97091bf77f..6687bf91f09 100644 --- a/sys/kern/kern_pledge.c +++ b/sys/kern/kern_pledge.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_pledge.c,v 1.277 2021/12/23 18:50:32 guenther Exp $ */ +/* $OpenBSD: kern_pledge.c,v 1.278 2022/01/20 03:43:30 jsg Exp $ */ /* * Copyright (c) 2015 Nicholas Marriott <nicm@openbsd.org> @@ -771,6 +771,7 @@ pledge_recvfd(struct proc *p, struct file *fp) case DTYPE_SOCKET: case DTYPE_PIPE: case DTYPE_DMABUF: + case DTYPE_SYNC: return (0); case DTYPE_VNODE: vp = fp->f_data; @@ -798,6 +799,7 @@ pledge_sendfd(struct proc *p, struct file *fp) case DTYPE_SOCKET: case DTYPE_PIPE: case DTYPE_DMABUF: + case DTYPE_SYNC: return (0); case DTYPE_VNODE: vp = fp->f_data; |