X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fgallium%2Fauxiliary%2Fmeson.build;h=a1a1b5b64e6cea54ccf4e7526b32826398f0edb2;hb=96a5ced65f6cfb666d040f3d75f40c6c5878946b;hp=948fb86b3b2017637197874b366481fcd1c7cfcc;hpb=28c95cdb299f56c8224446368fb464b7b1d44a6c;p=mesa.git diff --git a/src/gallium/auxiliary/meson.build b/src/gallium/auxiliary/meson.build index 948fb86b3b2..a1a1b5b64e6 100644 --- a/src/gallium/auxiliary/meson.build +++ b/src/gallium/auxiliary/meson.build @@ -46,6 +46,7 @@ files_libgallium = files( 'draw/draw_pipe_stipple.c', 'draw/draw_pipe_twoside.c', 'draw/draw_pipe_unfilled.c', + 'draw/draw_pipe_user_cull.c', 'draw/draw_pipe_util.c', 'draw/draw_pipe_validate.c', 'draw/draw_pipe_vbuf.c', @@ -70,6 +71,8 @@ files_libgallium = files( 'draw/draw_pt_vsplit_tmp.h', 'draw/draw_so_emit_tmp.h', 'draw/draw_split_tmp.h', + 'draw/draw_tess.c', + 'draw/draw_tess.h', 'draw/draw_vbuf.h', 'draw/draw_vertex.c', 'draw/draw_vertex.h', @@ -77,6 +80,35 @@ files_libgallium = files( 'draw/draw_vs_exec.c', 'draw/draw_vs.h', 'draw/draw_vs_variant.c', + 'driver_ddebug/dd_context.c', + 'driver_ddebug/dd_draw.c', + 'driver_ddebug/dd_pipe.h', + 'driver_ddebug/dd_public.h', + 'driver_ddebug/dd_screen.c', + 'driver_ddebug/dd_util.h', + 'driver_noop/noop_pipe.c', + 'driver_noop/noop_public.h', + 'driver_noop/noop_state.c', + 'driver_rbug/rbug_context.c', + 'driver_rbug/rbug_context.h', + 'driver_rbug/rbug_core.c', + 'driver_rbug/rbug_objects.c', + 'driver_rbug/rbug_objects.h', + 'driver_rbug/rbug_public.h', + 'driver_rbug/rbug_screen.c', + 'driver_rbug/rbug_screen.h', + 'driver_trace/tr_context.c', + 'driver_trace/tr_context.h', + 'driver_trace/tr_dump.c', + 'driver_trace/tr_dump_defines.h', + 'driver_trace/tr_dump.h', + 'driver_trace/tr_dump_state.c', + 'driver_trace/tr_dump_state.h', + 'driver_trace/tr_public.h', + 'driver_trace/tr_screen.c', + 'driver_trace/tr_screen.h', + 'driver_trace/tr_texture.c', + 'driver_trace/tr_texture.h', 'hud/font.c', 'hud/font.h', 'hud/hud_context.c', @@ -93,29 +125,17 @@ files_libgallium = files( 'indices/u_indices_priv.h', 'indices/u_primconvert.c', 'indices/u_primconvert.h', - 'os/os_memory_aligned.h', - 'os/os_memory_debug.h', - 'os/os_memory_stdc.h', - 'os/os_memory.h', - 'os/os_misc.c', - 'os/os_misc.h', 'os/os_mman.h', 'os/os_process.c', 'os/os_process.h', 'os/os_thread.h', - 'os/os_time.c', - 'os/os_time.h', 'pipebuffer/pb_buffer_fenced.c', 'pipebuffer/pb_buffer_fenced.h', 'pipebuffer/pb_buffer.h', - 'pipebuffer/pb_buffer_malloc.c', - 'pipebuffer/pb_bufmgr_alt.c', 'pipebuffer/pb_bufmgr_cache.c', 'pipebuffer/pb_bufmgr_debug.c', 'pipebuffer/pb_bufmgr.h', 'pipebuffer/pb_bufmgr_mm.c', - 'pipebuffer/pb_bufmgr_ondemand.c', - 'pipebuffer/pb_bufmgr_pool.c', 'pipebuffer/pb_bufmgr_slab.c', 'pipebuffer/pb_cache.c', 'pipebuffer/pb_cache.h', @@ -163,6 +183,7 @@ files_libgallium = files( 'tgsi/tgsi_build.h', 'tgsi/tgsi_dump.c', 'tgsi/tgsi_dump.h', + 'tgsi/tgsi_dynamic_indexing.c', 'tgsi/tgsi_exec.c', 'tgsi/tgsi_exec.h', 'tgsi/tgsi_emulate.c', @@ -197,6 +218,7 @@ files_libgallium = files( 'tgsi/tgsi_ureg.h', 'tgsi/tgsi_util.c', 'tgsi/tgsi_util.h', + 'tgsi/tgsi_vpos.c', 'translate/translate.c', 'translate/translate.h', 'translate/translate_cache.c', @@ -217,23 +239,16 @@ files_libgallium = files( 'util/u_box.h', 'util/u_cache.c', 'util/u_cache.h', - 'util/u_cpu_detect.c', - 'util/u_cpu_detect.h', - 'util/u_debug.c', - 'util/u_debug.h', + 'util/u_compute.c', + 'util/u_compute.h', 'util/u_debug_describe.c', 'util/u_debug_describe.h', 'util/u_debug_flush.c', 'util/u_debug_flush.h', 'util/u_debug_image.c', 'util/u_debug_image.h', - 'util/u_debug_memory.c', 'util/u_debug_refcnt.c', 'util/u_debug_refcnt.h', - 'util/u_debug_stack.c', - 'util/u_debug_stack.h', - 'util/u_debug_symbol.c', - 'util/u_debug_symbol.h', 'util/u_dirty_flags.h', 'util/u_dirty_surfaces.h', 'util/u_dl.c', @@ -247,24 +262,6 @@ files_libgallium = files( 'util/u_dump.h', 'util/u_dump_state.c', 'util/u_fifo.h', - 'util/u_format.c', - 'util/u_format.h', - 'util/u_format_etc.c', - 'util/u_format_etc.h', - 'util/u_format_latc.c', - 'util/u_format_latc.h', - 'util/u_format_other.c', - 'util/u_format_other.h', - 'util/u_format_rgtc.c', - 'util/u_format_rgtc.h', - 'util/u_format_s3tc.c', - 'util/u_format_s3tc.h', - 'util/u_format_tests.c', - 'util/u_format_tests.h', - 'util/u_format_yuv.c', - 'util/u_format_yuv.h', - 'util/u_format_zs.c', - 'util/u_format_zs.h', 'util/u_framebuffer.c', 'util/u_framebuffer.h', 'util/u_gen_mipmap.c', @@ -283,18 +280,16 @@ files_libgallium = files( 'util/u_inlines.h', 'util/u_linear.c', 'util/u_linear.h', + 'util/u_live_shader_cache.c', + 'util/u_live_shader_cache.h', 'util/u_log.c', 'util/u_log.h', - 'util/u_math.c', - 'util/u_math.h', - 'util/u_memory.h', - 'util/u_mm.c', - 'util/u_mm.h', 'util/u_network.c', 'util/u_network.h', 'util/u_pack_color.h', 'util/u_pointer.h', 'util/u_prim.h', + 'util/u_prim.c', 'util/u_prim_restart.c', 'util/u_prim_restart.h', 'util/u_pstipple.c', @@ -304,29 +299,30 @@ files_libgallium = files( 'util/u_rect.h', 'util/u_resource.c', 'util/u_resource.h', - 'util/u_ringbuffer.c', - 'util/u_ringbuffer.h', 'util/u_sampler.c', 'util/u_sampler.h', + 'util/u_screen.c', + 'util/u_screen.h', 'util/u_simple_shaders.c', 'util/u_simple_shaders.h', + 'util/u_split_draw.c', + 'util/u_split_draw.h', 'util/u_split_prim.h', 'util/u_sse.h', 'util/u_suballoc.c', 'util/u_suballoc.h', 'util/u_surface.c', 'util/u_surface.h', - 'util/u_surfaces.c', - 'util/u_surfaces.h', 'util/u_tests.c', 'util/u_tests.h', 'util/u_texture.c', 'util/u_texture.h', 'util/u_tile.c', 'util/u_tile.h', - 'util/u_time.h', 'util/u_transfer.c', 'util/u_transfer.h', + 'util/u_transfer_helper.c', + 'util/u_transfer_helper.h', 'util/u_threaded_context.c', 'util/u_threaded_context.h', 'util/u_threaded_context_calls.h', @@ -338,9 +334,11 @@ files_libgallium = files( 'util/u_viewport.h', 'nir/tgsi_to_nir.c', 'nir/tgsi_to_nir.h', + 'nir/nir_draw_helpers.c', + 'nir/nir_draw_helpers.h', ) -if dep_libdrm != [] and dep_libdrm.found() +if dep_libdrm.found() files_libgallium += files( 'renderonly/renderonly.c', 'renderonly/renderonly.h', @@ -361,14 +359,16 @@ if with_llvm 'gallivm/lp_bld_const.h', 'gallivm/lp_bld_conv.c', 'gallivm/lp_bld_conv.h', + 'gallivm/lp_bld_coro.c', + 'gallivm/lp_bld_coro.h', 'gallivm/lp_bld_debug.cpp', 'gallivm/lp_bld_debug.h', 'gallivm/lp_bld_flow.c', 'gallivm/lp_bld_flow.h', 'gallivm/lp_bld_format_aos_array.c', 'gallivm/lp_bld_format_aos.c', - 'gallivm/lp_bld_format_cached.c', 'gallivm/lp_bld_format_float.c', + 'gallivm/lp_bld_format_s3tc.c', 'gallivm/lp_bld_format.c', 'gallivm/lp_bld_format.h', 'gallivm/lp_bld_format_soa.c', @@ -381,11 +381,16 @@ if with_llvm 'gallivm/lp_bld_init.h', 'gallivm/lp_bld_intr.c', 'gallivm/lp_bld_intr.h', + 'gallivm/lp_bld_ir_common.c', + 'gallivm/lp_bld_ir_common.h', 'gallivm/lp_bld_limits.h', 'gallivm/lp_bld_logic.c', 'gallivm/lp_bld_logic.h', 'gallivm/lp_bld_misc.cpp', 'gallivm/lp_bld_misc.h', + 'gallivm/lp_bld_nir.h', + 'gallivm/lp_bld_nir.c', + 'gallivm/lp_bld_nir_soa.c', 'gallivm/lp_bld_pack.c', 'gallivm/lp_bld_pack.h', 'gallivm/lp_bld_printf.c', @@ -415,6 +420,12 @@ if with_llvm 'draw/draw_llvm_sample.c', 'draw/draw_pt_fetch_shade_pipeline_llvm.c', 'draw/draw_vs_llvm.c', + 'tessellator/tessellator.cpp', + 'tessellator/tessellator.hpp', + 'tessellator/p_tessellator.cpp', + 'tessellator/p_tessellator.h', + 'nir/nir_to_tgsi_info.c', + 'nir/nir_to_tgsi_info.h', ) endif @@ -423,6 +434,10 @@ files_libgalliumvl = files( 'vl/vl_bicubic_filter.h', 'vl/vl_compositor.c', 'vl/vl_compositor.h', + 'vl/vl_compositor_gfx.c', + 'vl/vl_compositor_gfx.h', + 'vl/vl_compositor_cs.c', + 'vl/vl_compositor_cs.h', 'vl/vl_csc.c', 'vl/vl_csc.h', 'vl/vl_decoder.c', @@ -451,24 +466,28 @@ files_libgalliumvl = files( 'vl/vl_vlc.h', 'vl/vl_zscan.c', 'vl/vl_zscan.h', + 'vl/vl_probs_table.h', ) -files_libgalliumvlwinsys = files('vl/vl_winsys.h') -if with_dri2 +vlwinsys_deps = [] +files_libgalliumvlwinsys = files('vl/vl_winsys.h', + 'vl/vl_winsys_drm.c') +if with_dri2 and with_platform_x11 files_libgalliumvlwinsys += files('vl/vl_winsys_dri.c') if with_dri3 + vlwinsys_deps += [ + dep_xcb_sync, dep_xcb_present, dep_xshmfence, dep_xcb_xfixes, + dep_xcb_dri3, + ] files_libgalliumvlwinsys += files('vl/vl_winsys_dri3.c') endif endif -if with_platform_drm - files_libgalliumvlwinsys += files('vl/vl_winsys_drm.c') -endif u_indices_gen_c = custom_target( 'u_indices_gen.c', input : 'indices/u_indices_gen.py', output : 'u_indices_gen.c', - command : [prog_python2, '@INPUT@'], + command : [prog_python, '@INPUT@'], capture : true, ) @@ -476,37 +495,32 @@ u_unfilled_gen_c = custom_target( 'u_unfilled_gen.c', input : 'indices/u_unfilled_gen.py', output : 'u_unfilled_gen.c', - command : [prog_python2, '@INPUT@'], - capture : true, -) - -u_format_table_c = custom_target( - 'u_format_table.c', - input : ['util/u_format_table.py', 'util/u_format.csv'], - output : 'u_format_table.c', - command : [prog_python2, '@INPUT@'], - depend_files : files('util/u_format_pack.py', 'util/u_format_parse.py'), + command : [prog_python, '@INPUT@'], capture : true, ) libgallium = static_library( 'gallium', - [files_libgallium, u_indices_gen_c, u_unfilled_gen_c, u_format_table_c, - nir_opcodes_h], + [files_libgallium, u_indices_gen_c, u_unfilled_gen_c], include_directories : [ inc_loader, inc_gallium, inc_src, inc_include, include_directories('util') ], - c_args : [c_vis_args, c_msvc_compat_args], - cpp_args : [cpp_vis_args, cpp_msvc_compat_args], - dependencies : [dep_libdrm, dep_llvm, dep_unwind, dep_dl, dep_m], - build_by_default : false, + c_args : [c_msvc_compat_args], + cpp_args : [cpp_msvc_compat_args], + gnu_symbol_visibility : 'hidden', + dependencies : [ + dep_libdrm, dep_llvm, dep_dl, dep_m, dep_thread, dep_lmsensors, + idep_nir, idep_nir_headers, idep_mesautil, + ], + build_by_default : false ) libgalliumvl_stub = static_library( 'galliumvl_stub', 'vl/vl_stubs.c', - c_args : [c_vis_args, c_msvc_compat_args], - cpp_args : [cpp_vis_args, cpp_msvc_compat_args], + c_args : [c_msvc_compat_args], + cpp_args : [cpp_msvc_compat_args], + gnu_symbol_visibility : 'hidden', include_directories: [inc_gallium, inc_include, inc_src], build_by_default : false, ) @@ -514,8 +528,9 @@ libgalliumvl_stub = static_library( libgalliumvl = static_library( 'galliumvl', files_libgalliumvl, - c_args : [c_vis_args, c_msvc_compat_args], - cpp_args : [cpp_vis_args, cpp_msvc_compat_args], + c_args : [c_msvc_compat_args], + cpp_args : [cpp_msvc_compat_args], + gnu_symbol_visibility : 'hidden', include_directories : [inc_gallium, inc_include, inc_src], build_by_default : false, ) @@ -525,6 +540,6 @@ libgalliumvlwinsys = static_library( 'galliumvlwinsys', files_libgalliumvlwinsys, include_directories : [inc_gallium, inc_include, inc_loader, inc_src], - dependencies : [dep_libdrm], + dependencies : [dep_libdrm, vlwinsys_deps], build_by_default : false, )