[Mesa-dev] [PATCH 1/7] wayland: Fix the logic in disabling the prime capability

Axel Davy axel.davy at ens.fr
Fri Mar 7 08:26:01 PST 2014


What we want is disabling the path using primes fds if
the client can't create primes fds.

Signed-off-by: Axel Davy <axel.davy at ens.fr>
Signed-off-by: Neil Roberts <neil at linux.intel.com >
---
Neil and me did the same correction independantly.
 src/egl/drivers/dri2/platform_wayland.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/egl/drivers/dri2/platform_wayland.c b/src/egl/drivers/dri2/platform_wayland.c
index a9c067f..59119e3 100644
--- a/src/egl/drivers/dri2/platform_wayland.c
+++ b/src/egl/drivers/dri2/platform_wayland.c
@@ -1046,7 +1046,7 @@ dri2_initialize_wayland(_EGLDriver *drv, _EGLDisplay *disp)
 
    if (dri2_dpy->image->base.version < 7 ||
        dri2_dpy->image->createImageFromFds == NULL)
-      dri2_dpy->capabilities &= WL_DRM_CAPABILITY_PRIME;
+      dri2_dpy->capabilities &= ~WL_DRM_CAPABILITY_PRIME;
 
    types = EGL_WINDOW_BIT;
    for (i = 0; dri2_dpy->driver_configs[i]; i++) {
-- 
1.8.3.2



More information about the mesa-dev mailing list