meson: build imx driver
Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com> Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
This commit is contained in:
@@ -98,6 +98,7 @@ with_gallium_softpipe = false
|
|||||||
with_gallium_vc4 = false
|
with_gallium_vc4 = false
|
||||||
with_gallium_vc5 = false
|
with_gallium_vc5 = false
|
||||||
with_gallium_etnaviv = false
|
with_gallium_etnaviv = false
|
||||||
|
with_gallium_imx = false
|
||||||
_drivers = get_option('gallium-drivers')
|
_drivers = get_option('gallium-drivers')
|
||||||
if _drivers != ''
|
if _drivers != ''
|
||||||
_split = _drivers.split(',')
|
_split = _drivers.split(',')
|
||||||
@@ -108,6 +109,7 @@ if _drivers != ''
|
|||||||
with_gallium_vc4 = _split.contains('vc4')
|
with_gallium_vc4 = _split.contains('vc4')
|
||||||
with_gallium_vc5 = _split.contains('vc5')
|
with_gallium_vc5 = _split.contains('vc5')
|
||||||
with_gallium_etnaviv = _split.contains('etnaviv')
|
with_gallium_etnaviv = _split.contains('etnaviv')
|
||||||
|
with_gallium_imx = _split.contains('imx')
|
||||||
with_gallium = true
|
with_gallium = true
|
||||||
with_dri = true
|
with_dri = true
|
||||||
endif
|
endif
|
||||||
@@ -123,6 +125,9 @@ endif
|
|||||||
if with_dri_swrast and with_gallium_softpipe
|
if with_dri_swrast and with_gallium_softpipe
|
||||||
error('Only one swrast provider can be built')
|
error('Only one swrast provider can be built')
|
||||||
endif
|
endif
|
||||||
|
if with_gallium_imx and not with_gallium_etnaviv
|
||||||
|
error('IMX driver requires etnaviv driver')
|
||||||
|
endif
|
||||||
|
|
||||||
dep_libdrm_intel = []
|
dep_libdrm_intel = []
|
||||||
if with_dri_i915
|
if with_dri_i915
|
||||||
|
@@ -46,7 +46,7 @@ option(
|
|||||||
option(
|
option(
|
||||||
'gallium-drivers',
|
'gallium-drivers',
|
||||||
type : 'string',
|
type : 'string',
|
||||||
value : 'pl111,radeonsi,nouveau,swrast,vc4,etnaviv',
|
value : 'pl111,radeonsi,nouveau,swrast,vc4,etnaviv,imx',
|
||||||
description : 'comma separated list of gallium drivers to build.'
|
description : 'comma separated list of gallium drivers to build.'
|
||||||
)
|
)
|
||||||
option(
|
option(
|
||||||
|
@@ -61,13 +61,15 @@ endif
|
|||||||
if with_gallium_etnaviv
|
if with_gallium_etnaviv
|
||||||
subdir('winsys/etnaviv/drm')
|
subdir('winsys/etnaviv/drm')
|
||||||
endif
|
endif
|
||||||
|
if with_gallium_imx
|
||||||
|
subdir('winsys/imx/drm')
|
||||||
|
endif
|
||||||
subdir('state_trackers/dri')
|
subdir('state_trackers/dri')
|
||||||
# TODO: freedreno
|
# TODO: freedreno
|
||||||
# TODO: i915
|
# TODO: i915
|
||||||
# TODO: SVGA
|
# TODO: SVGA
|
||||||
# TODO: r300
|
# TODO: r300
|
||||||
# TODO: r600
|
# TODO: r600
|
||||||
# TODO: IMX
|
|
||||||
# TODO: SWR
|
# TODO: SWR
|
||||||
# TODO: virgl
|
# TODO: virgl
|
||||||
# TODO: winsys/sw/xlib
|
# TODO: winsys/sw/xlib
|
||||||
|
@@ -96,6 +96,11 @@ if with_gallium_etnaviv
|
|||||||
gallium_dri_link_with += [libetnaviv, libetnavivdrm]
|
gallium_dri_link_with += [libetnaviv, libetnavivdrm]
|
||||||
gallium_dri_drivers += 'etnaviv_dri.so'
|
gallium_dri_drivers += 'etnaviv_dri.so'
|
||||||
endif
|
endif
|
||||||
|
if with_gallium_imx
|
||||||
|
gallium_dri_c_args += '-DGALLIUM_IMX'
|
||||||
|
gallium_dri_link_with += libimxdrm
|
||||||
|
gallium_dri_drivers += 'imx-drm_dri.so'
|
||||||
|
endif
|
||||||
|
|
||||||
if with_gallium_vc4 or with_gallium_vc5
|
if with_gallium_vc4 or with_gallium_vc5
|
||||||
gallium_dri_link_with += libbroadcom_cle
|
gallium_dri_link_with += libbroadcom_cle
|
||||||
|
28
src/gallium/winsys/imx/drm/meson.build
Normal file
28
src/gallium/winsys/imx/drm/meson.build
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
# Copyright © 2017 Intel Corporation
|
||||||
|
|
||||||
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
# of this software and associated documentation files (the "Software"), to deal
|
||||||
|
# in the Software without restriction, including without limitation the rights
|
||||||
|
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
# copies of the Software, and to permit persons to whom the Software is
|
||||||
|
# furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
# The above copyright notice and this permission notice shall be included in
|
||||||
|
# all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
# SOFTWARE.
|
||||||
|
|
||||||
|
libimxdrm = static_library(
|
||||||
|
'imxdrm',
|
||||||
|
'imx_drm_winsys.c',
|
||||||
|
include_directories : [
|
||||||
|
inc_include, inc_src, inc_gallium, inc_gallium_aux,
|
||||||
|
include_directories('../..'),
|
||||||
|
],
|
||||||
|
)
|
Reference in New Issue
Block a user