• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright © 2017 Intel Corporation
2
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:
9
10# The above copyright notice and this permission notice shall be included in
11# all copies or substantial portions of the Software.
12
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
19# SOFTWARE.
20
21files_r300 = files(
22  'r300_blit.c',
23  'r300_cb.h',
24  'r300_chipset.c',
25  'r300_chipset.h',
26  'r300_context.c',
27  'r300_context.h',
28  'r300_cs.h',
29  'r300_debug.c',
30  'r300_defines.h',
31  'r300_emit.c',
32  'r300_emit.h',
33  'r300_flush.c',
34  'r300_fs.c',
35  'r300_fs.h',
36  'r300_hyperz.c',
37  'r300_public.h',
38  'r300_query.c',
39  'r300_reg.h',
40  'r300_render.c',
41  'r300_render_stencilref.c',
42  'r300_render_translate.c',
43  'r300_resource.c',
44  'r300_screen_buffer.c',
45  'r300_screen_buffer.h',
46  'r300_screen.c',
47  'r300_screen.h',
48  'r300_shader_semantics.h',
49  'r300_state.c',
50  'r300_state_derived.c',
51  'r300_state_inlines.h',
52  'r300_texture.c',
53  'r300_texture_desc.c',
54  'r300_texture_desc.h',
55  'r300_texture.h',
56  'r300_tgsi_to_rc.c',
57  'r300_tgsi_to_rc.h',
58  'r300_transfer.c',
59  'r300_transfer.h',
60  'r300_vs.c',
61  'r300_vs_draw.c',
62  'r300_vs.h',
63  'compiler/memory_pool.c',
64  'compiler/memory_pool.h',
65  'compiler/nir_to_rc.c',
66  'compiler/nir_to_rc.h',
67  'compiler/r300_fragprog.c',
68  'compiler/r300_fragprog_emit.c',
69  'compiler/r300_fragprog.h',
70  'compiler/r300_fragprog_swizzle.c',
71  'compiler/r300_fragprog_swizzle.h',
72  'compiler/r3xx_fragprog.c',
73  'compiler/r3xx_vertprog.c',
74  'compiler/r3xx_vertprog_dump.c',
75  'compiler/r500_fragprog.c',
76  'compiler/r500_fragprog_emit.c',
77  'compiler/r500_fragprog.h',
78  'compiler/r300_nir.c',
79  'compiler/r300_nir.h',
80  'compiler/r500_nir_lower_fcsel.c',
81  'compiler/radeon_code.c',
82  'compiler/radeon_code.h',
83  'compiler/radeon_compiler.c',
84  'compiler/radeon_compiler.h',
85  'compiler/radeon_compiler_util.c',
86  'compiler/radeon_compiler_util.h',
87  'compiler/radeon_dataflow.c',
88  'compiler/radeon_dataflow_deadcode.c',
89  'compiler/radeon_dataflow.h',
90  'compiler/radeon_dataflow_swizzles.c',
91  'compiler/radeon_inline_literals.c',
92  'compiler/radeon_list.c',
93  'compiler/radeon_list.h',
94  'compiler/radeon_opcodes.c',
95  'compiler/radeon_opcodes.h',
96  'compiler/radeon_optimize.c',
97  'compiler/radeon_pair_dead_sources.c',
98  'compiler/radeon_pair_regalloc.c',
99  'compiler/radeon_pair_schedule.c',
100  'compiler/radeon_pair_translate.c',
101  'compiler/radeon_program_alu.c',
102  'compiler/radeon_program_alu.h',
103  'compiler/radeon_program.c',
104  'compiler/radeon_program_constants.h',
105  'compiler/radeon_program.h',
106  'compiler/radeon_program_pair.c',
107  'compiler/radeon_program_pair.h',
108  'compiler/radeon_program_print.c',
109  'compiler/radeon_program_tex.c',
110  'compiler/radeon_program_tex.h',
111  'compiler/radeon_regalloc.c',
112  'compiler/radeon_regalloc.h',
113  'compiler/radeon_remove_constants.c',
114  'compiler/radeon_remove_constants.h',
115  'compiler/radeon_rename_regs.c',
116  'compiler/radeon_rename_regs.h',
117  'compiler/radeon_swizzle.h',
118  'compiler/radeon_variable.c',
119  'compiler/radeon_variable.h',
120  'compiler/radeon_vert_fc.c',
121)
122
123r300_nir_algebraic_c = custom_target(
124  'r300_nir_algebraic.c',
125  input : 'compiler/r300_nir_algebraic.py',
126  output : 'r300_nir_algebraic.c',
127  command : [
128    prog_python, '@INPUT@', '-p', dir_compiler_nir, '@OUTPUT@',
129  ],
130  depend_files : nir_algebraic_depends,
131)
132
133libr300 = static_library(
134  'r300',
135  files_r300, r300_nir_algebraic_c,
136  include_directories : [
137    inc_src, inc_include, inc_gallium, inc_gallium_aux, inc_gallium_drivers,
138    inc_mesa,
139  ],
140  gnu_symbol_visibility : 'hidden',
141  dependencies : [dep_libdrm_radeon, dep_llvm, idep_mesautil, idep_nir],
142)
143
144driver_r300 = declare_dependency(
145  compile_args : '-DGALLIUM_R300',
146  link_with : [libr300, libradeonwinsys],
147)
148