Module: Mesa
Branch: staging/19.1
Commit: b02c6e8ee798eb5166eb4ca863ef08bdcb56d2c4
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=b02c6e8ee798eb5166eb4ca863ef08bdcb56d2c4

Author: Greg V <[email protected]>
Date:   Mon May 20 00:17:17 2019 +0300

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]>
(cherry picked from commit 506ebf55c0446e690c2f40471fce2d4ea2f9762d)

---

 src/gallium/auxiliary/util/u_screen.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/auxiliary/util/u_screen.c 
b/src/gallium/auxiliary/util/u_screen.c
index 410f17421e6..e5e8763f4f1 100644
--- a/src/gallium/auxiliary/util/u_screen.c
+++ b/src/gallium/auxiliary/util/u_screen.c
@@ -359,7 +359,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;

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to