if with_gallium_imx and not with_gallium_etnaviv
error('IMX driver requires etnaviv driver')
endif
+if with_gallium_pl111 and not with_gallium_vc4
+ error('pl111 driver requires vc4 driver')
+endif
dep_libdrm_intel = []
if with_dri_i915 or with_gallium_i915
va_drivers_path = join_paths(get_option('libdir'), 'dri')
endif
+_xa = get_option('gallium-xa')
+if _xa == 'auto'
+ if not ['linux', 'bsd'].contains(host_machine.system())
+ with_gallium_xa = false
+ elif not (with_gallium_nouveau or with_gallium_freedreno or with_gallium_i915
+ or with_gallium_svga)
+ with_gallium_xa = false
+ else
+ with_gallium_xa = true
+ endif
+elif _xa == 'true'
+ if not ['linux', 'bsd'].contains(host_machine.system())
+ error('XA state tracker can only be built on unix-like OSes.')
+ elif not (with_gallium_nouveau or with_gallium_freedreno or with_gallium_i915
+ or with_gallium_svga)
+ error('XA state tracker requires at least one of the following gallium drivers: nouveau, freedreno, i915, svga.')
+ endif
+ with_gallium_xa = true
+else
+ with_gallium_xa = false
+endif
+
+d3d_drivers_path = get_option('d3d-drivers-path')
+if d3d_drivers_path == ''
+ d3d_drivers_path = join_paths(get_option('libdir'), 'd3d')
+endif
+
+with_gallium_st_nine = get_option('gallium-nine')
+if with_gallium_st_nine
+ if not with_gallium_softpipe
+ error('The nine state tracker requires gallium softpipe/llvmpipe.')
+ elif not (with_gallium_radeonsi or with_gallium_nouveau or with_gallium_r600
+ or with_gallium_r300 or with_gallium_svga or with_gallium_i915)
+ error('The nine state tracker requires at least on non-swrast gallium driver.')
+ endif
+ if not with_dri3
+ error('Using nine with wine requires dri3')
+ endif
+endif
+
gl_pkgconfig_c_flags = []
if with_platform_x11
if with_any_vk or (with_glx == 'dri' and with_dri_platform == 'drm')
dep_xcb_glx = dependency('xcb-glx', version : '>= 1.8.1')
dep_xxf86vm = dependency('xxf86vm', required : false)
endif
- if with_any_vk or with_glx == 'dri' or
- (with_gallium_vdpau or with_gallium_xvmc or with_gallium_omx or
- with_gallium_xa)
+ if (with_any_vk or with_glx == 'dri' or
+ (with_gallium_vdpau or with_gallium_xvmc or with_gallium_omx or
+ with_gallium_xa))
dep_xcb = dependency('xcb')
dep_x11_xcb = dependency('x11-xcb')
endif
dep_lmsensors = []
endif
-
-# TODO: nine
-
# TODO: clover
# TODO: gallium tests