diff options
author | Greg V <[email protected]> | 2019-05-20 00:17:17 +0300 |
---|---|---|
committer | Eric Engestrom <[email protected]> | 2019-05-22 13:20:31 +0000 |
commit | 506ebf55c0446e690c2f40471fce2d4ea2f9762d (patch) | |
tree | 9ec295b8571ed9c1319a1cd67c80caa4855b97ec | |
parent | ed563b79df269e87fa622507d43d742f087c2817 (diff) |
gallium: enable dmabuf on BSD as well
The DRM_CONF_SHARE_FD code did not check for Linux, so the commit that
introduced PIPE_CAP_DMABUF broke Wayland-EGL clients on FreeBSD.
Fixes: 8ae50e60 (gallium: replace DRM_CONF_SHARE_FD with PIPE_CAP_DMABUF)
Reviewed-by: Dylan Baker <[email protected]>
Reviewed-by: Eric Engestrom <[email protected]>
-rw-r--r-- | src/gallium/auxiliary/util/u_screen.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/util/u_screen.c b/src/gallium/auxiliary/util/u_screen.c index b3a5a93e4f7..62a6a24ff24 100644 --- a/src/gallium/auxiliary/util/u_screen.c +++ b/src/gallium/auxiliary/util/u_screen.c @@ -360,7 +360,7 @@ u_pipe_screen_get_param_defaults(struct pipe_screen *pscreen, return 1; case PIPE_CAP_DMABUF: -#ifdef PIPE_OS_LINUX +#if defined(PIPE_OS_LINUX) || defined(PIPE_OS_BSD) return 1; #else return 0; |