st/egl: Do not build non-working driver combinations.
authorChia-I Wu <olv@lunarg.com>
Fri, 11 Jun 2010 04:29:01 +0000 (12:29 +0800)
committerChia-I Wu <olv@lunarg.com>
Fri, 11 Jun 2010 04:55:09 +0000 (12:55 +0800)
The KMS backend requires a hardware pipe driver.  Do not build
egl_kms_swrast.  Also, only build egl_fbdev_swrast for fbdev backend.
It is a pure software backend.

src/gallium/targets/Makefile.egl

index 49ca039337eb4a54553c5c8fe8432561079bf4a3..bde5d3ce293b6bca5a9b537386a938f956cd659d 100644 (file)
@@ -62,6 +62,12 @@ INCLUDES = \
 
 ##### TARGETS #####
 
+ifeq ($(EGL_DRIVER_NAME),swrast)
+EGL_DISPLAYS := $(filter-out kms, $(EGL_DISPLAYS))
+else
+EGL_DISPLAYS := $(filter-out fbdev, $(EGL_DISPLAYS))
+endif
+
 EGL_DISPLAY_DRIVERS = $(foreach dpy, $(EGL_DISPLAYS), egl_$(dpy)_$(EGL_DRIVER_NAME).so)
 
 EGL_DISPLAY_LIBS = $(foreach drv, $(EGL_DISPLAY_DRIVERS), $(TOP)/$(LIB_DIR)/egl/$(drv))