aboutsummaryrefslogtreecommitdiff
path: root/x11-servers
diff options
context:
space:
mode:
Diffstat (limited to 'x11-servers')
-rw-r--r--x11-servers/xwayland-devel/Makefile2
-rw-r--r--x11-servers/xwayland-devel/files/patch-hw_xwayland_xwayland-glx.c21
2 files changed, 9 insertions, 14 deletions
diff --git a/x11-servers/xwayland-devel/Makefile b/x11-servers/xwayland-devel/Makefile
index 51ea9f0093dc..a6288c5c3c53 100644
--- a/x11-servers/xwayland-devel/Makefile
+++ b/x11-servers/xwayland-devel/Makefile
@@ -4,7 +4,7 @@ PORTNAME= xwayland
DISTVERSIONPREFIX= xorg-server-
DISTVERSION= 1.20.0-655
DISTVERSIONSUFFIX= -g${GL_COMMIT:C/(.{12}).*/\1/}
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= x11-servers
PKGNAMESUFFIX= -devel
diff --git a/x11-servers/xwayland-devel/files/patch-hw_xwayland_xwayland-glx.c b/x11-servers/xwayland-devel/files/patch-hw_xwayland_xwayland-glx.c
index 74ad9d2cbdae..88e139dec839 100644
--- a/x11-servers/xwayland-devel/files/patch-hw_xwayland_xwayland-glx.c
+++ b/x11-servers/xwayland-devel/files/patch-hw_xwayland_xwayland-glx.c
@@ -2,21 +2,16 @@ https://gitlab.freedesktop.org/xorg/xserver/-/issues/1032
--- hw/xwayland/xwayland-glx.c.orig 2020-05-20 07:13:28 UTC
+++ hw/xwayland/xwayland-glx.c
-@@ -343,6 +343,9 @@ egl_screen_probe(ScreenPtr pScreen)
- struct xwl_screen *xwl_screen = xwl_screen_get(pScreen);
- __GLXscreen *base;
-
-+ if (xwl_screen->egl_backend == &xwl_screen->eglstream_backend)
-+ return NULL;
-+
- if (enableIndirectGLX)
- return NULL; /* not implemented */
-
-@@ -353,6 +356,7 @@ egl_screen_probe(ScreenPtr pScreen)
- base->destroy = egl_screen_destroy;
+@@ -354,6 +354,12 @@ egl_screen_probe(ScreenPtr pScreen)
base->createDrawable = egl_create_glx_drawable;
/* base.swapInterval = NULL; */
-+ base->glvnd = strdup("mesa");
++ /* GlxVendorLibrary is queried in DRI2, so assume Mesa for now */
++ if (xwl_screen->egl_backend == &xwl_screen->eglstream_backend)
++ base->glvnd = strdup("nvidia");
++ else
++ base->glvnd = strdup("mesa");
++
screen->display = xwl_screen->glamor_ctx->display;
+ __glXInitExtensionEnableBits(screen->base.glx_enable_bits);