1*61046927SAndroid Build Coastguard Worker# Copyright © 2017 Rob Clark 2*61046927SAndroid Build Coastguard Worker# SPDX-License-Identifier: MIT 3*61046927SAndroid Build Coastguard Worker 4*61046927SAndroid Build Coastguard Workerfiles_libfreedreno = files( 5*61046927SAndroid Build Coastguard Worker 'driinfo_freedreno.h', 6*61046927SAndroid Build Coastguard Worker 'freedreno_autotune.c', 7*61046927SAndroid Build Coastguard Worker 'freedreno_autotune.h', 8*61046927SAndroid Build Coastguard Worker 'freedreno_batch.c', 9*61046927SAndroid Build Coastguard Worker 'freedreno_batch.h', 10*61046927SAndroid Build Coastguard Worker 'freedreno_batch_cache.c', 11*61046927SAndroid Build Coastguard Worker 'freedreno_batch_cache.h', 12*61046927SAndroid Build Coastguard Worker 'freedreno_blitter.c', 13*61046927SAndroid Build Coastguard Worker 'freedreno_blitter.h', 14*61046927SAndroid Build Coastguard Worker 'freedreno_context.c', 15*61046927SAndroid Build Coastguard Worker 'freedreno_context.h', 16*61046927SAndroid Build Coastguard Worker 'freedreno_draw.c', 17*61046927SAndroid Build Coastguard Worker 'freedreno_draw.h', 18*61046927SAndroid Build Coastguard Worker 'freedreno_fence.c', 19*61046927SAndroid Build Coastguard Worker 'freedreno_fence.h', 20*61046927SAndroid Build Coastguard Worker 'freedreno_gmem.c', 21*61046927SAndroid Build Coastguard Worker 'freedreno_gmem.h', 22*61046927SAndroid Build Coastguard Worker 'freedreno_program.c', 23*61046927SAndroid Build Coastguard Worker 'freedreno_program.h', 24*61046927SAndroid Build Coastguard Worker 'freedreno_query.c', 25*61046927SAndroid Build Coastguard Worker 'freedreno_query.h', 26*61046927SAndroid Build Coastguard Worker 'freedreno_query_acc.c', 27*61046927SAndroid Build Coastguard Worker 'freedreno_query_acc.h', 28*61046927SAndroid Build Coastguard Worker 'freedreno_query_hw.c', 29*61046927SAndroid Build Coastguard Worker 'freedreno_query_hw.h', 30*61046927SAndroid Build Coastguard Worker 'freedreno_query_sw.c', 31*61046927SAndroid Build Coastguard Worker 'freedreno_query_sw.h', 32*61046927SAndroid Build Coastguard Worker 'freedreno_resource.c', 33*61046927SAndroid Build Coastguard Worker 'freedreno_resource.h', 34*61046927SAndroid Build Coastguard Worker 'freedreno_screen.c', 35*61046927SAndroid Build Coastguard Worker 'freedreno_screen.h', 36*61046927SAndroid Build Coastguard Worker 'freedreno_state.c', 37*61046927SAndroid Build Coastguard Worker 'freedreno_state.h', 38*61046927SAndroid Build Coastguard Worker 'freedreno_surface.c', 39*61046927SAndroid Build Coastguard Worker 'freedreno_surface.h', 40*61046927SAndroid Build Coastguard Worker 'freedreno_texture.c', 41*61046927SAndroid Build Coastguard Worker 'freedreno_texture.h', 42*61046927SAndroid Build Coastguard Worker 'freedreno_util.c', 43*61046927SAndroid Build Coastguard Worker 'freedreno_util.h', 44*61046927SAndroid Build Coastguard Worker 'a2xx/fd2_blend.c', 45*61046927SAndroid Build Coastguard Worker 'a2xx/fd2_blend.h', 46*61046927SAndroid Build Coastguard Worker 'a2xx/fd2_context.c', 47*61046927SAndroid Build Coastguard Worker 'a2xx/fd2_context.h', 48*61046927SAndroid Build Coastguard Worker 'a2xx/fd2_draw.c', 49*61046927SAndroid Build Coastguard Worker 'a2xx/fd2_draw.h', 50*61046927SAndroid Build Coastguard Worker 'a2xx/fd2_emit.c', 51*61046927SAndroid Build Coastguard Worker 'a2xx/fd2_emit.h', 52*61046927SAndroid Build Coastguard Worker 'a2xx/fd2_gmem.c', 53*61046927SAndroid Build Coastguard Worker 'a2xx/fd2_gmem.h', 54*61046927SAndroid Build Coastguard Worker 'a2xx/fd2_program.c', 55*61046927SAndroid Build Coastguard Worker 'a2xx/fd2_program.h', 56*61046927SAndroid Build Coastguard Worker 'a2xx/fd2_query.c', 57*61046927SAndroid Build Coastguard Worker 'a2xx/fd2_query.h', 58*61046927SAndroid Build Coastguard Worker 'a2xx/fd2_rasterizer.c', 59*61046927SAndroid Build Coastguard Worker 'a2xx/fd2_rasterizer.h', 60*61046927SAndroid Build Coastguard Worker 'a2xx/fd2_resource.c', 61*61046927SAndroid Build Coastguard Worker 'a2xx/fd2_resource.h', 62*61046927SAndroid Build Coastguard Worker 'a2xx/fd2_screen.c', 63*61046927SAndroid Build Coastguard Worker 'a2xx/fd2_screen.h', 64*61046927SAndroid Build Coastguard Worker 'a2xx/fd2_texture.c', 65*61046927SAndroid Build Coastguard Worker 'a2xx/fd2_texture.h', 66*61046927SAndroid Build Coastguard Worker 'a2xx/fd2_util.c', 67*61046927SAndroid Build Coastguard Worker 'a2xx/fd2_util.h', 68*61046927SAndroid Build Coastguard Worker 'a2xx/fd2_zsa.c', 69*61046927SAndroid Build Coastguard Worker 'a2xx/fd2_zsa.h', 70*61046927SAndroid Build Coastguard Worker 'a2xx/ir2.c', 71*61046927SAndroid Build Coastguard Worker 'a2xx/ir2.h', 72*61046927SAndroid Build Coastguard Worker 'a2xx/ir2_assemble.c', 73*61046927SAndroid Build Coastguard Worker 'a2xx/ir2_cp.c', 74*61046927SAndroid Build Coastguard Worker 'a2xx/ir2_nir.c', 75*61046927SAndroid Build Coastguard Worker 'a2xx/ir2_private.h', 76*61046927SAndroid Build Coastguard Worker 'a2xx/ir2_ra.c', 77*61046927SAndroid Build Coastguard Worker 'a3xx/fd3_blend.c', 78*61046927SAndroid Build Coastguard Worker 'a3xx/fd3_blend.h', 79*61046927SAndroid Build Coastguard Worker 'a3xx/fd3_context.c', 80*61046927SAndroid Build Coastguard Worker 'a3xx/fd3_context.h', 81*61046927SAndroid Build Coastguard Worker 'a3xx/fd3_draw.c', 82*61046927SAndroid Build Coastguard Worker 'a3xx/fd3_draw.h', 83*61046927SAndroid Build Coastguard Worker 'a3xx/fd3_emit.c', 84*61046927SAndroid Build Coastguard Worker 'a3xx/fd3_emit.h', 85*61046927SAndroid Build Coastguard Worker 'a3xx/fd3_format.c', 86*61046927SAndroid Build Coastguard Worker 'a3xx/fd3_format.h', 87*61046927SAndroid Build Coastguard Worker 'a3xx/fd3_gmem.c', 88*61046927SAndroid Build Coastguard Worker 'a3xx/fd3_gmem.h', 89*61046927SAndroid Build Coastguard Worker 'a3xx/fd3_program.c', 90*61046927SAndroid Build Coastguard Worker 'a3xx/fd3_program.h', 91*61046927SAndroid Build Coastguard Worker 'a3xx/fd3_query.c', 92*61046927SAndroid Build Coastguard Worker 'a3xx/fd3_query.h', 93*61046927SAndroid Build Coastguard Worker 'a3xx/fd3_rasterizer.c', 94*61046927SAndroid Build Coastguard Worker 'a3xx/fd3_rasterizer.h', 95*61046927SAndroid Build Coastguard Worker 'a3xx/fd3_resource.c', 96*61046927SAndroid Build Coastguard Worker 'a3xx/fd3_resource.h', 97*61046927SAndroid Build Coastguard Worker 'a3xx/fd3_screen.c', 98*61046927SAndroid Build Coastguard Worker 'a3xx/fd3_screen.h', 99*61046927SAndroid Build Coastguard Worker 'a3xx/fd3_texture.c', 100*61046927SAndroid Build Coastguard Worker 'a3xx/fd3_texture.h', 101*61046927SAndroid Build Coastguard Worker 'a3xx/fd3_zsa.c', 102*61046927SAndroid Build Coastguard Worker 'a3xx/fd3_zsa.h', 103*61046927SAndroid Build Coastguard Worker 'a4xx/fd4_blend.c', 104*61046927SAndroid Build Coastguard Worker 'a4xx/fd4_blend.h', 105*61046927SAndroid Build Coastguard Worker 'a4xx/fd4_compute.c', 106*61046927SAndroid Build Coastguard Worker 'a4xx/fd4_compute.h', 107*61046927SAndroid Build Coastguard Worker 'a4xx/fd4_context.c', 108*61046927SAndroid Build Coastguard Worker 'a4xx/fd4_context.h', 109*61046927SAndroid Build Coastguard Worker 'a4xx/fd4_draw.c', 110*61046927SAndroid Build Coastguard Worker 'a4xx/fd4_draw.h', 111*61046927SAndroid Build Coastguard Worker 'a4xx/fd4_emit.c', 112*61046927SAndroid Build Coastguard Worker 'a4xx/fd4_emit.h', 113*61046927SAndroid Build Coastguard Worker 'a4xx/fd4_format.c', 114*61046927SAndroid Build Coastguard Worker 'a4xx/fd4_format.h', 115*61046927SAndroid Build Coastguard Worker 'a4xx/fd4_gmem.c', 116*61046927SAndroid Build Coastguard Worker 'a4xx/fd4_gmem.h', 117*61046927SAndroid Build Coastguard Worker 'a4xx/fd4_image.c', 118*61046927SAndroid Build Coastguard Worker 'a4xx/fd4_image.h', 119*61046927SAndroid Build Coastguard Worker 'a4xx/fd4_program.c', 120*61046927SAndroid Build Coastguard Worker 'a4xx/fd4_program.h', 121*61046927SAndroid Build Coastguard Worker 'a4xx/fd4_query.c', 122*61046927SAndroid Build Coastguard Worker 'a4xx/fd4_query.h', 123*61046927SAndroid Build Coastguard Worker 'a4xx/fd4_rasterizer.c', 124*61046927SAndroid Build Coastguard Worker 'a4xx/fd4_rasterizer.h', 125*61046927SAndroid Build Coastguard Worker 'a4xx/fd4_resource.c', 126*61046927SAndroid Build Coastguard Worker 'a4xx/fd4_resource.h', 127*61046927SAndroid Build Coastguard Worker 'a4xx/fd4_screen.c', 128*61046927SAndroid Build Coastguard Worker 'a4xx/fd4_screen.h', 129*61046927SAndroid Build Coastguard Worker 'a4xx/fd4_texture.c', 130*61046927SAndroid Build Coastguard Worker 'a4xx/fd4_texture.h', 131*61046927SAndroid Build Coastguard Worker 'a4xx/fd4_zsa.c', 132*61046927SAndroid Build Coastguard Worker 'a4xx/fd4_zsa.h', 133*61046927SAndroid Build Coastguard Worker 'a5xx/fd5_blend.c', 134*61046927SAndroid Build Coastguard Worker 'a5xx/fd5_blend.h', 135*61046927SAndroid Build Coastguard Worker 'a5xx/fd5_blitter.c', 136*61046927SAndroid Build Coastguard Worker 'a5xx/fd5_blitter.h', 137*61046927SAndroid Build Coastguard Worker 'a5xx/fd5_compute.c', 138*61046927SAndroid Build Coastguard Worker 'a5xx/fd5_compute.h', 139*61046927SAndroid Build Coastguard Worker 'a5xx/fd5_context.c', 140*61046927SAndroid Build Coastguard Worker 'a5xx/fd5_context.h', 141*61046927SAndroid Build Coastguard Worker 'a5xx/fd5_draw.c', 142*61046927SAndroid Build Coastguard Worker 'a5xx/fd5_draw.h', 143*61046927SAndroid Build Coastguard Worker 'a5xx/fd5_emit.c', 144*61046927SAndroid Build Coastguard Worker 'a5xx/fd5_emit.h', 145*61046927SAndroid Build Coastguard Worker 'a5xx/fd5_format.c', 146*61046927SAndroid Build Coastguard Worker 'a5xx/fd5_format.h', 147*61046927SAndroid Build Coastguard Worker 'a5xx/fd5_gmem.c', 148*61046927SAndroid Build Coastguard Worker 'a5xx/fd5_gmem.h', 149*61046927SAndroid Build Coastguard Worker 'a5xx/fd5_image.c', 150*61046927SAndroid Build Coastguard Worker 'a5xx/fd5_image.h', 151*61046927SAndroid Build Coastguard Worker 'a5xx/fd5_program.c', 152*61046927SAndroid Build Coastguard Worker 'a5xx/fd5_program.h', 153*61046927SAndroid Build Coastguard Worker 'a5xx/fd5_query.c', 154*61046927SAndroid Build Coastguard Worker 'a5xx/fd5_query.h', 155*61046927SAndroid Build Coastguard Worker 'a5xx/fd5_rasterizer.c', 156*61046927SAndroid Build Coastguard Worker 'a5xx/fd5_rasterizer.h', 157*61046927SAndroid Build Coastguard Worker 'a5xx/fd5_resource.c', 158*61046927SAndroid Build Coastguard Worker 'a5xx/fd5_resource.h', 159*61046927SAndroid Build Coastguard Worker 'a5xx/fd5_screen.c', 160*61046927SAndroid Build Coastguard Worker 'a5xx/fd5_screen.h', 161*61046927SAndroid Build Coastguard Worker 'a5xx/fd5_texture.c', 162*61046927SAndroid Build Coastguard Worker 'a5xx/fd5_texture.h', 163*61046927SAndroid Build Coastguard Worker 'a5xx/fd5_zsa.c', 164*61046927SAndroid Build Coastguard Worker 'a5xx/fd5_zsa.h', 165*61046927SAndroid Build Coastguard Worker 'a6xx/fd6_barrier.cc', 166*61046927SAndroid Build Coastguard Worker 'a6xx/fd6_barrier.h', 167*61046927SAndroid Build Coastguard Worker 'a6xx/fd6_blend.cc', 168*61046927SAndroid Build Coastguard Worker 'a6xx/fd6_blend.h', 169*61046927SAndroid Build Coastguard Worker 'a6xx/fd6_blitter.cc', 170*61046927SAndroid Build Coastguard Worker 'a6xx/fd6_blitter.h', 171*61046927SAndroid Build Coastguard Worker 'a6xx/fd6_compute.cc', 172*61046927SAndroid Build Coastguard Worker 'a6xx/fd6_compute.h', 173*61046927SAndroid Build Coastguard Worker 'a6xx/fd6_const.cc', 174*61046927SAndroid Build Coastguard Worker 'a6xx/fd6_const.h', 175*61046927SAndroid Build Coastguard Worker 'a6xx/fd6_context.cc', 176*61046927SAndroid Build Coastguard Worker 'a6xx/fd6_context.h', 177*61046927SAndroid Build Coastguard Worker 'a6xx/fd6_draw.cc', 178*61046927SAndroid Build Coastguard Worker 'a6xx/fd6_draw.h', 179*61046927SAndroid Build Coastguard Worker 'a6xx/fd6_emit.cc', 180*61046927SAndroid Build Coastguard Worker 'a6xx/fd6_emit.h', 181*61046927SAndroid Build Coastguard Worker 'a6xx/fd6_gmem.cc', 182*61046927SAndroid Build Coastguard Worker 'a6xx/fd6_gmem.h', 183*61046927SAndroid Build Coastguard Worker 'a6xx/fd6_image.cc', 184*61046927SAndroid Build Coastguard Worker 'a6xx/fd6_image.h', 185*61046927SAndroid Build Coastguard Worker 'a6xx/fd6_program.cc', 186*61046927SAndroid Build Coastguard Worker 'a6xx/fd6_program.h', 187*61046927SAndroid Build Coastguard Worker 'a6xx/fd6_query.cc', 188*61046927SAndroid Build Coastguard Worker 'a6xx/fd6_query.h', 189*61046927SAndroid Build Coastguard Worker 'a6xx/fd6_rasterizer.cc', 190*61046927SAndroid Build Coastguard Worker 'a6xx/fd6_rasterizer.h', 191*61046927SAndroid Build Coastguard Worker 'a6xx/fd6_resource.cc', 192*61046927SAndroid Build Coastguard Worker 'a6xx/fd6_resource.h', 193*61046927SAndroid Build Coastguard Worker 'a6xx/fd6_screen.cc', 194*61046927SAndroid Build Coastguard Worker 'a6xx/fd6_screen.h', 195*61046927SAndroid Build Coastguard Worker 'a6xx/fd6_texture.cc', 196*61046927SAndroid Build Coastguard Worker 'a6xx/fd6_texture.h', 197*61046927SAndroid Build Coastguard Worker 'a6xx/fd6_vsc.cc', 198*61046927SAndroid Build Coastguard Worker 'a6xx/fd6_vsc.h', 199*61046927SAndroid Build Coastguard Worker 'a6xx/fd6_zsa.cc', 200*61046927SAndroid Build Coastguard Worker 'a6xx/fd6_zsa.h', 201*61046927SAndroid Build Coastguard Worker 'ir3/ir3_cache.c', 202*61046927SAndroid Build Coastguard Worker 'ir3/ir3_cache.h', 203*61046927SAndroid Build Coastguard Worker 'ir3/ir3_const.h', 204*61046927SAndroid Build Coastguard Worker 'ir3/ir3_descriptor.c', 205*61046927SAndroid Build Coastguard Worker 'ir3/ir3_descriptor.h', 206*61046927SAndroid Build Coastguard Worker 'ir3/ir3_gallium.c', 207*61046927SAndroid Build Coastguard Worker 'ir3/ir3_gallium.h', 208*61046927SAndroid Build Coastguard Worker) 209*61046927SAndroid Build Coastguard Worker 210*61046927SAndroid Build Coastguard Workerfreedreno_tracepoints = custom_target( 211*61046927SAndroid Build Coastguard Worker 'freedreno_tracepoints.[ch]', 212*61046927SAndroid Build Coastguard Worker input: 'freedreno_tracepoints.py', 213*61046927SAndroid Build Coastguard Worker output: ['freedreno_tracepoints.c', 'freedreno_tracepoints.h'], 214*61046927SAndroid Build Coastguard Worker command: [ 215*61046927SAndroid Build Coastguard Worker prog_python, '@INPUT@', 216*61046927SAndroid Build Coastguard Worker '-p', join_paths(dir_source_root, 'src/util/perf/'), 217*61046927SAndroid Build Coastguard Worker '-C', '@OUTPUT0@', 218*61046927SAndroid Build Coastguard Worker '-H', '@OUTPUT1@', 219*61046927SAndroid Build Coastguard Worker ], 220*61046927SAndroid Build Coastguard Worker depend_files: u_trace_py, 221*61046927SAndroid Build Coastguard Worker) 222*61046927SAndroid Build Coastguard Worker 223*61046927SAndroid Build Coastguard Workerfiles_libfreedreno += freedreno_tracepoints 224*61046927SAndroid Build Coastguard Worker 225*61046927SAndroid Build Coastguard Workerfreedreno_includes = [ 226*61046927SAndroid Build Coastguard Worker inc_mesa, inc_mapi, 227*61046927SAndroid Build Coastguard Worker inc_src, inc_include, inc_gallium, inc_gallium_aux, 228*61046927SAndroid Build Coastguard Worker inc_freedreno, include_directories('ir3'), 229*61046927SAndroid Build Coastguard Worker] 230*61046927SAndroid Build Coastguard Worker 231*61046927SAndroid Build Coastguard Workerfreedreno_c_args = [no_override_init_args] 232*61046927SAndroid Build Coastguard Workerfreedreno_c_args += cc.get_supported_arguments([ 233*61046927SAndroid Build Coastguard Worker '-Wno-packed-bitfield-compat', 234*61046927SAndroid Build Coastguard Worker '-Wno-array-bounds', 235*61046927SAndroid Build Coastguard Worker]) 236*61046927SAndroid Build Coastguard Worker 237*61046927SAndroid Build Coastguard Workerfreedreno_cpp_args = [] 238*61046927SAndroid Build Coastguard Workerfreedreno_cpp_args += cpp.get_supported_arguments([ 239*61046927SAndroid Build Coastguard Worker '-fno-exceptions', 240*61046927SAndroid Build Coastguard Worker '-fno-rtti', 241*61046927SAndroid Build Coastguard Worker '-Wno-packed-bitfield-compat', 242*61046927SAndroid Build Coastguard Worker '-Wno-c99-designator', 243*61046927SAndroid Build Coastguard Worker '-Wno-reorder-init-list', 244*61046927SAndroid Build Coastguard Worker '-Wno-address-of-temporary', 245*61046927SAndroid Build Coastguard Worker '-Wno-c++11-narrowing', 246*61046927SAndroid Build Coastguard Worker '-Wno-narrowing', 247*61046927SAndroid Build Coastguard Worker '-Wno-sign-compare', 248*61046927SAndroid Build Coastguard Worker '-Wno-missing-field-initializers', 249*61046927SAndroid Build Coastguard Worker '-Wno-reorder', 250*61046927SAndroid Build Coastguard Worker '-Wno-array-bounds', 251*61046927SAndroid Build Coastguard Worker '-Wno-overflow', 252*61046927SAndroid Build Coastguard Worker '-Wno-c++11-narrowing', 253*61046927SAndroid Build Coastguard Worker '-Wno-vla-cxx-extension', 254*61046927SAndroid Build Coastguard Worker '-Wno-address-of-packed-member', 255*61046927SAndroid Build Coastguard Worker]) 256*61046927SAndroid Build Coastguard Worker 257*61046927SAndroid Build Coastguard Worker# HACK compiler.get_supported_arguments()/has_argument() do not seem 258*61046927SAndroid Build Coastguard Worker# to be reliable for cross builds (!?!) so just jam in some args we 259*61046927SAndroid Build Coastguard Worker# need and hope for the best 260*61046927SAndroid Build Coastguard Workerif meson.is_cross_build() 261*61046927SAndroid Build Coastguard Worker freedreno_cpp_args += '-Wno-array-bounds' 262*61046927SAndroid Build Coastguard Worker freedreno_cpp_args += '-Wno-c++11-narrowing' 263*61046927SAndroid Build Coastguard Worker freedreno_cpp_args += '-Wno-c99-designator' 264*61046927SAndroid Build Coastguard Workerendif 265*61046927SAndroid Build Coastguard Worker 266*61046927SAndroid Build Coastguard Workerlibfreedreno_dependencies = [ 267*61046927SAndroid Build Coastguard Worker dep_libdrm, 268*61046927SAndroid Build Coastguard Worker idep_mesautil, 269*61046927SAndroid Build Coastguard Worker idep_nir_headers, 270*61046927SAndroid Build Coastguard Worker idep_libfreedreno_common, 271*61046927SAndroid Build Coastguard Worker idep_u_tracepoints, 272*61046927SAndroid Build Coastguard Worker] 273*61046927SAndroid Build Coastguard Worker 274*61046927SAndroid Build Coastguard Workerif with_perfetto 275*61046927SAndroid Build Coastguard Worker libfreedreno_dependencies += dep_perfetto 276*61046927SAndroid Build Coastguard Worker files_libfreedreno += 'freedreno_perfetto.cc' 277*61046927SAndroid Build Coastguard Workerendif 278*61046927SAndroid Build Coastguard Worker 279*61046927SAndroid Build Coastguard Worker# The header file ends up part of the build (but just a stub) 280*61046927SAndroid Build Coastguard Worker# in either case: 281*61046927SAndroid Build Coastguard Workerfiles_libfreedreno += 'freedreno_perfetto.h' 282*61046927SAndroid Build Coastguard Worker 283*61046927SAndroid Build Coastguard Workerlibfreedreno = static_library( 284*61046927SAndroid Build Coastguard Worker 'freedreno', 285*61046927SAndroid Build Coastguard Worker [files_libfreedreno, freedreno_xml_header_files], 286*61046927SAndroid Build Coastguard Worker include_directories : freedreno_includes, 287*61046927SAndroid Build Coastguard Worker c_args : [freedreno_c_args], 288*61046927SAndroid Build Coastguard Worker cpp_args : [freedreno_cpp_args], 289*61046927SAndroid Build Coastguard Worker gnu_symbol_visibility : 'hidden', 290*61046927SAndroid Build Coastguard Worker dependencies : libfreedreno_dependencies, 291*61046927SAndroid Build Coastguard Worker) 292*61046927SAndroid Build Coastguard Worker 293*61046927SAndroid Build Coastguard Workerdriver_freedreno = declare_dependency( 294*61046927SAndroid Build Coastguard Worker compile_args : '-DGALLIUM_FREEDRENO', 295*61046927SAndroid Build Coastguard Worker link_with : [ 296*61046927SAndroid Build Coastguard Worker libfreedrenowinsys, 297*61046927SAndroid Build Coastguard Worker libfreedreno, 298*61046927SAndroid Build Coastguard Worker libfreedreno_drm, 299*61046927SAndroid Build Coastguard Worker libfreedreno_ir2, 300*61046927SAndroid Build Coastguard Worker libfreedreno_ir3, 301*61046927SAndroid Build Coastguard Worker libfreedreno_layout, 302*61046927SAndroid Build Coastguard Worker libfreedreno_perfcntrs 303*61046927SAndroid Build Coastguard Worker ], 304*61046927SAndroid Build Coastguard Worker dependencies : [ 305*61046927SAndroid Build Coastguard Worker idep_nir, 306*61046927SAndroid Build Coastguard Worker idep_xmlconfig, 307*61046927SAndroid Build Coastguard Worker ], 308*61046927SAndroid Build Coastguard Worker) 309*61046927SAndroid Build Coastguard Worker 310*61046927SAndroid Build Coastguard Workerir3_compiler = executable( 311*61046927SAndroid Build Coastguard Worker 'ir3_compiler', 312*61046927SAndroid Build Coastguard Worker ['ir3/ir3_cmdline.c', freedreno_xml_header_files], 313*61046927SAndroid Build Coastguard Worker include_directories : freedreno_includes, 314*61046927SAndroid Build Coastguard Worker dependencies : [ 315*61046927SAndroid Build Coastguard Worker idep_nir, 316*61046927SAndroid Build Coastguard Worker idep_vtn, 317*61046927SAndroid Build Coastguard Worker idep_mesautil, 318*61046927SAndroid Build Coastguard Worker ], 319*61046927SAndroid Build Coastguard Worker link_with : [ 320*61046927SAndroid Build Coastguard Worker libfreedreno, 321*61046927SAndroid Build Coastguard Worker libfreedreno_drm, 322*61046927SAndroid Build Coastguard Worker libfreedreno_ir3, 323*61046927SAndroid Build Coastguard Worker libfreedreno_layout, 324*61046927SAndroid Build Coastguard Worker libgallium, 325*61046927SAndroid Build Coastguard Worker libglsl_standalone, 326*61046927SAndroid Build Coastguard Worker ], 327*61046927SAndroid Build Coastguard Worker build_by_default : with_tools.contains('freedreno'), 328*61046927SAndroid Build Coastguard Worker install : false, 329*61046927SAndroid Build Coastguard Worker) 330*61046927SAndroid Build Coastguard Worker 331*61046927SAndroid Build Coastguard Workergmemtool = executable( 332*61046927SAndroid Build Coastguard Worker 'gmemtool', 333*61046927SAndroid Build Coastguard Worker [ 334*61046927SAndroid Build Coastguard Worker 'gmemtool.c', 335*61046927SAndroid Build Coastguard Worker freedreno_tracepoints[1] 336*61046927SAndroid Build Coastguard Worker ], 337*61046927SAndroid Build Coastguard Worker include_directories : freedreno_includes, 338*61046927SAndroid Build Coastguard Worker dependencies : [ 339*61046927SAndroid Build Coastguard Worker idep_nir, 340*61046927SAndroid Build Coastguard Worker idep_mesautil, 341*61046927SAndroid Build Coastguard Worker idep_u_tracepoints, 342*61046927SAndroid Build Coastguard Worker idep_xmlconfig, 343*61046927SAndroid Build Coastguard Worker ], 344*61046927SAndroid Build Coastguard Worker link_with : [ 345*61046927SAndroid Build Coastguard Worker libfreedreno, 346*61046927SAndroid Build Coastguard Worker libfreedreno_drm, 347*61046927SAndroid Build Coastguard Worker libfreedreno_ir2, 348*61046927SAndroid Build Coastguard Worker libfreedreno_ir3, 349*61046927SAndroid Build Coastguard Worker libfreedreno_layout, 350*61046927SAndroid Build Coastguard Worker libgallium, 351*61046927SAndroid Build Coastguard Worker libglsl_standalone, 352*61046927SAndroid Build Coastguard Worker libfreedreno_perfcntrs, 353*61046927SAndroid Build Coastguard Worker ], 354*61046927SAndroid Build Coastguard Worker build_by_default : with_tools.contains('freedreno'), 355*61046927SAndroid Build Coastguard Worker install : false, 356*61046927SAndroid Build Coastguard Worker) 357