2012-08-17 07:57:59 -06:00
|
|
|
# $OpenBSD: Makefile,v 1.6 2012/08/17 13:58:00 mpi Exp $
|
2007-12-04 15:00:27 -07:00
|
|
|
|
|
|
|
LIB= r300_dri.so
|
|
|
|
|
2010-05-22 14:14:14 -06:00
|
|
|
CS_SOURCES = \
|
|
|
|
radeon_cs_space_drm.c \
|
|
|
|
radeon_bo.c \
|
|
|
|
radeon_cs.c
|
|
|
|
|
2007-12-04 15:00:27 -07:00
|
|
|
COMMON_SOURCES = \
|
2010-05-22 14:14:14 -06:00
|
|
|
driverfuncs.c \
|
2012-08-17 07:57:59 -06:00
|
|
|
drirenderbuffer.c \
|
2008-11-02 08:01:32 -07:00
|
|
|
utils.c \
|
|
|
|
texmem.c \
|
|
|
|
vblank.c \
|
|
|
|
xmlconfig.c \
|
2010-05-22 14:14:14 -06:00
|
|
|
dri_util.c
|
|
|
|
|
|
|
|
RADEON_COMMON_SOURCES = \
|
|
|
|
radeon_bo_legacy.c \
|
|
|
|
radeon_buffer_objects.c \
|
|
|
|
radeon_common_context.c \
|
|
|
|
radeon_common.c \
|
|
|
|
radeon_cs_legacy.c \
|
|
|
|
radeon_dma.c \
|
|
|
|
radeon_debug.c \
|
|
|
|
radeon_fbo.c \
|
|
|
|
radeon_lock.c \
|
|
|
|
radeon_mipmap_tree.c \
|
2011-10-23 07:57:36 -06:00
|
|
|
radeon_pixel_read.c \
|
2010-05-22 14:14:14 -06:00
|
|
|
radeon_queryobj.c \
|
2011-10-23 07:57:36 -06:00
|
|
|
radeon_span.c \
|
2010-05-22 14:14:14 -06:00
|
|
|
radeon_texture.c \
|
2011-10-23 07:57:36 -06:00
|
|
|
radeon_tex_copy.c \
|
|
|
|
radeon_tex_getimage.c \
|
|
|
|
radeon_tile.c
|
2007-12-04 15:00:27 -07:00
|
|
|
|
|
|
|
DRIVER_SOURCES = \
|
|
|
|
radeon_screen.c \
|
2010-05-22 14:14:14 -06:00
|
|
|
r300_blit.c \
|
2007-12-04 15:00:27 -07:00
|
|
|
r300_context.c \
|
2010-05-22 14:14:14 -06:00
|
|
|
r300_draw.c \
|
2007-12-04 15:00:27 -07:00
|
|
|
r300_cmdbuf.c \
|
|
|
|
r300_state.c \
|
|
|
|
r300_render.c \
|
|
|
|
r300_tex.c \
|
|
|
|
r300_texstate.c \
|
|
|
|
r300_vertprog.c \
|
2010-05-22 14:14:14 -06:00
|
|
|
r300_fragprog_common.c \
|
2007-12-04 15:00:27 -07:00
|
|
|
r300_shader.c \
|
2010-05-22 14:14:14 -06:00
|
|
|
radeon_mesa_to_rc.c \
|
2007-12-04 15:00:27 -07:00
|
|
|
r300_emit.c \
|
2010-05-22 14:14:14 -06:00
|
|
|
r300_swtcl.c \
|
|
|
|
$(RADEON_COMMON_SOURCES) \
|
|
|
|
$(EGL_SOURCES) \
|
|
|
|
$(CS_SOURCES)
|
2007-12-04 15:00:27 -07:00
|
|
|
|
2010-05-22 14:14:14 -06:00
|
|
|
COMPILER_SOURCES = \
|
|
|
|
radeon_code.c \
|
|
|
|
radeon_compiler.c \
|
2011-10-23 07:57:36 -06:00
|
|
|
radeon_compiler_util.c \
|
|
|
|
radeon_emulate_branches.c \
|
|
|
|
radeon_emulate_loops.c \
|
2010-05-22 14:14:14 -06:00
|
|
|
radeon_program.c \
|
|
|
|
radeon_program_print.c \
|
|
|
|
radeon_opcodes.c \
|
|
|
|
radeon_program_alu.c \
|
|
|
|
radeon_program_pair.c \
|
2011-10-23 07:57:36 -06:00
|
|
|
radeon_program_tex.c \
|
2010-05-22 14:14:14 -06:00
|
|
|
radeon_pair_translate.c \
|
|
|
|
radeon_pair_schedule.c \
|
|
|
|
radeon_pair_regalloc.c \
|
2012-08-17 07:57:59 -06:00
|
|
|
radeon_pair_dead_sources.c \
|
2010-05-22 14:14:14 -06:00
|
|
|
radeon_dataflow.c \
|
|
|
|
radeon_dataflow_deadcode.c \
|
|
|
|
radeon_dataflow_swizzles.c \
|
2012-08-17 07:57:59 -06:00
|
|
|
radeon_list.c \
|
2011-10-23 07:57:36 -06:00
|
|
|
radeon_optimize.c \
|
|
|
|
radeon_remove_constants.c \
|
|
|
|
radeon_rename_regs.c \
|
2012-08-17 07:57:59 -06:00
|
|
|
radeon_variable.c \
|
2010-05-22 14:14:14 -06:00
|
|
|
r3xx_fragprog.c \
|
|
|
|
r300_fragprog.c \
|
|
|
|
r300_fragprog_swizzle.c \
|
|
|
|
r300_fragprog_emit.c \
|
|
|
|
r500_fragprog.c \
|
|
|
|
r500_fragprog_emit.c \
|
|
|
|
r3xx_vertprog.c \
|
|
|
|
r3xx_vertprog_dump.c \
|
|
|
|
memory_pool.c
|
2007-12-04 15:00:27 -07:00
|
|
|
|
2010-05-22 14:14:14 -06:00
|
|
|
SRCS = $(COMMON_SOURCES) $(DRIVER_SOURCES) $(COMPILER_SOURCES)
|
|
|
|
|
|
|
|
DRIVER_DEFINES = -DRADEON_R300 \
|
|
|
|
-DCOMPILE_R300 -DR200_MERGED=0 \
|
2007-12-04 15:00:27 -07:00
|
|
|
-DRADEON_COMMON=1 -DRADEON_COMMON_FOR_R300 \
|
|
|
|
-I$(MESA)/drivers/dri/r300 \
|
|
|
|
-I$(MESA)/drivers/dri/r300/server \
|
|
|
|
-I$(MESA)/drivers/dri/radeon \
|
|
|
|
-I$(MESA)/drivers/dri/radeon/server
|
|
|
|
|
|
|
|
.include <bsd.xorg.mk>
|
|
|
|
|
2011-10-23 07:57:36 -06:00
|
|
|
LDADD+= -ldrm_radeon
|
|
|
|
|
2007-12-04 15:00:27 -07:00
|
|
|
.PATH: $(MESA)/drivers/dri/r300
|
2010-05-22 14:14:14 -06:00
|
|
|
.PATH: $(MESA)/drivers/dri/r300/compiler
|
2007-12-04 15:00:27 -07:00
|
|
|
.PATH: $(MESA)/drivers/dri/radeon
|