2017-10-25 17:59:11 -07:00
|
|
|
# Copyright © 2017 Intel Corporation
|
2024-03-25 23:33:14 +01:00
|
|
|
# SPDX-License-Identifier: MIT
|
2017-10-25 17:59:11 -07:00
|
|
|
|
|
|
|
files_r300 = files(
|
|
|
|
'r300_blit.c',
|
|
|
|
'r300_cb.h',
|
|
|
|
'r300_chipset.c',
|
|
|
|
'r300_chipset.h',
|
|
|
|
'r300_context.c',
|
|
|
|
'r300_context.h',
|
|
|
|
'r300_cs.h',
|
|
|
|
'r300_debug.c',
|
|
|
|
'r300_defines.h',
|
|
|
|
'r300_emit.c',
|
|
|
|
'r300_emit.h',
|
|
|
|
'r300_flush.c',
|
|
|
|
'r300_fs.c',
|
|
|
|
'r300_fs.h',
|
|
|
|
'r300_hyperz.c',
|
|
|
|
'r300_public.h',
|
|
|
|
'r300_query.c',
|
|
|
|
'r300_reg.h',
|
|
|
|
'r300_render.c',
|
|
|
|
'r300_render_stencilref.c',
|
|
|
|
'r300_render_translate.c',
|
|
|
|
'r300_resource.c',
|
|
|
|
'r300_screen_buffer.c',
|
|
|
|
'r300_screen_buffer.h',
|
|
|
|
'r300_screen.c',
|
|
|
|
'r300_screen.h',
|
|
|
|
'r300_shader_semantics.h',
|
|
|
|
'r300_state.c',
|
|
|
|
'r300_state_derived.c',
|
|
|
|
'r300_state_inlines.h',
|
|
|
|
'r300_texture.c',
|
|
|
|
'r300_texture_desc.c',
|
|
|
|
'r300_texture_desc.h',
|
|
|
|
'r300_texture.h',
|
|
|
|
'r300_tgsi_to_rc.c',
|
|
|
|
'r300_tgsi_to_rc.h',
|
|
|
|
'r300_transfer.c',
|
|
|
|
'r300_transfer.h',
|
|
|
|
'r300_vs.c',
|
|
|
|
'r300_vs_draw.c',
|
|
|
|
'r300_vs.h',
|
|
|
|
'compiler/memory_pool.c',
|
|
|
|
'compiler/memory_pool.h',
|
2023-01-17 08:58:17 +01:00
|
|
|
'compiler/nir_to_rc.c',
|
|
|
|
'compiler/nir_to_rc.h',
|
2017-10-25 17:59:11 -07:00
|
|
|
'compiler/r300_fragprog.c',
|
|
|
|
'compiler/r300_fragprog_emit.c',
|
|
|
|
'compiler/r300_fragprog.h',
|
|
|
|
'compiler/r300_fragprog_swizzle.c',
|
|
|
|
'compiler/r300_fragprog_swizzle.h',
|
|
|
|
'compiler/r3xx_fragprog.c',
|
|
|
|
'compiler/r3xx_vertprog.c',
|
|
|
|
'compiler/r3xx_vertprog_dump.c',
|
|
|
|
'compiler/r500_fragprog.c',
|
|
|
|
'compiler/r500_fragprog_emit.c',
|
|
|
|
'compiler/r500_fragprog.h',
|
2023-06-07 15:11:47 +02:00
|
|
|
'compiler/r300_nir.c',
|
|
|
|
'compiler/r300_nir.h',
|
2023-09-21 11:59:07 +02:00
|
|
|
'compiler/r500_nir_lower_fcsel.c',
|
2017-10-25 17:59:11 -07:00
|
|
|
'compiler/radeon_code.c',
|
|
|
|
'compiler/radeon_code.h',
|
|
|
|
'compiler/radeon_compiler.c',
|
|
|
|
'compiler/radeon_compiler.h',
|
|
|
|
'compiler/radeon_compiler_util.c',
|
|
|
|
'compiler/radeon_compiler_util.h',
|
|
|
|
'compiler/radeon_dataflow.c',
|
|
|
|
'compiler/radeon_dataflow_deadcode.c',
|
|
|
|
'compiler/radeon_dataflow.h',
|
|
|
|
'compiler/radeon_dataflow_swizzles.c',
|
|
|
|
'compiler/radeon_inline_literals.c',
|
|
|
|
'compiler/radeon_list.c',
|
|
|
|
'compiler/radeon_list.h',
|
|
|
|
'compiler/radeon_opcodes.c',
|
|
|
|
'compiler/radeon_opcodes.h',
|
|
|
|
'compiler/radeon_optimize.c',
|
|
|
|
'compiler/radeon_pair_dead_sources.c',
|
|
|
|
'compiler/radeon_pair_regalloc.c',
|
|
|
|
'compiler/radeon_pair_schedule.c',
|
|
|
|
'compiler/radeon_pair_translate.c',
|
|
|
|
'compiler/radeon_program_alu.c',
|
|
|
|
'compiler/radeon_program_alu.h',
|
|
|
|
'compiler/radeon_program.c',
|
|
|
|
'compiler/radeon_program_constants.h',
|
|
|
|
'compiler/radeon_program.h',
|
|
|
|
'compiler/radeon_program_pair.c',
|
|
|
|
'compiler/radeon_program_pair.h',
|
|
|
|
'compiler/radeon_program_print.c',
|
|
|
|
'compiler/radeon_program_tex.c',
|
|
|
|
'compiler/radeon_program_tex.h',
|
2022-10-25 21:43:54 +02:00
|
|
|
'compiler/radeon_regalloc.c',
|
2017-10-25 17:59:11 -07:00
|
|
|
'compiler/radeon_regalloc.h',
|
|
|
|
'compiler/radeon_remove_constants.c',
|
|
|
|
'compiler/radeon_remove_constants.h',
|
|
|
|
'compiler/radeon_rename_regs.c',
|
|
|
|
'compiler/radeon_rename_regs.h',
|
|
|
|
'compiler/radeon_swizzle.h',
|
|
|
|
'compiler/radeon_variable.c',
|
|
|
|
'compiler/radeon_variable.h',
|
|
|
|
'compiler/radeon_vert_fc.c',
|
|
|
|
)
|
|
|
|
|
2022-02-09 15:48:04 +01:00
|
|
|
r300_nir_algebraic_c = custom_target(
|
|
|
|
'r300_nir_algebraic.c',
|
|
|
|
input : 'compiler/r300_nir_algebraic.py',
|
|
|
|
output : 'r300_nir_algebraic.c',
|
|
|
|
command : [
|
2022-08-10 02:04:51 +03:00
|
|
|
prog_python, '@INPUT@', '-p', dir_compiler_nir, '@OUTPUT@',
|
2022-02-09 15:48:04 +01:00
|
|
|
],
|
2022-02-16 14:02:16 -08:00
|
|
|
depend_files : nir_algebraic_depends,
|
2022-02-09 15:48:04 +01:00
|
|
|
)
|
|
|
|
|
2017-10-25 17:59:11 -07:00
|
|
|
libr300 = static_library(
|
|
|
|
'r300',
|
2022-02-09 15:48:04 +01:00
|
|
|
files_r300, r300_nir_algebraic_c,
|
2017-10-25 17:59:11 -07:00
|
|
|
include_directories : [
|
|
|
|
inc_src, inc_include, inc_gallium, inc_gallium_aux, inc_gallium_drivers,
|
|
|
|
inc_mesa,
|
|
|
|
],
|
2020-04-24 13:10:41 -07:00
|
|
|
gnu_symbol_visibility : 'hidden',
|
2024-10-24 10:23:01 -04:00
|
|
|
dependencies : [dep_llvm, idep_mesautil, idep_nir, idep_xmlconfig],
|
2017-10-25 17:59:11 -07:00
|
|
|
)
|
|
|
|
|
2017-11-15 10:43:20 -08:00
|
|
|
driver_r300 = declare_dependency(
|
|
|
|
compile_args : '-DGALLIUM_R300',
|
|
|
|
link_with : [libr300, libradeonwinsys],
|
|
|
|
)
|