summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2010-06-11 12:29:01 +0800
committerChia-I Wu <[email protected]>2010-06-11 12:55:09 +0800
commitebed500fae5bcd8568826439ef0998b72c231454 (patch)
tree3e540f6014c49db381e1d800b0b01d96e93aaf11
parent71580edc017f8feb667953df5a6e0792557672e1 (diff)
st/egl: Do not build non-working driver combinations.
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.
-rw-r--r--src/gallium/targets/Makefile.egl6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/targets/Makefile.egl b/src/gallium/targets/Makefile.egl
index 49ca039337e..bde5d3ce293 100644
--- a/src/gallium/targets/Makefile.egl
+++ b/src/gallium/targets/Makefile.egl
@@ -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))