Merge branch 'gallium-targets'

This commit is contained in:
Jakob Bornecrantz 2010-03-25 14:48:41 +01:00
commit 7d17de4b47
124 changed files with 312 additions and 421 deletions

View File

@ -76,7 +76,6 @@ GALLIUM_DIRS = @GALLIUM_DIRS@
GALLIUM_DRIVERS_DIRS = @GALLIUM_DRIVERS_DIRS@
GALLIUM_WINSYS_DIRS = @GALLIUM_WINSYS_DIRS@
GALLIUM_TARGET_DIRS = @GALLIUM_TARGET_DIRS@
GALLIUM_WINSYS_DRM_DIRS = @GALLIUM_WINSYS_DRM_DIRS@
GALLIUM_STATE_TRACKERS_DIRS = @GALLIUM_STATE_TRACKERS_DIRS@
GALLIUM_AUXILIARIES = $(TOP)/src/gallium/auxiliary/libgallium.a
GALLIUM_DRIVERS = $(foreach DIR,$(GALLIUM_DRIVERS_DIRS),$(TOP)/src/gallium/drivers/$(DIR)/lib$(DIR).a)

View File

@ -100,9 +100,8 @@ GALLIUM_DIRS = auxiliary drivers state_trackers
GALLIUM_AUXILIARIES = $(TOP)/src/gallium/auxiliary/libgallium.a
GALLIUM_DRIVERS_DIRS = softpipe failover svga i915 i965 r300 trace identity
GALLIUM_DRIVERS = $(foreach DIR,$(GALLIUM_DRIVERS_DIRS),$(TOP)/src/gallium/drivers/$(DIR)/lib$(DIR).a)
GALLIUM_WINSYS_DIRS = null xlib drm
GALLIUM_WINSYS_DIRS = sw sw/xlib
GALLIUM_TARGET_DIRS = libgl-xlib
GALLIUM_WINSYS_DRM_DIRS = swrast
GALLIUM_STATE_TRACKERS_DIRS = glx vega
# native displays EGL should support

View File

@ -58,9 +58,8 @@ PROGRAM_DIRS := egl $(PROGRAM_DIRS)
EGL_DRIVERS_DIRS = glx
DRIVER_DIRS = dri
GALLIUM_WINSYS_DIRS = null xlib drm
GALLIUM_TARGET_DIRS =
GALLIUM_WINSYS_DRM_DIRS = vmware intel i965
GALLIUM_WINSYS_DIRS = sw sw/xlib drm/vmware drm/intel drm/i965
GALLIUM_TARGET_DIRS = egl-swrast
GALLIUM_STATE_TRACKERS_DIRS = egl
DRI_DIRS = i810 i915 i965 mach64 mga r128 r200 r300 radeon \

View File

@ -24,5 +24,5 @@ GALLIUM_STATE_TRACKERS_DIRS = es
# build egl_x11_{swrast,i915}.so
GALLIUM_DRIVERS_DIRS += trace i915
GALLIUM_STATE_TRACKERS_DIRS += egl
GALLIUM_WINSYS_DIRS += drm
GALLIUM_WINSYS_DRM_DIRS += intel swrast
GALLIUM_WINSYS_DIRS += drm/intel
GALLIUM_TARGET_DIRS += egl-swrast egl-i915

View File

@ -461,21 +461,20 @@ SRC_DIRS="glew"
GLU_DIRS="sgi"
GALLIUM_DIRS="auxiliary drivers state_trackers"
GALLIUM_TARGET_DIRS=""
GALLIUM_WINSYS_DIRS=""
GALLIUM_WINSYS_DRM_DIRS=""
GALLIUM_WINSYS_DIRS="sw"
GALLIUM_DRIVERS_DIRS="softpipe failover trace identity"
GALLIUM_STATE_TRACKERS_DIRS=""
case "$mesa_driver" in
xlib)
DRIVER_DIRS="x11"
GALLIUM_WINSYS_DIRS="$GALLIUM_WINSYS_DIRS xlib"
GALLIUM_WINSYS_DIRS="$GALLIUM_WINSYS_DIRS sw/xlib"
GALLIUM_TARGET_DIRS="$GALLIUM_TARGET_DIRS libgl-xlib"
;;
dri)
SRC_DIRS="$SRC_DIRS glx"
DRIVER_DIRS="dri"
GALLIUM_WINSYS_DIRS="$GALLIUM_WINSYS_DIRS xlib drm"
GALLIUM_WINSYS_DIRS="$GALLIUM_WINSYS_DIRS sw/xlib sw/drm"
;;
osmesa)
DRIVER_DIRS="osmesa"
@ -487,7 +486,6 @@ AC_SUBST([DRIVER_DIRS])
AC_SUBST([GALLIUM_DIRS])
AC_SUBST([GALLIUM_TARGET_DIRS])
AC_SUBST([GALLIUM_WINSYS_DIRS])
AC_SUBST([GALLIUM_WINSYS_DRM_DIRS])
AC_SUBST([GALLIUM_DRIVERS_DIRS])
AC_SUBST([GALLIUM_STATE_TRACKERS_DIRS])
@ -1182,7 +1180,7 @@ AC_ARG_ENABLE([gallium],
[enable_gallium="$enableval"],
[enable_gallium=yes])
if test "x$enable_gallium" = xyes; then
SRC_DIRS="$SRC_DIRS gallium gallium/winsys"
SRC_DIRS="$SRC_DIRS gallium gallium/winsys gallium/targets"
fi
dnl
@ -1318,7 +1316,16 @@ AC_ARG_ENABLE([gallium-svga],
[enable_gallium_svga="$enableval"],
[enable_gallium_svga=auto])
if test "x$enable_gallium_svga" = xyes; then
GALLIUM_WINSYS_DRM_DIRS="$GALLIUM_WINSYS_DRM_DIRS vmware"
if test "x$mesa_driver" = xdri; then
GALLIUM_WINSYS_DIRS="$GALLIUM_WINSYS_DIRS svga/drm"
GALLIUM_TARGET_DIRS="$GALLIUM_TARGET_DIRS dri-vmwgfx"
fi
if test "x$enable_egl" = xyes; then
GALLIUM_TARGET_DIRS="$GALLIUM_TARGET_DIRS egl-vmwgfx"
fi
if test "x$HAVE_XORG" = xyes; then
GALLIUM_TARGET_DIRS="$GALLIUM_TARGET_DIRS xorg-vmwgfx"
fi
GALLIUM_DRIVERS_DIRS="$GALLIUM_DRIVERS_DIRS svga"
elif test "x$enable_gallium_svga" = xauto; then
GALLIUM_DRIVERS_DIRS="$GALLIUM_DRIVERS_DIRS svga"
@ -1333,7 +1340,16 @@ AC_ARG_ENABLE([gallium-intel],
[enable_gallium_intel="$enableval"],
[enable_gallium_intel=auto])
if test "x$enable_gallium_intel" = xyes; then
GALLIUM_WINSYS_DRM_DIRS="$GALLIUM_WINSYS_DRM_DIRS intel i965"
if test "x$mesa_driver" = xdri; then
GALLIUM_WINSYS_DIRS="$GALLIUM_WINSYS_DIRS i915/drm i965/drm"
GALLIUM_TARGET_DIRS="$GALLIUM_TARGET_DIRS dri-i915 dri-i965"
fi
if test "x$enable_egl" = xyes; then
GALLIUM_TARGET_DIRS="$GALLIUM_TARGET_DIRS egl-i915 egl-i965"
fi
if test "x$HAVE_XORG" = xyes; then
GALLIUM_TARGET_DIRS="$GALLIUM_TARGET_DIRS xorg-i915 xorg-i965"
fi
GALLIUM_DRIVERS_DIRS="$GALLIUM_DRIVERS_DIRS i915 i965"
elif test "x$enable_gallium_intel" = xauto; then
GALLIUM_DRIVERS_DIRS="$GALLIUM_DRIVERS_DIRS i915 i965"
@ -1348,7 +1364,16 @@ AC_ARG_ENABLE([gallium-radeon],
[enable_gallium_radeon="$enableval"],
[enable_gallium_radeon=auto])
if test "x$enable_gallium_radeon" = xyes; then
GALLIUM_WINSYS_DRM_DIRS="$GALLIUM_WINSYS_DRM_DIRS radeon"
if test "x$mesa_driver" = xdri; then
GALLIUM_WINSYS_DIRS="$GALLIUM_WINSYS_DIRS radeon/drm"
GALLIUM_TARGET_DIRS="$GALLIUM_TARGET_DIRS dri-radeong"
fi
if test "x$enable_egl" = xyes; then
GALLIUM_TARGET_DIRS="$GALLIUM_TARGET_DIRS egl-radeon"
fi
if test "x$HAVE_XORG" = xyes; then
GALLIUM_TARGET_DIRS="$GALLIUM_TARGET_DIRS xorg-radeon"
fi
GALLIUM_DRIVERS_DIRS="$GALLIUM_DRIVERS_DIRS r300"
elif test "x$enable_gallium_radeon" = xauto; then
GALLIUM_DRIVERS_DIRS="$GALLIUM_DRIVERS_DIRS r300"
@ -1363,7 +1388,16 @@ AC_ARG_ENABLE([gallium-nouveau],
[enable_gallium_nouveau="$enableval"],
[enable_gallium_nouveau=no])
if test "x$enable_gallium_nouveau" = xyes; then
GALLIUM_WINSYS_DRM_DIRS="$GALLIUM_WINSYS_DRM_DIRS nouveau"
if test "x$mesa_driver" = xdri; then
GALLIUM_WINSYS_DIRS="$GALLIUM_WINSYS_DIRS nouveau/drm"
GALLIUM_TARGET_DIRS="$GALLIUM_TARGET_DIRS dri-nouveau"
fi
if test "x$enable_egl" = xyes; then
GALLIUM_TARGET_DIRS="$GALLIUM_TARGET_DIRS egl-nouveau"
fi
if test "x$HAVE_XORG" = xyes; then
GALLIUM_TARGET_DIRS="$GALLIUM_TARGET_DIRS xorg-nouveau"
fi
GALLIUM_DRIVERS_DIRS="$GALLIUM_DRIVERS_DIRS nouveau nvfx nv50"
fi
@ -1372,11 +1406,18 @@ dnl Gallium swrast configuration
dnl
AC_ARG_ENABLE([gallium-swrast],
[AS_HELP_STRING([--enable-gallium-swrast],
[build gallium swrast @<:@default=disabled@:>@])],
[build gallium swrast @<:@default=auto@:>@])],
[enable_gallium_swrast="$enableval"],
[enable_gallium_swrast=auto])
if test "x$enable_gallium_swrast" = xyes; then
GALLIUM_WINSYS_DRM_DIRS="$GALLIUM_WINSYS_DRM_DIRS swrast"
if test "x$enable_egl" != xyes; then
AC_MSG_ERROR([EGL needs to be enabled for egl-swrast target])
fi
GALLIUM_TARGET_DIRS="$GALLIUM_TARGET_DIRS egl-swrast"
elif test "x$enable_gallium_swrast" = xauto; then
if test "x$enable_egl" = xyes; then
GALLIUM_TARGET_DIRS="$GALLIUM_TARGET_DIRS egl-swrast"
fi
fi
dnl prepend CORE_DIRS to SRC_DIRS
@ -1434,7 +1475,6 @@ if echo "$SRC_DIRS" | grep 'gallium' >/dev/null 2>&1; then
echo " Gallium dirs: $GALLIUM_DIRS"
echo " Target dirs: $GALLIUM_TARGET_DIRS"
echo " Winsys dirs: $GALLIUM_WINSYS_DIRS"
echo " Winsys drm dirs:$GALLIUM_WINSYS_DRM_DIRS"
echo " Driver dirs: $GALLIUM_DRIVERS_DIRS"
echo " Trackers dirs: $GALLIUM_STATE_TRACKERS_DIRS"
else

View File

@ -8,7 +8,7 @@ for driver in env['drivers']:
SConscript(os.path.join('drivers', driver, 'SConscript'))
# Needed by some state trackers
SConscript('winsys/null/SConscript')
SConscript('winsys/sw/null/SConscript')
SConscript('state_trackers/python/SConscript')
if platform != 'embedded':

View File

@ -14,7 +14,7 @@ EGL_DRIVER_OBJECTS = $(EGL_DRIVER_SOURCES:.c=.o)
common_LIBS = -ldrm -lm -ldl
x11_ST = $(TOP)/src/gallium/state_trackers/egl/libeglx11.a \
$(TOP)/src/gallium/winsys/xlib/libws_xlib.a
$(TOP)/src/gallium/winsys/sw/xlib/libws_xlib.a
x11_LIBS = $(common_LIBS) -lX11 -lXext -lXfixes
kms_ST = $(TOP)/src/gallium/state_trackers/egl/libeglkms.a

View File

@ -14,3 +14,71 @@ if 'gdi' in env['winsys']:
SConscript([
'libgl-gdi/SConscript',
])
if env['dri']:
drienv = env.Clone()
drienv.Replace(CPPPATH = [
'#src/mesa/drivers/dri/common',
'#include',
'#include/GL/internal',
'#src/gallium/include',
'#src/gallium/auxiliary',
'#src/gallium/drivers',
'#src/mesa',
'#src/mesa/main',
'#src/mesa/glapi',
'#src/mesa/math',
'#src/mesa/transform',
'#src/mesa/shader',
'#src/mesa/swrast',
'#src/mesa/swrast_setup',
'#src/egl/main',
'#src/egl/drivers/dri',
])
drienv.ParseConfig('pkg-config --cflags --libs libdrm')
COMMON_GALLIUM_SOURCES = [
'#src/mesa/drivers/dri/common/utils.c',
'#src/mesa/drivers/dri/common/vblank.c',
'#src/mesa/drivers/dri/common/dri_util.c',
'#src/mesa/drivers/dri/common/xmlconfig.c',
]
COMMON_BM_SOURCES = [
'#src/mesa/drivers/dri/common/dri_bufmgr.c',
'#src/mesa/drivers/dri/common/dri_drmpool.c',
]
Export([
'drienv',
'COMMON_GALLIUM_SOURCES',
'COMMON_BM_SOURCES',
])
if 'vmware' in env['winsys']:
SConscript([
'dri-vmwgfx/SConscript',
])
if 'intel' in env['winsys']:
SConscript([
'dri-i915/SConscript',
])
if 'i965' in env['winsys']:
SConscript([
'dri-i965/SConscript',
])
if 'radeon' in env['winsys']:
SConscript([
'dri-radeong/SConscript',
])
if 'xorg' in env['statetrackers']:
if 'vmware' in env['winsys']:
SConscript([
'xorg-vmwgfx/SConscript',
])

View File

@ -1,26 +1,22 @@
TOP = ../../../../../..
TOP = ../../../..
include $(TOP)/configs/current
LIBNAME = i915_dri.so
PIPE_DRIVERS = \
$(TOP)/src/gallium/state_trackers/dri/libdridrm.a \
$(TOP)/src/gallium/winsys/drm/intel/gem/libinteldrm.a \
$(TOP)/src/gallium/winsys/i915/drm/libinteldrm.a \
$(TOP)/src/gallium/drivers/trace/libtrace.a \
$(TOP)/src/gallium/drivers/softpipe/libsoftpipe.a \
$(TOP)/src/gallium/drivers/identity/libidentity.a \
$(TOP)/src/gallium/drivers/i915/libi915.a
DRIVER_SOURCES =
C_SOURCES = \
$(COMMON_GALLIUM_SOURCES) \
$(DRIVER_SOURCES)
include ../../Makefile.template
include ../Makefile.dri
DRI_LIB_DEPS += -ldrm_intel
symlinks: $(TOP)/$(LIB_DIR)/gallium
@rm -f $(TOP)/$(LIB_DIR)/gallium/i965_dri.so
symlinks:

View File

@ -1,5 +1,9 @@
Import('*')
if not 'i915' in env['drivers']:
print 'warning: i915 pipe driver not built skipping i915_dri.so'
Return()
env = drienv.Clone()
env.ParseConfig('pkg-config --cflags --libs libdrm_intel')

View File

@ -1,27 +1,24 @@
TOP = ../../../../../..
TOP = ../../../..
include $(TOP)/configs/current
LIBNAME = i965_dri.so
PIPE_DRIVERS = \
$(TOP)/src/gallium/state_trackers/dri/libdridrm.a \
$(TOP)/src/gallium/winsys/drm/i965/gem/libi965drm.a \
$(TOP)/src/gallium/winsys/i965/drm/libi965drm.a \
$(TOP)/src/gallium/drivers/trace/libtrace.a \
$(TOP)/src/gallium/winsys/drm/sw/libswdrm.a \
$(TOP)/src/gallium/winsys/sw/drm/libswdrm.a \
$(TOP)/src/gallium/winsys/sw/wrapper/libwsw.a \
$(TOP)/src/gallium/drivers/softpipe/libsoftpipe.a \
$(TOP)/src/gallium/drivers/identity/libidentity.a \
$(TOP)/src/gallium/drivers/i965/libi965.a
DRIVER_SOURCES =
C_SOURCES = \
$(COMMON_GALLIUM_SOURCES) \
$(DRIVER_SOURCES)
include ../../Makefile.template
include ../Makefile.dri
DRI_LIB_DEPS += -ldrm_intel
symlinks: $(TOP)/$(LIB_DIR)/gallium
@rm -f $(TOP)/$(LIB_DIR)/gallium/i965_dri.so
symlinks:

View File

@ -1,5 +1,9 @@
Import('*')
if not 'i965' in env['drivers']:
print 'warning: i965 pipe driver not built skipping i965_dri.so'
Return()
env = drienv.Clone()
env.ParseConfig('pkg-config --cflags --libs libdrm_intel')

View File

@ -1,22 +1,20 @@
TOP = ../../../../../..
TOP = ../../../..
include $(TOP)/configs/current
LIBNAME = nouveau_dri.so
PIPE_DRIVERS = \
$(TOP)/src/gallium/state_trackers/dri/libdridrm.a \
$(TOP)/src/gallium/winsys/drm/nouveau/drm/libnouveaudrm.a \
$(TOP)/src/gallium/winsys/nouveau/drm/libnouveaudrm.a \
$(TOP)/src/gallium/drivers/nvfx/libnvfx.a \
$(TOP)/src/gallium/drivers/nv50/libnv50.a \
$(TOP)/src/gallium/drivers/nouveau/libnouveau.a
DRIVER_SOURCES =
C_SOURCES = \
$(COMMON_GALLIUM_SOURCES) \
$(DRIVER_SOURCES)
include ../../Makefile.template
include ../Makefile.dri
DRI_LIB_DEPS += $(shell pkg-config libdrm_nouveau --libs)

View File

@ -1,12 +1,11 @@
TOP = ../../../../../..
TOP = ../../../..
include $(TOP)/configs/current
LIBNAME = radeong_dri.so
PIPE_DRIVERS = \
$(TOP)/src/gallium/state_trackers/dri/libdridrm.a \
$(TOP)/src/gallium/winsys/drm/radeon/core/libradeonwinsys.a \
$(TOP)/src/gallium/winsys/radeon/drm/libradeonwinsys.a \
$(TOP)/src/gallium/drivers/softpipe/libsoftpipe.a \
$(TOP)/src/gallium/drivers/trace/libtrace.a \
$(TOP)/src/gallium/drivers/r300/libr300.a
@ -15,9 +14,7 @@ C_SOURCES = \
$(COMMON_GALLIUM_SOURCES) \
$(DRIVER_SOURCES)
ASM_SOURCES =
include ../../Makefile.template
include ../Makefile.dri
DRI_LIB_DEPS += -ldrm_radeon

View File

@ -1,5 +1,9 @@
Import('*')
if not 'r300' in env['drivers']:
print 'warning: r300 pipe driver not built skipping radeong_dri.so'
Return()
env = drienv.Clone()
env.ParseConfig('pkg-config --cflags --libs libdrm_radeon')

View File

@ -1,18 +1,17 @@
TOP = ../../../../../..
TOP = ../../../..
include $(TOP)/configs/current
LIBNAME = vmwgfx_dri.so
PIPE_DRIVERS = \
$(TOP)/src/gallium/state_trackers/dri/libdridrm.a \
$(TOP)/src/gallium/winsys/drm/vmware/core/libsvgadrm.a \
$(TOP)/src/gallium/winsys/svga/drm/libsvgadrm.a \
$(TOP)/src/gallium/drivers/trace/libtrace.a \
$(TOP)/src/gallium/drivers/svga/libsvga.a
C_SOURCES = \
$(COMMON_GALLIUM_SOURCES)
include ../../Makefile.template
include ../Makefile.dri
symlinks:

View File

@ -0,0 +1,24 @@
Import('*')
if not 'svga' in env['drivers']:
print 'warning: svga pipe driver not built skipping vmwgfx_dri.so'
Return()
env = drienv.Clone()
drivers = [
trace,
st_dri,
svgadrm,
svga,
mesa,
glsl,
gallium,
]
env.LoadableModule(
target ='vmwgfx_dri.so',
source = COMMON_GALLIUM_SOURCES,
LIBS = drivers + mesa + gallium + env['LIBS'],
SHLIBPREFIX = '',
)

View File

@ -1,4 +1,4 @@
TOP = ../../../../../..
TOP = ../../../..
include $(TOP)/configs/current
EGL_DRIVER_NAME = i915
@ -6,9 +6,9 @@ EGL_DRIVER_SOURCES = dummy.c
EGL_DRIVER_LIBS = -ldrm_intel
EGL_DRIVER_PIPES = \
$(TOP)/src/gallium/winsys/drm/intel/gem/libinteldrm.a \
$(TOP)/src/gallium/winsys/i915/drm/libinteldrm.a \
$(TOP)/src/gallium/drivers/softpipe/libsoftpipe.a \
$(TOP)/src/gallium/drivers/trace/libtrace.a \
$(TOP)/src/gallium/drivers/i915/libi915.a
include ../../Makefile.egl
include ../Makefile.egl

View File

@ -1,4 +1,4 @@
TOP = ../../../../../..
TOP = ../../../..
include $(TOP)/configs/current
EGL_DRIVER_NAME = i965
@ -6,9 +6,9 @@ EGL_DRIVER_SOURCES = dummy.c
EGL_DRIVER_LIBS = -ldrm_intel
EGL_DRIVER_PIPES = \
$(TOP)/src/gallium/winsys/drm/i965/gem/libi965drm.a \
$(TOP)/src/gallium/winsys/i965/drm/libi965drm.a \
$(TOP)/src/gallium/drivers/softpipe/libsoftpipe.a \
$(TOP)/src/gallium/drivers/trace/libtrace.a \
$(TOP)/src/gallium/drivers/i965/libi965.a
include ../../Makefile.egl
include ../Makefile.egl

View File

@ -1,4 +1,4 @@
TOP = ../../../../../..
TOP = ../../../..
include $(TOP)/configs/current
EGL_DRIVER_NAME = nouveau
@ -6,10 +6,10 @@ EGL_DRIVER_SOURCES = dummy.c
EGL_DRIVER_LIBS = -ldrm_nouveau
EGL_DRIVER_PIPES = \
$(TOP)/src/gallium/winsys/drm/nouveau/drm/libnouveaudrm.a \
$(TOP)/src/gallium/winsys/nouveau/drm/libnouveaudrm.a \
$(TOP)/src/gallium/drivers/nvfx/libnvfx.a \
$(TOP)/src/gallium/drivers/nv50/libnv50.a \
$(TOP)/src/gallium/drivers/nouveau/libnouveau.a \
$(TOP)/src/gallium/drivers/softpipe/libsoftpipe.a
include ../../Makefile.egl
include ../Makefile.egl

View File

@ -1,4 +1,4 @@
TOP = ../../../../../..
TOP = ../../../..
include $(TOP)/configs/current
EGL_DRIVER_NAME = radeon
@ -6,9 +6,9 @@ EGL_DRIVER_SOURCES = dummy.c
EGL_DRIVER_LIBS = -ldrm_radeon
EGL_DRIVER_PIPES = \
$(TOP)/src/gallium/winsys/drm/radeon/core/libradeonwinsys.a \
$(TOP)/src/gallium/winsys/radeon/drm/libradeonwinsys.a \
$(TOP)/src/gallium/drivers/softpipe/libsoftpipe.a \
$(TOP)/src/gallium/drivers/trace/libtrace.a \
$(TOP)/src/gallium/drivers/r300/libr300.a
include ../../Makefile.egl
include ../Makefile.egl

View File

@ -0,0 +1,12 @@
TOP = ../../../..
include $(TOP)/configs/current
# Do propperly
CFLAGS+="-I$(TOP)/src/gallium/include"
EGL_DRIVER_NAME = swrast
EGL_DRIVER_SOURCES = swrast_glue.c
EGL_DRIVER_LIBS =
EGL_DRIVER_PIPES = $(TOP)/src/gallium/drivers/softpipe/libsoftpipe.a
include ../Makefile.egl

View File

@ -11,3 +11,7 @@ drm_api_create()
(void) swrast_drm_api;
return NULL;
}
/* A poor man's --whole-archive for EGL drivers */
void *_eglMain(void *);
void *_eglWholeArchive = (void *) _eglMain;

View File

@ -1,4 +1,4 @@
TOP = ../../../../../..
TOP = ../../../..
include $(TOP)/configs/current
EGL_DRIVER_NAME = vmwgfx
@ -6,9 +6,9 @@ EGL_DRIVER_SOURCES = dummy.c
EGL_DRIVER_LIBS =
EGL_DRIVER_PIPES = \
$(TOP)/src/gallium/winsys/drm/vmware/core/libsvgadrm.a \
$(TOP)/src/gallium/winsys/svga/drm/libsvgadrm.a \
$(TOP)/src/gallium/drivers/softpipe/libsoftpipe.a \
$(TOP)/src/gallium/drivers/trace/libtrace.a \
$(TOP)/src/gallium/drivers/svga/libsvga.a
include ../../Makefile.egl
include ../Makefile.egl

View File

@ -38,7 +38,7 @@ XLIB_TARGET_OBJECTS = $(XLIB_TARGET_SOURCES:.c=.o)
LIBS = \
$(GALLIUM_DRIVERS) \
$(TOP)/src/gallium/state_trackers/glx/xlib/libxlib.a \
$(TOP)/src/gallium/winsys/xlib/libws_xlib.a \
$(TOP)/src/gallium/winsys/sw/xlib/libws_xlib.a \
$(TOP)/src/gallium/drivers/trace/libtrace.a \
$(TOP)/src/gallium/drivers/identity/libidentity.a \
$(TOP)/src/mesa/libglapi.a \

View File

@ -1,13 +1,13 @@
TOP = ../../../..
include $(TOP)/configs/current
TARGET = modesetting_drv.so
CFILES = $(wildcard ./*.c)
OBJECTS = $(patsubst ./%.c,./%.o,$(CFILES))
TOP = ../../../../../..
include $(TOP)/configs/current
INCLUDES = \
$(shell pkg-config --cflags-only-I pixman-1 xorg-server libdrm xproto) \
-I../gem \
-I$(TOP)/src/gallium/winsys/drm/intel/gem \
-I$(TOP)/src/gallium/include \
-I$(TOP)/src/gallium/drivers \
-I$(TOP)/src/gallium/auxiliary \
@ -17,7 +17,7 @@ INCLUDES = \
LIBS = \
$(TOP)/src/gallium/state_trackers/xorg/libxorgtracker.a \
$(TOP)/src/gallium/winsys/drm/intel/gem/libinteldrm.a \
$(TOP)/src/gallium/winsys/i915/drm/libinteldrm.a \
$(TOP)/src/gallium/drivers/i915/libi915.a \
$(TOP)/src/gallium/drivers/trace/libtrace.a \
$(TOP)/src/gallium/drivers/softpipe/libsoftpipe.a \

View File

@ -28,7 +28,7 @@
*
*/
#include "../../../../state_trackers/xorg/xorg_winsys.h"
#include "../../state_trackers/xorg/xorg_winsys.h"
static void intel_xorg_identify(int flags);
static Bool intel_xorg_pci_probe(DriverPtr driver,

View File

@ -1,29 +1,23 @@
TOP = ../../../../../..
GALLIUMDIR = $(TOP)/src/gallium
TOP = ../../../..
include $(TOP)/configs/current
TARGET = i965g_drv.so
CFILES = $(wildcard ./*.c)
include ${TOP}/configs/current
OBJECTS = $(patsubst ./%.c,./%.o,$(CFILES))
CFLAGS = -DHAVE_CONFIG_H \
-g -Wall -Wimplicit-function-declaration -fPIC \
$(shell pkg-config --cflags pixman-1 xorg-server libdrm xproto) \
-I${GALLIUMDIR}/include \
-I${GALLIUMDIR}/drivers \
-I${GALLIUMDIR}/auxiliary \
-I${TOP}/src/mesa \
-I$(TOP)/src/gallium/include \
-I$(TOP)/src/gallium/drivers \
-I$(TOP)/src/gallium/auxiliary \
-I$(TOP)/src/mesa \
-I$(TOP)/include \
-I$(TOP)/src/egl/main
LIBS = \
$(TOP)/src/gallium/state_trackers/xorg/libxorgtracker.a \
$(TOP)/src/gallium/winsys/drm/i965/gem/libi965drm.a \
$(TOP)/src/gallium/winsys/i965/drm/libi965drm.a \
$(TOP)/src/gallium/drivers/i965/libi965.a \
$(TOP)/src/gallium/drivers/trace/libtrace.a \
$(TOP)/src/gallium/drivers/softpipe/libsoftpipe.a \
@ -34,7 +28,7 @@ TARGET_STAGING = $(TOP)/$(LIB_DIR)/gallium/$(TARGET)
all default: $(TARGET) $(TARGET_STAGING)
$(TARGET): $(OBJECTS) Makefile $(GALLIUMDIR)/state_trackers/xorg/libxorgtracker.a $(LIBS)
$(TARGET): $(OBJECTS) Makefile $(TOP)/src/gallium/state_trackers/xorg/libxorgtracker.a $(LIBS)
$(TOP)/bin/mklib -noprefix -o $@ \
$(OBJECTS) $(LIBS) $(shell pkg-config --libs libdrm) -ldrm_intel

View File

@ -28,7 +28,7 @@
*
*/
#include "../../../../state_trackers/xorg/xorg_winsys.h"
#include "../../state_trackers/xorg/xorg_winsys.h"
static void intel_xorg_identify(int flags);
static Bool intel_xorg_pci_probe(DriverPtr driver,

View File

@ -1,13 +1,12 @@
TOP = ../../../..
include $(TOP)/configs/current
TARGET = modesetting_drv.so
CFILES = $(wildcard ./*.c)
OBJECTS = $(patsubst ./%.c,./%.o,$(CFILES))
TOP = ../../../../../..
include $(TOP)/configs/current
INCLUDES = \
$(shell pkg-config --cflags-only-I pixman-1 xorg-server libdrm xproto) \
-I../gem \
-I$(TOP)/src/gallium/include \
-I$(TOP)/src/gallium/drivers \
-I$(TOP)/src/gallium/auxiliary \
@ -17,7 +16,7 @@ INCLUDES = \
LIBS = \
$(TOP)/src/gallium/state_trackers/xorg/libxorgtracker.a \
$(TOP)/src/gallium/winsys/drm/nouveau/drm/libnouveaudrm.a \
$(TOP)/src/gallium/winsys/nouveau/drm/libnouveaudrm.a \
$(TOP)/src/gallium/drivers/nvfx/libnvfx.a \
$(TOP)/src/gallium/drivers/nv50/libnv50.a \
$(TOP)/src/gallium/drivers/nouveau/libnouveau.a \

View File

@ -28,7 +28,7 @@
*
*/
#include "../../../../state_trackers/xorg/xorg_winsys.h"
#include "../../state_trackers/xorg/xorg_winsys.h"
static void nouveau_xorg_identify(int flags);
static Bool nouveau_xorg_pci_probe(DriverPtr driver, int entity_num,

View File

@ -1,29 +1,23 @@
TOP = ../../../../../..
GALLIUMDIR = $(TOP)/src/gallium
TOP = ../../../..
include $(TOP)/configs/current
TARGET = radeong_drv.so
CFILES = $(wildcard ./*.c)
include ${TOP}/configs/current
OBJECTS = $(patsubst ./%.c,./%.o,$(CFILES))
CFLAGS = -DHAVE_CONFIG_H \
-g -Wall -Wimplicit-function-declaration -fPIC \
$(shell pkg-config --cflags pixman-1 xorg-server libdrm xproto) \
-I${GALLIUMDIR}/include \
-I${GALLIUMDIR}/drivers \
-I${GALLIUMDIR}/auxiliary \
-I$(TOP)/src/gallium/include \
-I$(TOP)/src/gallium/drivers \
-I$(TOP)/src/gallium/auxiliary \
-I${TOP}/src/mesa \
-I$(TOP)/include \
-I$(TOP)/src/egl/main
LIBS = \
$(GALLIUMDIR)/state_trackers/xorg/libxorgtracker.a \
$(GALLIUMDIR)/winsys/drm/radeon/core/libradeonwinsys.a \
$(TOP)/src/gallium/state_trackers/xorg/libxorgtracker.a \
$(TOP)/src/gallium/winsys/radeon/drm/libradeonwinsys.a \
$(TOP)/src/gallium/drivers/r300/libr300.a \
$(TOP)/src/gallium/drivers/trace/libtrace.a \
$(TOP)/src/gallium/drivers/softpipe/libsoftpipe.a \
@ -34,7 +28,7 @@ TARGET_STAGING = $(TOP)/$(LIB_DIR)/gallium/$(TARGET)
all default: $(TARGET) $(TARGET_STAGING)
$(TARGET): $(OBJECTS) Makefile $(GALLIUMDIR)/state_trackers/xorg/libxorgtracker.a $(LIBS)
$(TARGET): $(OBJECTS) Makefile $(TOP)/src/gallium/state_trackers/xorg/libxorgtracker.a $(LIBS)
$(TOP)/bin/mklib -noprefix -o $@ \
$(OBJECTS) $(LIBS) $(shell pkg-config --libs libdrm) -ldrm_radeon

View File

@ -29,7 +29,7 @@
*
*/
#include "../../../../state_trackers/xorg/xorg_winsys.h"
#include "../../state_trackers/xorg/xorg_winsys.h"
static void radeon_xorg_identify(int flags);
static Bool radeon_xorg_pci_probe(DriverPtr driver,

View File

@ -1,5 +1,4 @@
TOP = ../../../../../..
TOP = ../../../..
include $(TOP)/configs/current
TARGET = vmwgfx_drv.so
@ -21,7 +20,7 @@ INCLUDES = \
LIBS = \
$(TOP)/src/gallium/state_trackers/xorg/libxorgtracker.a \
$(TOP)/src/gallium/winsys/drm/vmware/core/libsvgadrm.a \
$(TOP)/src/gallium/winsys/svga/drm/libsvgadrm.a \
$(TOP)/src/gallium/drivers/trace/libtrace.a \
$(TOP)/src/gallium/drivers/svga/libsvga.a \
$(GALLIUM_AUXILIARIES)

View File

@ -2,6 +2,10 @@ import os.path
Import('*')
if not 'svga' in env['drivers']:
print 'warning: svga pipe driver not built skipping vmwgfx_drv.so'
Return()
if env['platform'] == 'linux':
env = env.Clone()

View File

@ -42,7 +42,7 @@
#include <sys/mman.h>
#include "xf86drm.h"
#include "../core/vmwgfx_drm.h"
#include "../../winsys/svga/drm/vmwgfx_drm.h"
#include "vmw_driver.h"
#include "util/u_debug.h"

View File

@ -62,7 +62,7 @@ typedef uint8_t uint8;
#include <X11/extensions/Xv.h>
#include "xf86drm.h"
#include "../core/vmwgfx_drm.h"
#include "../../winsys/svga/drm/vmwgfx_drm.h"
#define MAKE_ATOM(a) MakeAtom(a, sizeof(a) - 1, TRUE)

View File

@ -1,16 +1,32 @@
Import('*')
if env['dri']:
SConscript([
'drm/SConscript',
])
if 'xlib' in env['winsys']:
SConscript([
'xlib/SConscript',
'sw/xlib/SConscript',
])
if 'gdi' in env['winsys']:
SConscript([
'gdi/SConscript',
'sw/gdi/SConscript',
])
if env['dri']:
if 'vmware' in env['winsys']:
SConscript([
'svga/drm/SConscript',
])
if 'intel' in env['winsys']:
SConscript([
'i915/drm/SConscript',
])
if 'i965' in env['winsys']:
SConscript([
'i965/drm/SConscript',
])
if 'radeon' in env['winsys']:
SConscript([
'radeon/drm/SConscript',
])

View File

@ -1,69 +0,0 @@
Import('*')
if env['dri']:
drienv = env.Clone()
drienv.Replace(CPPPATH = [
'#src/mesa/drivers/dri/common',
'#include',
'#include/GL/internal',
'#src/gallium/include',
'#src/gallium/auxiliary',
'#src/gallium/drivers',
'#src/mesa',
'#src/mesa/main',
'#src/mesa/glapi',
'#src/mesa/math',
'#src/mesa/transform',
'#src/mesa/shader',
'#src/mesa/swrast',
'#src/mesa/swrast_setup',
'#src/egl/main',
'#src/egl/drivers/dri',
])
drienv.ParseConfig('pkg-config --cflags --libs libdrm')
COMMON_GALLIUM_SOURCES = [
'#src/mesa/drivers/dri/common/utils.c',
'#src/mesa/drivers/dri/common/vblank.c',
'#src/mesa/drivers/dri/common/dri_util.c',
'#src/mesa/drivers/dri/common/xmlconfig.c',
]
COMMON_BM_SOURCES = [
'#src/mesa/drivers/dri/common/dri_bufmgr.c',
'#src/mesa/drivers/dri/common/dri_drmpool.c',
]
Export([
'drienv',
'COMMON_GALLIUM_SOURCES',
'COMMON_BM_SOURCES',
])
# TODO: Installation
#install: $(LIBNAME)
# $(INSTALL) -d $(DRI_DRIVER_INSTALL_DIR)
# $(INSTALL) -m 755 $(LIBNAME) $(DRI_DRIVER_INSTALL_DIR)
if 'vmware' in env['winsys']:
SConscript([
'vmware/SConscript',
])
if 'intel' in env['winsys']:
SConscript([
'intel/SConscript',
])
if 'i965' in env['winsys']:
SConscript([
'i965/SConscript',
])
if 'radeon' in env['winsys']:
SConscript([
'radeon/SConscript',
])

View File

@ -1,12 +0,0 @@
# src/gallium/winsys/drm/intel/Makefile
TOP = ../../../../..
include $(TOP)/configs/current
SUBDIRS = gem $(GALLIUM_STATE_TRACKERS_DIRS)
default install clean:
@for dir in $(SUBDIRS) ; do \
if [ -d $$dir ] ; then \
(cd $$dir && $(MAKE) $@) || exit 1; \
fi \
done

View File

@ -1,7 +0,0 @@
Import('*')
SConscript(['gem/SConscript',])
if 'mesa' in env['statetrackers']:
SConscript(['dri/SConscript'])

View File

@ -1,12 +0,0 @@
# src/gallium/winsys/drm/intel/Makefile
TOP = ../../../../..
include $(TOP)/configs/current
SUBDIRS = gem $(GALLIUM_STATE_TRACKERS_DIRS)
default install clean:
@for dir in $(SUBDIRS) ; do \
if [ -d $$dir ] ; then \
(cd $$dir && $(MAKE) $@) || exit 1; \
fi \
done

View File

@ -1,7 +0,0 @@
Import('*')
SConscript(['gem/SConscript',])
if 'mesa' in env['statetrackers']:
SConscript(['dri/SConscript'])

View File

@ -1,12 +0,0 @@
# src/gallium/winsys/drm/nouveau/Makefile
TOP = ../../../../..
include $(TOP)/configs/current
SUBDIRS = drm $(GALLIUM_STATE_TRACKERS_DIRS)
default install clean:
@for dir in $(SUBDIRS) ; do \
if [ -d $$dir ] ; then \
(cd $$dir && $(MAKE) $@) || exit 1; \
fi \
done

View File

@ -1,12 +0,0 @@
# src/gallium/winsys/drm/radeon/Makefile
TOP = ../../../../..
include $(TOP)/configs/current
SUBDIRS = core $(GALLIUM_STATE_TRACKERS_DIRS)
default install clean:
@for dir in $(SUBDIRS) ; do \
if [ -d $$dir ] ; then \
(cd $$dir && $(MAKE) $@) || exit 1; \
fi \
done

View File

@ -1,7 +0,0 @@
Import('*')
SConscript(['core/SConscript',])
if 'mesa' in env['statetrackers']:
SConscript(['dri/SConscript'])

View File

@ -1,12 +0,0 @@
# src/gallium/winsys/drm/swrast/Makefile
TOP = ../../../../..
include $(TOP)/configs/current
SUBDIRS = core $(GALLIUM_STATE_TRACKERS_DIRS)
default install clean:
@for dir in $(SUBDIRS) ; do \
if [ -d $$dir ] ; then \
(cd $$dir && $(MAKE) $@) || exit 1; \
fi \
done

View File

@ -1,10 +0,0 @@
# src/gallium/winsys/drm/swrast/core/Makefile
TOP = ../../../../../..
include $(TOP)/configs/current
LIBNAME = swrastdrm
C_SOURCES = swrast_drm_api.c
include ../../../../Makefile.template

View File

@ -1,12 +0,0 @@
TOP = ../../../../../..
include $(TOP)/configs/current
EGL_DRIVER_NAME = swrast
EGL_DRIVER_SOURCES = dummy.c
EGL_DRIVER_LIBS =
EGL_DRIVER_PIPES = \
$(TOP)/src/gallium/winsys/drm/swrast/core/libswrastdrm.a \
$(TOP)/src/gallium/drivers/softpipe/libsoftpipe.a
include ../../Makefile.egl

View File

@ -1,12 +0,0 @@
# src/gallium/winsys/drm/vmware/Makefile
TOP = ../../../../..
include $(TOP)/configs/current
SUBDIRS = core $(GALLIUM_STATE_TRACKERS_DIRS)
default install clean:
@for dir in $(SUBDIRS) ; do \
if [ -d $$dir ] ; then \
(cd $$dir && $(MAKE) $@) || exit 1; \
fi \
done

View File

@ -1,11 +0,0 @@
Import('*')
SConscript(['core/SConscript',])
if 'mesa' in env['statetrackers']:
SConscript(['dri/SConscript'])
if 'xorg' in env['statetrackers']:
SConscript(['xorg/SConscript'])

View File

@ -1,63 +0,0 @@
import os
import os.path
Import('*')
if env['platform'] == 'linux':
if env['dri']:
env = env.Clone()
sources = [
'#/src/mesa/drivers/dri/common/utils.c',
'#/src/mesa/drivers/dri/common/vblank.c',
'#/src/mesa/drivers/dri/common/dri_util.c',
'#/src/mesa/drivers/dri/common/xmlconfig.c',
]
env.ParseConfig('pkg-config --cflags --libs libdrm')
env.Prepend(CPPPATH = [
'#/src/mesa/state_tracker',
'#/src/mesa/drivers/dri/common',
'#/src/mesa/main',
'#/src/mesa/glapi',
'#/src/mesa',
'#/include',
'#/src/gallium/drivers/svga',
'#/src/gallium/drivers/svga/include',
])
env.Append(CPPDEFINES = [
'HAVE_STDINT_H',
'HAVE_SYS_TYPES_H',
])
env.Append(CFLAGS = [
'-std=gnu99',
'-D_FILE_OFFSET_BITS=64',
])
env.Prepend(LIBPATH = [
])
env.Prepend(LIBS = [
trace,
st_dri,
svgadrm,
svga,
mesa,
glsl,
gallium,
])
# TODO: write a wrapper function http://www.scons.org/wiki/WrapperFunctions
env.LoadableModule(
target ='vmwgfx_dri.so',
source = sources,
LIBS = env['LIBS'],
SHLIBPREFIX = '',
)

View File

@ -1,3 +0,0 @@
/* A poor man's --whole-archive for EGL drivers */
void *_eglMain(void *);
void *_eglWholeArchive = (void *) _eglMain;

View File

@ -1,4 +1,4 @@
TOP = ../../../../../..
TOP = ../../../../..
include $(TOP)/configs/current
LIBNAME = inteldrm
@ -13,4 +13,4 @@ LIBRARY_INCLUDES = $(shell pkg-config libdrm --cflags-only-I)
LIBRARY_DEFINES = $(shell pkg-config libdrm --cflags-only-other)
include ../../../../Makefile.template
include ../../../Makefile.template

View File

@ -1,6 +1,6 @@
Import('*')
env = drienv.Clone()
env = env.Clone()
inteldrm_sources = [
'intel_drm_api.c',

View File

@ -1,4 +1,4 @@
TOP = ../../../../../..
TOP = ../../../../..
include $(TOP)/configs/current
LIBNAME = i965drm
@ -11,4 +11,4 @@ LIBRARY_INCLUDES = $(shell pkg-config libdrm --cflags-only-I)
LIBRARY_DEFINES = $(shell pkg-config libdrm --cflags-only-other)
include ../../../../Makefile.template
include ../../../Makefile.template

View File

@ -1,6 +1,6 @@
Import('*')
env = drienv.Clone()
env = env.Clone()
i965drm_sources = [
'i965_drm_api.c',

View File

@ -10,7 +10,7 @@
#include "trace/tr_drm.h"
#include "../../sw/sw_drm_api.h"
#include "../../sw/drm/sw_drm_api.h"
/*
* Helper functions

View File

@ -1,10 +1,10 @@
# src/gallium/winsys/xlib/Makefile
# src/gallium/winsys/i965/xlib/Makefile
# This makefile produces a "stand-alone" libGL.so which is based on
# Xlib (no DRI HW acceleration)
TOP = ../../../../../..
TOP = ../../../../..
include $(TOP)/configs/current

View File

@ -1,4 +1,4 @@
TOP = ../../../../../..
TOP = ../../../../..
include $(TOP)/configs/current
LIBNAME = nouveaudrm
@ -8,4 +8,4 @@ C_SOURCES = nouveau_drm_api.c
LIBRARY_INCLUDES = $(shell pkg-config libdrm libdrm_nouveau --cflags-only-I)
LIBRARY_DEFINES = $(shell pkg-config libdrm libdrm_nouveau --cflags-only-other)
include ../../../../Makefile.template
include ../../../Makefile.template

View File

@ -1,5 +1,5 @@
TOP = ../../../../../..
TOP = ../../../../..
include $(TOP)/configs/current
LIBNAME = radeonwinsys
@ -12,6 +12,6 @@ C_SOURCES = \
LIBRARY_INCLUDES = -I$(TOP)/src/gallium/drivers/r300 \
$(shell pkg-config libdrm --cflags-only-I)
include ../../../../Makefile.template
include ../../../Makefile.template
symlinks:

View File

@ -1,9 +1,9 @@
Import('*')
env = drienv.Clone()
env = env.Clone()
radeon_sources = [
'radeon_buffer.c',
'radeon_drm_buffer.c',
'radeon_drm.c',
'radeon_r300.c',
]

View File

@ -1,4 +1,4 @@
TOP = ../../../../../..
TOP = ../../../../..
include $(TOP)/configs/current
LIBNAME = svgadrm
@ -17,14 +17,6 @@ C_SOURCES = \
LIBRARY_INCLUDES = \
-I$(TOP)/src/gallium/drivers/svga \
-I$(TOP)/src/gallium/drivers/svga/include \
-I$(GALLIUM)/src/mesa/drivers/dri/common \
-I$(GALLIUM)/include \
-I$(GALLIUM)/include/GL/internal \
-I$(GALLIUM)/src/mesa \
-I$(GALLIUM)/src/mesa/main \
-I$(GALLIUM)/src/mesa/glapi \
-I$(GALLIUM)/src/egl/main \
-I$(GALLIUM)/src/egl/drivers/dri \
$(shell pkg-config libdrm --cflags-only-I)
LIBRARY_DEFINES = \
@ -32,4 +24,4 @@ LIBRARY_DEFINES = \
-DHAVE_STDINT_H -D_FILE_OFFSET_BITS=64 \
$(shell pkg-config libdrm --cflags-only-other)
include ../../../../Makefile.template
include ../../../Makefile.template

Some files were not shown because too many files have changed in this diff Show More