gallium: Do not include offscreen winsys if glx is disabled
authornyanmisaka <nst799610810@gmail.com>
Tue, 27 Sep 2022 18:38:42 +0000 (02:38 +0800)
committerMarge Bot <emma+marge@anholt.net>
Wed, 28 Sep 2022 19:39:11 +0000 (19:39 +0000)
commitae201bcd42a7b5efe5b21270e081d242d2a97aad
tree98b9a6a1bb682ad1c9d41bfdbda054899244f6df
parent521da0360a040e39cb20a0112dec935e373af86e
gallium: Do not include offscreen winsys if glx is disabled

Offscreen winsys introduced in Mesa 22.2 depends on glx(dri) and libswkmsdri.

The error message is:
/usr/bin/ld: src/gallium/auxiliary/libgalliumvlwinsys.a.p/vl_vl_winsys_dri_vgem.c.o: in function `vl_vgem_drm_screen_create':
vl_winsys_dri_vgem.c:(.text.vl_vgem_drm_screen_create+0x28): undefined reference to `kms_dri_create_winsys'

Fixes: 31dcb396 (gallium/vl: Add software winsys and offscreen winsys)

Cc: mesa-stable
Signed-off-by: nyanmisaka <nst799610810@gmail.com>
Reviewed-by: Sil Vilerino <sivileri@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18843>
src/gallium/auxiliary/meson.build
src/gallium/frontends/va/context.c