mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 09:38:07 +02:00
mesa: move common/dri into gallium
There are no other consumers, so we can just move this into gallium and out of mesa. Reviewed-by: Emma Anholt <emma@anholt.net> Acked-by: Jason Ekstrand <jason@jlekstrand.net> Acked-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Adam Jackson <ajax@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10153>
This commit is contained in:
parent
01b44d66b1
commit
ea8fa10edd
12 changed files with 9 additions and 85 deletions
|
|
@ -31,6 +31,10 @@ files_libdri = files(
|
|||
'dri_query_renderer.h',
|
||||
'dri_screen.c',
|
||||
'dri_screen.h',
|
||||
'dri_util.c',
|
||||
'dri_util.h',
|
||||
'utils.c',
|
||||
'utils.h',
|
||||
)
|
||||
|
||||
if with_dri
|
||||
|
|
@ -51,7 +55,7 @@ libdri = static_library(
|
|||
files_libdri,
|
||||
include_directories : [
|
||||
inc_include, inc_util, inc_mesa, inc_mapi, inc_src, inc_gallium,
|
||||
inc_gallium_aux, inc_dri_common,
|
||||
inc_gallium_aux, inc_util,
|
||||
],
|
||||
c_args : [libdri_c_args],
|
||||
gnu_symbol_visibility : 'hidden',
|
||||
|
|
|
|||
|
|
@ -53,7 +53,6 @@ elif with_gallium_omx == 'tizonia'
|
|||
)
|
||||
inc_st_omx = [
|
||||
inc_st_omx,
|
||||
inc_dri_common,
|
||||
inc_loader,
|
||||
inc_gbm,
|
||||
inc_st_dri,
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ libgallium_nine = shared_library(
|
|||
files('description.c', 'getproc.c', 'drm.c'),
|
||||
include_directories : [
|
||||
inc_include, inc_src, inc_loader, inc_mapi, inc_mesa, inc_util,
|
||||
inc_dri_common, inc_gallium, inc_gallium_aux, inc_gallium_winsys,
|
||||
inc_gallium, inc_gallium_aux, inc_gallium_winsys,
|
||||
inc_gallium_drivers, inc_d3d9,
|
||||
include_directories('../../frontends/nine'),
|
||||
],
|
||||
|
|
|
|||
|
|
@ -39,16 +39,16 @@ endif
|
|||
|
||||
libgallium_dri = shared_library(
|
||||
'gallium_dri',
|
||||
files('target.c'),
|
||||
files('target.c', 'megadriver_stub.c'),
|
||||
include_directories : [
|
||||
inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux, inc_util, inc_dri_common, inc_gallium_drivers,
|
||||
inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux, inc_util, inc_gallium_drivers,
|
||||
inc_gallium_winsys, include_directories('../../frontends/dri'),
|
||||
],
|
||||
gnu_symbol_visibility : 'hidden',
|
||||
link_args : [ld_args_build_id, ld_args_gc_sections, gallium_dri_ld_args],
|
||||
link_depends : gallium_dri_link_depends,
|
||||
link_with : [
|
||||
libdri, libmesa, libdricommon, libmegadriver_stub, libgalliumvl,
|
||||
libdri, libmesa, libgalliumvl,
|
||||
libgallium, libglapi, libpipe_loader_static, libws_null, libwsw, libswdri,
|
||||
libswkmsdri,
|
||||
],
|
||||
|
|
|
|||
|
|
@ -1,39 +0,0 @@
|
|||
# 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.
|
||||
|
||||
inc_dri_common = include_directories('.')
|
||||
|
||||
libdricommon = static_library(
|
||||
'dricommon',
|
||||
files('utils.c', 'utils.h', 'dri_util.c', 'dri_util.h'),
|
||||
include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux, inc_util],
|
||||
gnu_symbol_visibility : 'hidden',
|
||||
dependencies : [dep_libdrm, idep_mesautil],
|
||||
build_by_default : false,
|
||||
)
|
||||
|
||||
libmegadriver_stub = static_library(
|
||||
'megadriver_stub',
|
||||
'megadriver_stub.c',
|
||||
include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux],
|
||||
gnu_symbol_visibility : 'hidden',
|
||||
dependencies : dep_libdrm,
|
||||
build_by_default : false,
|
||||
)
|
||||
|
|
@ -1,39 +0,0 @@
|
|||
# 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.
|
||||
|
||||
subdir('common')
|
||||
|
||||
# This needs to be installed if any dri drivers (including gallium dri drivers)
|
||||
# are built.
|
||||
if with_dri
|
||||
dri_req_private = []
|
||||
if dep_libdrm.found()
|
||||
dri_req_private = ['libdrm >= ' + _drm_ver]
|
||||
endif
|
||||
|
||||
pkg.generate(
|
||||
name : 'dri',
|
||||
filebase : 'dri',
|
||||
description : 'Direct Rendering Infrastructure',
|
||||
version : meson.project_version(),
|
||||
variables : ['dridriverdir=' + dri_drivers_path],
|
||||
requires_private : dri_req_private,
|
||||
)
|
||||
endif
|
||||
|
|
@ -582,7 +582,6 @@ libmesa = static_library(
|
|||
build_by_default : false,
|
||||
)
|
||||
|
||||
subdir('drivers/dri')
|
||||
if with_tests
|
||||
subdir('main/tests')
|
||||
endif
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue