nir: Add options to nir_lower_compute_system_values to control compute ID base lowering
[mesa.git] / src / gallium / frontends / vallium / meson.build
1
2 val_entrypoints = custom_target(
3 'val_entrypoints.[ch]',
4 input : ['val_entrypoints_gen.py', vk_api_xml],
5 output : ['val_entrypoints.h', 'val_entrypoints.c'],
6 command : [
7 prog_python, '@INPUT0@', '--xml', '@INPUT1@', '--outdir',
8 meson.current_build_dir()
9 ],
10 depend_files : files('val_extensions.py'),
11 )
12
13 val_extensions_c = custom_target(
14 'val_extensions.c',
15 input : ['val_extensions.py', vk_api_xml],
16 output : ['val_extensions.c', 'val_extensions.h'],
17 command : [
18 prog_python, '@INPUT0@', '--xml', '@INPUT1@', '--out-c', '@OUTPUT0@',
19 '--out-h', '@OUTPUT1@'
20 ],
21 )
22
23 libval_files = files(
24 'val_device.c',
25 'val_cmd_buffer.c',
26 'val_descriptor_set.c',
27 'val_execute.c',
28 'val_util.c',
29 'val_image.c',
30 'val_formats.c',
31 'val_lower_vulkan_resource.c',
32 'val_lower_vulkan_resource.h',
33 'val_lower_input_attachments.c',
34 'val_pass.c',
35 'val_pipeline.c',
36 'val_pipeline_cache.c',
37 'val_query.c',
38 'val_wsi.c')
39
40 val_deps = []
41 val_flags = []
42
43 if with_platform_x11
44 val_deps += dep_xcb_dri3
45 val_flags += [
46 '-DVK_USE_PLATFORM_XCB_KHR',
47 '-DVK_USE_PLATFORM_XLIB_KHR',
48 ]
49 libval_files += files('val_wsi_x11.c')
50 endif
51
52 if with_platform_wayland
53 val_deps += dep_wayland_client
54 val_flags += '-DVK_USE_PLATFORM_WAYLAND_KHR'
55 libval_files += files('val_wsi_wayland.c')
56 endif
57
58 libvallium_st = static_library(
59 'vallium_st',
60 [libval_files, val_entrypoints, val_extensions_c ],
61 link_with : [ libvulkan_wsi ],
62 c_args : [ val_flags ],
63 gnu_symbol_visibility : 'hidden',
64 include_directories : [ inc_include, inc_src, inc_util, inc_gallium, inc_compiler, inc_gallium_aux, inc_vulkan_wsi ],
65 dependencies : [ idep_nir, idep_mesautil, idep_vulkan_util ]
66 )