mirror of
https://gitee.com/openharmony/third_party_mesa3d
synced 2024-11-23 07:19:50 +00:00
meson.build: xxf86vm is not needed for -Dglx-direct=false
It is only used in src/glx/glxcmds.c and when GLX_DIRECT_RENDERING is defined. So only depend on it if GLX direct rendering is actually enabled. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/1905>
This commit is contained in:
parent
d0f8fe5909
commit
442a769600
@ -1779,7 +1779,9 @@ if with_platform_x11
|
||||
if with_glx == 'dri'
|
||||
if with_dri_platform == 'drm'
|
||||
dep_dri2proto = dependency('dri2proto', version : '>= 2.8')
|
||||
dep_xxf86vm = dependency('xxf86vm')
|
||||
if with_glx_direct
|
||||
dep_xxf86vm = dependency('xxf86vm')
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
if (with_egl or
|
||||
@ -1847,7 +1849,9 @@ elif with_glx == 'dri'
|
||||
'xcb-glx >= 1.8.1']
|
||||
if with_dri_platform == 'drm'
|
||||
gl_priv_reqs += 'xcb-dri2 >= 1.8'
|
||||
gl_priv_reqs += 'xxf86vm'
|
||||
if with_glx_direct
|
||||
gl_priv_reqs += 'xxf86vm'
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
if dep_libdrm.found()
|
||||
|
Loading…
Reference in New Issue
Block a user