with_egl = false
endif
-if with_egl and not (with_platform_drm or with_platform_surfaceless)
+if with_egl and not (with_platform_drm or with_platform_surfaceless or with_platform_android)
if with_gallium_radeonsi
- error('RadeonSI requires drm or surfaceless platform when using EGL')
+ error('RadeonSI requires the drm, surfaceless or android platform when using EGL')
endif
if with_gallium_virgl
- error('Virgl requires drm or surfaceless platform when using EGL')
+ error('Virgl requires the drm, surfaceless or android platform when using EGL')
endif
endif
else
error('OMX state tracker can only be built on unix-like OSes.')
endif
-elif not (with_platform_x11 or with_platform_drm)
- if ['auto', 'disabled'].contains(_omx)
- _omx = 'disabled'
- else
- error('OMX state tracker requires X11 or drm platform support.')
- endif
elif not (with_gallium_r600 or with_gallium_radeonsi or with_gallium_nouveau)
if ['auto', 'disabled'].contains(_omx)
_omx = 'disabled'
else
_va = 'false'
endif
-elif not (with_platform_x11 or dep_libdrm.found())
- if _va == 'true'
- error('VA state tracker requires X11 platform support or libdrm.')
- else
- _va = 'false'
- endif
elif not (with_gallium_r600 or with_gallium_radeonsi or with_gallium_nouveau)
if _va == 'true'
error('VA state tracker requires at least one of the following gallium drivers: r600, radeonsi, nouveau.')
pre_args += '-DMAJOR_IN_MKDEV'
endif
-foreach h : ['xlocale.h', 'sys/sysctl.h', 'linux/futex.h', 'endian.h', 'dlfcn.h']
+foreach h : ['xlocale.h', 'sys/sysctl.h', 'linux/futex.h', 'endian.h', 'dlfcn.h', 'execinfo.h', 'sys/shm.h']
if cc.compiles('#include <@0@>'.format(h), name : '@0@'.format(h))
pre_args += '-DHAVE_@0@'.format(h.to_upper().underscorify())
endif
dep_libdrm_amdgpu = null_dep
dep_libdrm_radeon = null_dep
dep_libdrm_nouveau = null_dep
-dep_libdrm_etnaviv = null_dep
dep_libdrm_intel = null_dep
_drm_amdgpu_ver = '2.4.97'
_drm_radeon_ver = '2.4.71'
_drm_nouveau_ver = '2.4.66'
-_drm_etnaviv_ver = '2.4.89'
_drm_intel_ver = '2.4.75'
_drm_ver = '2.4.75'
['radeon', (with_gallium_radeonsi or with_dri_r100 or with_dri_r200 or
with_gallium_r300 or with_gallium_r600)],
['nouveau', (with_gallium_nouveau or with_dri_nouveau)],
- ['etnaviv', with_gallium_etnaviv],
]
# VC4 only needs core libdrm support of this version, not a libdrm_vc4
_drm_ver = '2.4.89'
endif
+# etnaviv only needs core libdrm
+if with_gallium_etnaviv
+ _drm_ver = '2.4.89'
+endif
+
# Loop over the enables versions and get the highest libdrm requirement for all
# active drivers.
_drm_blame = ''