mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-21 12:10:30 +01:00
1,402 lines of code to be removed from Mesa (drivers and libGL). The big winner is dri_util.c. Primary changes are: 1. Remove all "deprecated" entry-points from the various structures in dri_interface.h. 2. Rename the remaining fields to removed "version numbers." So, bindContext3 becomes bindContext. Functions with "New" in the name (e.g., CreateNewContext) were *not* changed, but that is an option. Having "New" in the name is less annoying to me than having "3" in the name. 3. Remove all compatibility code that handles cases where the driver or the loader is too old to support the latest interfaces. 4. Append the API version to the __driCreateNewScreen function name. This is currently done by hand. In the future (i.e., the next time we make an incompatible change to the interface) we'll want to come up with a better way to do this. This prevents old loaders from being able to load new (incompatible) drivers. 5. Bump the API version to 20050722. All drivers (by way of dri_util.c) require this version. 6. All drivers are *required* to expose GLX_SGIX_fbconfig and GLX_OML_swap_method (or the moral equivalents). Support for these functions in implicit in the use of the "new" interface. 7. Some cases still exist that need to be compiled differently in a loader or core Mesa versus in a driver. These are identified by the define IN_DRI_DRIVER.
53 lines
1.3 KiB
Makefile
53 lines
1.3 KiB
Makefile
# -*-makefile-*-
|
|
# Configuration for linux-dri: Linux DRI hardware drivers for XFree86 & others
|
|
|
|
include $(TOP)/configs/default
|
|
|
|
CONFIG_NAME = linux-dri
|
|
|
|
# Compiler and flags
|
|
CC = gcc
|
|
CXX = g++
|
|
|
|
MKDEP = /usr/X11R6/bin/makedepend
|
|
#MKDEP = gcc -M
|
|
#MKDEP_OPTIONS = -MF depend
|
|
|
|
WARN_FLAGS = -Wall
|
|
OPT_FLAGS = -O -g
|
|
PIC_FLAGS = -fPIC
|
|
|
|
# Add '-DGLX_USE_TLS' to ARCH_FLAGS to enable TLS support.
|
|
ARCH_FLAGS ?=
|
|
|
|
DEFINES = -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE \
|
|
-D_BSD_SOURCE -D_GNU_SOURCE \
|
|
-DPTHREADS -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER
|
|
|
|
X11_INCLUDES = -I/usr/X11R6/include -I/usr/X11R6/include/X11/extensions
|
|
|
|
CFLAGS = $(WARN_FLAGS) $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES) \
|
|
$(ASM_FLAGS) -std=c99 -ffast-math
|
|
|
|
CXXFLAGS = $(WARN_FLAGS) $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES)
|
|
|
|
|
|
ASM_SOURCES =
|
|
|
|
# Library/program dependencies
|
|
EXTRA_LIB_PATH=-L/usr/X11R6/lib
|
|
|
|
DRI_LIB_DEPS = $(EXTRA_LIB_PATH) -lm -lpthread -lexpat -ldl
|
|
GL_LIB_DEPS = $(EXTRA_LIB_PATH) -lX11 -lXext -lXxf86vm -lm -lpthread -ldl
|
|
|
|
|
|
# Directories
|
|
SRC_DIRS = glx/x11 mesa glu glut/glx glw
|
|
DRIVER_DIRS = dri
|
|
PROGRAM_DIRS =
|
|
WINDOW_SYSTEM=dri
|
|
|
|
# gamma are missing because they have not been converted to use the new
|
|
# interface.
|
|
DRI_DIRS = dri_client i810 i830 i915 mach64 mga r128 r200 r300 radeon s3v \
|
|
savage sis tdfx trident unichrome ffb
|