OSDN Git Service

nir: Rename lower_variables to lower_vars_to_ssa
[android-x86/external-mesa.git] / src / glsl / Makefile.sources
1 # shared source lists for Makefile, SConscript, and Android.mk
2
3 GLSL_SRCDIR = $(top_srcdir)/src/glsl
4 GLSL_BUILDDIR = $(top_builddir)/src/glsl
5
6 # libglcpp
7
8 LIBGLCPP_FILES = \
9         $(GLSL_SRCDIR)/glcpp/glcpp.h \
10         $(GLSL_SRCDIR)/glcpp/pp.c
11
12 LIBGLCPP_GENERATED_FILES = \
13         $(GLSL_BUILDDIR)/glcpp/glcpp-lex.c \
14         $(GLSL_BUILDDIR)/glcpp/glcpp-parse.c
15
16 NIR_GENERATED_FILES = \
17         $(GLSL_BUILDDIR)/nir/nir_opt_algebraic.c
18
19 NIR_FILES = \
20         $(GLSL_SRCDIR)/nir/nir.c \
21         $(GLSL_SRCDIR)/nir/nir.h \
22         $(GLSL_SRCDIR)/nir/nir_dominance.c \
23         $(GLSL_SRCDIR)/nir/nir_from_ssa.c \
24         $(GLSL_SRCDIR)/nir/nir_intrinsics.c \
25         $(GLSL_SRCDIR)/nir/nir_intrinsics.h \
26         $(GLSL_SRCDIR)/nir/nir_live_variables.c \
27         $(GLSL_SRCDIR)/nir/nir_lower_atomics.c \
28         $(GLSL_SRCDIR)/nir/nir_lower_global_vars_to_local.c \
29         $(GLSL_SRCDIR)/nir/nir_lower_locals_to_regs.c \
30         $(GLSL_SRCDIR)/nir/nir_lower_io.c \
31         $(GLSL_SRCDIR)/nir/nir_lower_samplers.cpp \
32         $(GLSL_SRCDIR)/nir/nir_lower_system_values.c \
33         $(GLSL_SRCDIR)/nir/nir_lower_to_source_mods.c \
34         $(GLSL_SRCDIR)/nir/nir_lower_vars_to_ssa.c \
35         $(GLSL_SRCDIR)/nir/nir_lower_vec_to_movs.c \
36         $(GLSL_SRCDIR)/nir/nir_metadata.c \
37         $(GLSL_SRCDIR)/nir/nir_opcodes.c \
38         $(GLSL_SRCDIR)/nir/nir_opcodes.h \
39         $(GLSL_SRCDIR)/nir/nir_opt_constant_folding.c \
40         $(GLSL_SRCDIR)/nir/nir_opt_copy_propagate.c \
41         $(GLSL_SRCDIR)/nir/nir_opt_cse.c \
42         $(GLSL_SRCDIR)/nir/nir_opt_dce.c \
43         $(GLSL_SRCDIR)/nir/nir_opt_global_to_local.c \
44         $(GLSL_SRCDIR)/nir/nir_opt_peephole_select.c \
45         $(GLSL_SRCDIR)/nir/nir_print.c \
46         $(GLSL_SRCDIR)/nir/nir_remove_dead_variables.c \
47         $(GLSL_SRCDIR)/nir/nir_search.c \
48         $(GLSL_SRCDIR)/nir/nir_search.h \
49         $(GLSL_SRCDIR)/nir/nir_split_var_copies.c \
50         $(GLSL_SRCDIR)/nir/nir_to_ssa.c \
51         $(GLSL_SRCDIR)/nir/nir_validate.c \
52         $(GLSL_SRCDIR)/nir/nir_types.cpp \
53         $(GLSL_SRCDIR)/nir/glsl_to_nir.cpp \
54         $(NIR_GENERATED_FILES)
55
56 # libglsl
57
58 LIBGLSL_FILES = \
59         $(GLSL_SRCDIR)/ast.h \
60         $(GLSL_SRCDIR)/ast_array_index.cpp \
61         $(GLSL_SRCDIR)/ast_expr.cpp \
62         $(GLSL_SRCDIR)/ast_function.cpp \
63         $(GLSL_SRCDIR)/ast_to_hir.cpp \
64         $(GLSL_SRCDIR)/ast_type.cpp \
65         $(GLSL_SRCDIR)/builtin_functions.cpp \
66         $(GLSL_SRCDIR)/builtin_type_macros.h \
67         $(GLSL_SRCDIR)/builtin_types.cpp \
68         $(GLSL_SRCDIR)/builtin_variables.cpp \
69         $(GLSL_SRCDIR)/glsl_parser_extras.cpp \
70         $(GLSL_SRCDIR)/glsl_parser_extras.h \
71         $(GLSL_SRCDIR)/glsl_symbol_table.cpp \
72         $(GLSL_SRCDIR)/glsl_symbol_table.h \
73         $(GLSL_SRCDIR)/glsl_types.cpp \
74         $(GLSL_SRCDIR)/glsl_types.h \
75         $(GLSL_SRCDIR)/hir_field_selection.cpp \
76         $(GLSL_SRCDIR)/ir_basic_block.cpp \
77         $(GLSL_SRCDIR)/ir_basic_block.h \
78         $(GLSL_SRCDIR)/ir_builder.cpp \
79         $(GLSL_SRCDIR)/ir_builder.h \
80         $(GLSL_SRCDIR)/ir_clone.cpp \
81         $(GLSL_SRCDIR)/ir_constant_expression.cpp \
82         $(GLSL_SRCDIR)/ir.cpp \
83         $(GLSL_SRCDIR)/ir.h \
84         $(GLSL_SRCDIR)/ir_equals.cpp \
85         $(GLSL_SRCDIR)/ir_expression_flattening.cpp \
86         $(GLSL_SRCDIR)/ir_expression_flattening.h \
87         $(GLSL_SRCDIR)/ir_function_can_inline.cpp \
88         $(GLSL_SRCDIR)/ir_function_detect_recursion.cpp \
89         $(GLSL_SRCDIR)/ir_function_inlining.h \
90         $(GLSL_SRCDIR)/ir_function.cpp \
91         $(GLSL_SRCDIR)/ir_hierarchical_visitor.cpp \
92         $(GLSL_SRCDIR)/ir_hierarchical_visitor.h \
93         $(GLSL_SRCDIR)/ir_hv_accept.cpp \
94         $(GLSL_SRCDIR)/ir_import_prototypes.cpp \
95         $(GLSL_SRCDIR)/ir_optimization.h \
96         $(GLSL_SRCDIR)/ir_print_visitor.cpp \
97         $(GLSL_SRCDIR)/ir_print_visitor.h \
98         $(GLSL_SRCDIR)/ir_reader.cpp \
99         $(GLSL_SRCDIR)/ir_reader.h \
100         $(GLSL_SRCDIR)/ir_rvalue_visitor.cpp \
101         $(GLSL_SRCDIR)/ir_rvalue_visitor.h \
102         $(GLSL_SRCDIR)/ir_set_program_inouts.cpp \
103         $(GLSL_SRCDIR)/ir_uniform.h \
104         $(GLSL_SRCDIR)/ir_validate.cpp \
105         $(GLSL_SRCDIR)/ir_variable_refcount.cpp \
106         $(GLSL_SRCDIR)/ir_variable_refcount.h \
107         $(GLSL_SRCDIR)/ir_visitor.h \
108         $(GLSL_SRCDIR)/linker.cpp \
109         $(GLSL_SRCDIR)/linker.h \
110         $(GLSL_SRCDIR)/link_atomics.cpp \
111         $(GLSL_SRCDIR)/link_functions.cpp \
112         $(GLSL_SRCDIR)/link_interface_blocks.cpp \
113         $(GLSL_SRCDIR)/link_uniforms.cpp \
114         $(GLSL_SRCDIR)/link_uniform_initializers.cpp \
115         $(GLSL_SRCDIR)/link_uniform_block_active_visitor.cpp \
116         $(GLSL_SRCDIR)/link_uniform_block_active_visitor.h \
117         $(GLSL_SRCDIR)/link_uniform_blocks.cpp \
118         $(GLSL_SRCDIR)/link_varyings.cpp \
119         $(GLSL_SRCDIR)/link_varyings.h \
120         $(GLSL_SRCDIR)/list.h \
121         $(GLSL_SRCDIR)/loop_analysis.cpp \
122         $(GLSL_SRCDIR)/loop_analysis.h \
123         $(GLSL_SRCDIR)/loop_controls.cpp \
124         $(GLSL_SRCDIR)/loop_unroll.cpp \
125         $(GLSL_SRCDIR)/lower_clip_distance.cpp \
126         $(GLSL_SRCDIR)/lower_const_arrays_to_uniforms.cpp \
127         $(GLSL_SRCDIR)/lower_discard.cpp \
128         $(GLSL_SRCDIR)/lower_discard_flow.cpp \
129         $(GLSL_SRCDIR)/lower_if_to_cond_assign.cpp \
130         $(GLSL_SRCDIR)/lower_instructions.cpp \
131         $(GLSL_SRCDIR)/lower_jumps.cpp \
132         $(GLSL_SRCDIR)/lower_mat_op_to_vec.cpp \
133         $(GLSL_SRCDIR)/lower_noise.cpp \
134         $(GLSL_SRCDIR)/lower_offset_array.cpp \
135         $(GLSL_SRCDIR)/lower_packed_varyings.cpp \
136         $(GLSL_SRCDIR)/lower_named_interface_blocks.cpp \
137         $(GLSL_SRCDIR)/lower_packing_builtins.cpp \
138         $(GLSL_SRCDIR)/lower_texture_projection.cpp \
139         $(GLSL_SRCDIR)/lower_variable_index_to_cond_assign.cpp \
140         $(GLSL_SRCDIR)/lower_vec_index_to_cond_assign.cpp \
141         $(GLSL_SRCDIR)/lower_vec_index_to_swizzle.cpp \
142         $(GLSL_SRCDIR)/lower_vector.cpp \
143         $(GLSL_SRCDIR)/lower_vector_insert.cpp \
144         $(GLSL_SRCDIR)/lower_vertex_id.cpp \
145         $(GLSL_SRCDIR)/lower_output_reads.cpp \
146         $(GLSL_SRCDIR)/lower_ubo_reference.cpp \
147         $(GLSL_SRCDIR)/opt_algebraic.cpp \
148         $(GLSL_SRCDIR)/opt_array_splitting.cpp \
149         $(GLSL_SRCDIR)/opt_constant_folding.cpp \
150         $(GLSL_SRCDIR)/opt_constant_propagation.cpp \
151         $(GLSL_SRCDIR)/opt_constant_variable.cpp \
152         $(GLSL_SRCDIR)/opt_copy_propagation.cpp \
153         $(GLSL_SRCDIR)/opt_copy_propagation_elements.cpp \
154         $(GLSL_SRCDIR)/opt_cse.cpp \
155         $(GLSL_SRCDIR)/opt_dead_builtin_variables.cpp \
156         $(GLSL_SRCDIR)/opt_dead_builtin_varyings.cpp \
157         $(GLSL_SRCDIR)/opt_dead_code.cpp \
158         $(GLSL_SRCDIR)/opt_dead_code_local.cpp \
159         $(GLSL_SRCDIR)/opt_dead_functions.cpp \
160         $(GLSL_SRCDIR)/opt_flatten_nested_if_blocks.cpp \
161         $(GLSL_SRCDIR)/opt_flip_matrices.cpp \
162         $(GLSL_SRCDIR)/opt_function_inlining.cpp \
163         $(GLSL_SRCDIR)/opt_if_simplification.cpp \
164         $(GLSL_SRCDIR)/opt_minmax.cpp \
165         $(GLSL_SRCDIR)/opt_noop_swizzle.cpp \
166         $(GLSL_SRCDIR)/opt_rebalance_tree.cpp \
167         $(GLSL_SRCDIR)/opt_redundant_jumps.cpp \
168         $(GLSL_SRCDIR)/opt_structure_splitting.cpp \
169         $(GLSL_SRCDIR)/opt_swizzle_swizzle.cpp \
170         $(GLSL_SRCDIR)/opt_tree_grafting.cpp \
171         $(GLSL_SRCDIR)/opt_vectorize.cpp \
172         $(GLSL_SRCDIR)/program.h \
173         $(GLSL_SRCDIR)/s_expression.cpp \
174         $(GLSL_SRCDIR)/s_expression.h
175
176 # glsl_compiler
177
178 GLSL_COMPILER_CXX_FILES = \
179         $(GLSL_SRCDIR)/standalone_scaffolding.cpp \
180         $(GLSL_SRCDIR)/standalone_scaffolding.h \
181         $(GLSL_SRCDIR)/main.cpp
182
183 # libglsl generated sources
184 LIBGLSL_GENERATED_CXX_FILES = \
185         $(GLSL_BUILDDIR)/glsl_lexer.cpp \
186         $(GLSL_BUILDDIR)/glsl_parser.cpp