1 # Copyright © 2017 Intel Corporation
3 # Permission is hereby granted, free of charge, to any person obtaining a copy
4 # of this software and associated documentation files (the "Software"), to deal
5 # in the Software without restriction, including without limitation the rights
6 # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7 # copies of the Software, and to permit persons to whom the Software is
8 # furnished to do so, subject to the following conditions:
10 # The above copyright notice and this permission notice shall be included in
11 # all copies or substantial portions of the Software.
13 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16 # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17 # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18 # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
27 c_args : [c_vis_args, c_msvc_compat_args, no_override_init_args],
28 include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux, inc_glsl],
29 link_with : [libglsl],
30 dependencies : [dep_clock, dep_thread],
32 suite : ['compiler', 'glsl'],
40 ['array_refcount_test.cpp', 'builtin_variable_test.cpp',
41 'invalidate_locations_test.cpp', 'general_ir_test.cpp',
42 'lower_int64_test.cpp', 'opt_add_neg_to_sub_test.cpp',
43 'varyings_test.cpp', ir_expression_operation_h],
44 cpp_args : [cpp_vis_args, cpp_msvc_compat_args],
45 include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux, inc_glsl],
46 link_with : [libglsl, libglsl_standalone, libglsl_util],
47 dependencies : [dep_clock, dep_thread, idep_gtest],
49 suite : ['compiler', 'glsl'],
53 'uniform_initializer_test',
55 'uniform_initializer_test',
56 ['copy_constant_to_storage_tests.cpp', 'set_uniform_initializer_tests.cpp',
57 'uniform_initializer_utils.cpp', 'uniform_initializer_utils.h',
58 ir_expression_operation_h],
59 cpp_args : [cpp_vis_args, cpp_msvc_compat_args],
60 include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux, inc_glsl],
61 link_with : [libglsl, libglsl_util],
62 dependencies : [dep_thread, idep_gtest],
64 suite : ['compiler', 'glsl'],
71 ['sampler_types_test.cpp', ir_expression_operation_h],
72 cpp_args : [cpp_vis_args, cpp_msvc_compat_args],
73 include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux, inc_glsl],
74 link_with : [libglsl, libglsl_util],
75 dependencies : [dep_thread, idep_gtest],
77 suite : ['compiler', 'glsl'],
81 'glsl compiler warnings',
84 join_paths(meson.current_source_dir(), 'warnings_test.py'),
85 '--glsl-compiler', glsl_compiler,
86 '--test-directory', join_paths(
87 meson.source_root(), 'src', 'compiler', 'glsl', 'tests', 'warnings'
90 suite : ['compiler', 'glsl'],
98 join_paths(meson.current_source_dir(), 'optimization_test.py'),
99 '--test-runner', glsl_test
101 suite : ['compiler', 'glsl'],
104 if with_tools.contains('glsl')
106 'glsl dump-builder test',
108 args : ['--version', '110', '--dump-builder',
109 join_paths(meson.current_source_dir(), 'standalone_dump-builder.frag'),
111 suite : ['compiler', 'glsl'],
114 'glsl lower-precision test',
116 args : [join_paths(meson.current_source_dir(), 'lower_precision_test.py'),
119 suite : ['compiler', 'glsl'],