summaryrefslogtreecommitdiff
path: root/hw/xwayland/xwayland-glx.c
diff options
context:
space:
mode:
authorOlivier Fourdan <ofourdan@redhat.com>2021-05-20 12:11:42 +0200
committerOlivier Fourdan <fourdan@gmail.com>2021-05-31 08:24:00 +0000
commit24fc8aea1e4bbaba780f1a316fba797a0198f603 (patch)
tree66f5a1dd46b99d20993426afc50681115366901b /hw/xwayland/xwayland-glx.c
parent2de5ded3c6d73c1672d2cb14d603cb23fcd477e5 (diff)
downloadxserver-24fc8aea1e4bbaba780f1a316fba797a0198f603.tar.gz
xwayland: Add preferred GLVND vendor to xwl_screen
If Xwayland's EGLstream backend supports hardware acceleration with the NVIDIA closed-source driver, the GLX library also needs to be one shipped by NVIDIA, that's what GLVND is for. Add a new member to the xwl_screen that the backend can optionally set to the preferred GLVND vendor to use. If not set, "mesa" is assumed. Signed-off-by: Olivier Fourdan <ofourdan@redhat.com> Reviewed-by: Michel Dänzer <mdaenzer@redhat.com>
Diffstat (limited to 'hw/xwayland/xwayland-glx.c')
-rw-r--r--hw/xwayland/xwayland-glx.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/hw/xwayland/xwayland-glx.c b/hw/xwayland/xwayland-glx.c
index 7e2a87fc1..eba8946ab 100644
--- a/hw/xwayland/xwayland-glx.c
+++ b/hw/xwayland/xwayland-glx.c
@@ -378,6 +378,9 @@ egl_screen_probe(ScreenPtr pScreen)
return NULL;
}
+ if (!screen->base.glvnd && xwl_screen->glvnd_vendor)
+ screen->base.glvnd = strdup(xwl_screen->glvnd_vendor);
+
if (!screen->base.glvnd)
screen->base.glvnd = strdup("mesa");