1# Copyright © 2017 Intel Corporation 2# SPDX-License-Identifier: MIT 3 4files_r300 = files( 5 'r300_blit.c', 6 'r300_cb.h', 7 'r300_chipset.c', 8 'r300_chipset.h', 9 'r300_context.c', 10 'r300_context.h', 11 'r300_cs.h', 12 'r300_debug.c', 13 'r300_defines.h', 14 'r300_emit.c', 15 'r300_emit.h', 16 'r300_flush.c', 17 'r300_fs.c', 18 'r300_fs.h', 19 'r300_hyperz.c', 20 'r300_public.h', 21 'r300_query.c', 22 'r300_reg.h', 23 'r300_render.c', 24 'r300_render_stencilref.c', 25 'r300_render_translate.c', 26 'r300_resource.c', 27 'r300_screen_buffer.c', 28 'r300_screen_buffer.h', 29 'r300_screen.c', 30 'r300_screen.h', 31 'r300_shader_semantics.h', 32 'r300_state.c', 33 'r300_state_derived.c', 34 'r300_state_inlines.h', 35 'r300_texture.c', 36 'r300_texture_desc.c', 37 'r300_texture_desc.h', 38 'r300_texture.h', 39 'r300_tgsi_to_rc.c', 40 'r300_tgsi_to_rc.h', 41 'r300_transfer.c', 42 'r300_transfer.h', 43 'r300_vs.c', 44 'r300_vs_draw.c', 45 'r300_vs.h', 46 'compiler/memory_pool.c', 47 'compiler/memory_pool.h', 48 'compiler/nir_to_rc.c', 49 'compiler/nir_to_rc.h', 50 'compiler/r300_fragprog.c', 51 'compiler/r300_fragprog_emit.c', 52 'compiler/r300_fragprog.h', 53 'compiler/r300_fragprog_swizzle.c', 54 'compiler/r300_fragprog_swizzle.h', 55 'compiler/r3xx_fragprog.c', 56 'compiler/r3xx_vertprog.c', 57 'compiler/r3xx_vertprog_dump.c', 58 'compiler/r500_fragprog.c', 59 'compiler/r500_fragprog_emit.c', 60 'compiler/r500_fragprog.h', 61 'compiler/r300_nir.c', 62 'compiler/r300_nir.h', 63 'compiler/r500_nir_lower_fcsel.c', 64 'compiler/radeon_code.c', 65 'compiler/radeon_code.h', 66 'compiler/radeon_compiler.c', 67 'compiler/radeon_compiler.h', 68 'compiler/radeon_compiler_util.c', 69 'compiler/radeon_compiler_util.h', 70 'compiler/radeon_dataflow.c', 71 'compiler/radeon_dataflow_deadcode.c', 72 'compiler/radeon_dataflow.h', 73 'compiler/radeon_dataflow_swizzles.c', 74 'compiler/radeon_inline_literals.c', 75 'compiler/radeon_list.c', 76 'compiler/radeon_list.h', 77 'compiler/radeon_opcodes.c', 78 'compiler/radeon_opcodes.h', 79 'compiler/radeon_optimize.c', 80 'compiler/radeon_pair_dead_sources.c', 81 'compiler/radeon_pair_regalloc.c', 82 'compiler/radeon_pair_schedule.c', 83 'compiler/radeon_pair_translate.c', 84 'compiler/radeon_program_alu.c', 85 'compiler/radeon_program_alu.h', 86 'compiler/radeon_program.c', 87 'compiler/radeon_program_constants.h', 88 'compiler/radeon_program.h', 89 'compiler/radeon_program_pair.c', 90 'compiler/radeon_program_pair.h', 91 'compiler/radeon_program_print.c', 92 'compiler/radeon_program_tex.c', 93 'compiler/radeon_program_tex.h', 94 'compiler/radeon_regalloc.c', 95 'compiler/radeon_regalloc.h', 96 'compiler/radeon_remove_constants.c', 97 'compiler/radeon_remove_constants.h', 98 'compiler/radeon_rename_regs.c', 99 'compiler/radeon_rename_regs.h', 100 'compiler/radeon_swizzle.h', 101 'compiler/radeon_variable.c', 102 'compiler/radeon_variable.h', 103 'compiler/radeon_vert_fc.c', 104) 105 106r300_nir_algebraic_c = custom_target( 107 'r300_nir_algebraic.c', 108 input : 'compiler/r300_nir_algebraic.py', 109 output : 'r300_nir_algebraic.c', 110 command : [ 111 prog_python, '@INPUT@', '-p', dir_compiler_nir, '@OUTPUT@', 112 ], 113 depend_files : nir_algebraic_depends, 114) 115 116libr300 = static_library( 117 'r300', 118 files_r300, r300_nir_algebraic_c, 119 include_directories : [ 120 inc_src, inc_include, inc_gallium, inc_gallium_aux, inc_gallium_drivers, 121 inc_mesa, 122 ], 123 gnu_symbol_visibility : 'hidden', 124 dependencies : [dep_libdrm_radeon, dep_llvm, idep_mesautil, idep_nir, idep_xmlconfig], 125) 126 127driver_r300 = declare_dependency( 128 compile_args : '-DGALLIUM_R300', 129 link_with : [libr300, libradeonwinsys], 130) 131