meson: build r200 driver
v2: - remove TODO that is done Build tested only Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com> Reviewed-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
@@ -88,6 +88,7 @@ with_dri = false
|
|||||||
with_dri_i915 = false
|
with_dri_i915 = false
|
||||||
with_dri_i965 = false
|
with_dri_i965 = false
|
||||||
with_dri_r100 = false
|
with_dri_r100 = false
|
||||||
|
with_dri_r200 = false
|
||||||
with_dri_swrast = false
|
with_dri_swrast = false
|
||||||
_drivers = get_option('dri-drivers')
|
_drivers = get_option('dri-drivers')
|
||||||
if _drivers != ''
|
if _drivers != ''
|
||||||
@@ -95,6 +96,7 @@ if _drivers != ''
|
|||||||
with_dri_i915 = _split.contains('i915')
|
with_dri_i915 = _split.contains('i915')
|
||||||
with_dri_i965 = _split.contains('i965')
|
with_dri_i965 = _split.contains('i965')
|
||||||
with_dri_r100 = _split.contains('r100')
|
with_dri_r100 = _split.contains('r100')
|
||||||
|
with_dri_r200 = _split.contains('r200')
|
||||||
with_dri_swrast = _split.contains('swrast')
|
with_dri_swrast = _split.contains('swrast')
|
||||||
with_dri = true
|
with_dri = true
|
||||||
endif
|
endif
|
||||||
@@ -629,7 +631,7 @@ dep_libdrm_freedreno = []
|
|||||||
if with_amd_vk or with_gallium_radeonsi
|
if with_amd_vk or with_gallium_radeonsi
|
||||||
dep_libdrm_amdgpu = dependency('libdrm_amdgpu', version : '>= 2.4.85')
|
dep_libdrm_amdgpu = dependency('libdrm_amdgpu', version : '>= 2.4.85')
|
||||||
endif
|
endif
|
||||||
if with_gallium_radeonsi or with_dri_r100 # older radeon too
|
if with_gallium_radeonsi or with_dri_r100 or with_dri_r200
|
||||||
dep_libdrm_radeon = dependency('libdrm_radeon', version : '>= 2.4.71')
|
dep_libdrm_radeon = dependency('libdrm_radeon', version : '>= 2.4.71')
|
||||||
endif
|
endif
|
||||||
if with_gallium_nouveau
|
if with_gallium_nouveau
|
||||||
|
@@ -34,7 +34,7 @@ option(
|
|||||||
option(
|
option(
|
||||||
'dri-drivers',
|
'dri-drivers',
|
||||||
type : 'string',
|
type : 'string',
|
||||||
value : 'i915,i965,r100',
|
value : 'i915,i965,r100,r200',
|
||||||
description : 'comma separated list of dri drivers to build.'
|
description : 'comma separated list of dri drivers to build.'
|
||||||
)
|
)
|
||||||
option(
|
option(
|
||||||
|
@@ -34,6 +34,9 @@ endif
|
|||||||
if with_dri_r100
|
if with_dri_r100
|
||||||
subdir('radeon')
|
subdir('radeon')
|
||||||
endif
|
endif
|
||||||
|
if with_dri_r200
|
||||||
|
subdir('r200')
|
||||||
|
endif
|
||||||
|
|
||||||
if dri_drivers != []
|
if dri_drivers != []
|
||||||
libmesa_dri_drivers = shared_library(
|
libmesa_dri_drivers = shared_library(
|
||||||
|
91
src/mesa/drivers/dri/r200/meson.build
Normal file
91
src/mesa/drivers/dri/r200/meson.build
Normal file
@@ -0,0 +1,91 @@
|
|||||||
|
# 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.
|
||||||
|
|
||||||
|
files_r200 = files(
|
||||||
|
'radeon_buffer_objects.c',
|
||||||
|
'radeon_buffer_objects.h',
|
||||||
|
'radeon_cmdbuf.h',
|
||||||
|
'radeon_common.c',
|
||||||
|
'radeon_common.h',
|
||||||
|
'radeon_common_context.c',
|
||||||
|
'radeon_common_context.h',
|
||||||
|
'radeon_debug.c',
|
||||||
|
'radeon_debug.h',
|
||||||
|
'radeon_dma.c',
|
||||||
|
'radeon_dma.h',
|
||||||
|
'radeon_fbo.c',
|
||||||
|
'radeon_fog.c',
|
||||||
|
'radeon_fog.h',
|
||||||
|
'radeon_mipmap_tree.c',
|
||||||
|
'radeon_mipmap_tree.h',
|
||||||
|
'radeon_pixel_read.c',
|
||||||
|
'radeon_queryobj.c',
|
||||||
|
'radeon_queryobj.h',
|
||||||
|
'radeon_span.c',
|
||||||
|
'radeon_span.h',
|
||||||
|
'radeon_tex_copy.c',
|
||||||
|
'radeon_texture.c',
|
||||||
|
'radeon_texture.h',
|
||||||
|
'radeon_tile.c',
|
||||||
|
'radeon_tile.h',
|
||||||
|
'r200_blit.c',
|
||||||
|
'r200_blit.h',
|
||||||
|
'r200_cmdbuf.c',
|
||||||
|
'r200_context.c',
|
||||||
|
'r200_context.h',
|
||||||
|
'r200_fragshader.c',
|
||||||
|
'r200_ioctl.c',
|
||||||
|
'r200_ioctl.h',
|
||||||
|
'r200_maos.c',
|
||||||
|
'r200_maos.h',
|
||||||
|
'r200_reg.h',
|
||||||
|
'r200_sanity.c',
|
||||||
|
'r200_sanity.h',
|
||||||
|
'r200_state.c',
|
||||||
|
'r200_state.h',
|
||||||
|
'r200_state_init.c',
|
||||||
|
'r200_swtcl.c',
|
||||||
|
'r200_swtcl.h',
|
||||||
|
'r200_tcl.c',
|
||||||
|
'r200_tcl.h',
|
||||||
|
'r200_tex.c',
|
||||||
|
'r200_tex.h',
|
||||||
|
'r200_texstate.c',
|
||||||
|
'r200_vertprog.c',
|
||||||
|
'r200_vertprog.h',
|
||||||
|
'radeon_chipset.h',
|
||||||
|
'radeon_screen.c',
|
||||||
|
'radeon_screen.h',
|
||||||
|
'server/radeon_reg.h',
|
||||||
|
)
|
||||||
|
|
||||||
|
libr200 = static_library(
|
||||||
|
'r200',
|
||||||
|
[files_r200, xmlpool_options_h],
|
||||||
|
include_directories : [
|
||||||
|
inc_common, inc_dri_common, inc_util, include_directories('server'),
|
||||||
|
],
|
||||||
|
c_args : [c_vis_args, '-DRADEON_R200'],
|
||||||
|
cpp_args : [cpp_vis_args],
|
||||||
|
dependencies : [dep_libdrm, dep_libdrm_radeon],
|
||||||
|
)
|
||||||
|
|
||||||
|
dri_drivers += libr200
|
||||||
|
dri_link += 'r200_dri.so'
|
Reference in New Issue
Block a user