x11-servers/xwayland-devel: work around missing GLX_EXT_libglvnd

$ pkg install nvidia-driver
$ glxinfo
name of display: :0
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  150 (GLX)
  Minor opcode of failed request:  24 (X_GLXCreateNewContext)
  Value in failed request:  0x0
  Serial number of failed request:  39
  Current serial number in output stream:  40
This commit is contained in:
Jan Beich 2020-05-29 08:40:01 +00:00
parent 0f54fba793
commit 1c76ca5124
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=536952
2 changed files with 26 additions and 0 deletions

View file

@ -4,6 +4,7 @@ PORTNAME= xwayland
DISTVERSIONPREFIX= xorg-server-
DISTVERSION= 1.20.0-655
DISTVERSIONSUFFIX= -g${GL_COMMIT:C/(.{12}).*/\1/}
PORTREVISION= 1
CATEGORIES= x11-servers
PKGNAMESUFFIX= -devel

View file

@ -0,0 +1,25 @@
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,10 @@ egl_screen_probe(ScreenPtr pScreen)
struct xwl_screen *xwl_screen = xwl_screen_get(pScreen);
__GLXscreen *base;
+#ifdef XWL_HAS_EGLSTREAM
+ return NULL;
+#endif
+
if (enableIndirectGLX)
return NULL; /* not implemented */
@@ -353,6 +357,9 @@ egl_screen_probe(ScreenPtr pScreen)
base->destroy = egl_screen_destroy;
base->createDrawable = egl_create_glx_drawable;
/* base.swapInterval = NULL; */
+#ifndef XWL_HAS_EGLSTREAM
+ base->glvnd = strdup("mesa");
+#endif
screen->display = xwl_screen->glamor_ctx->display;