summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorEmil Velikov <[email protected]>2014-06-16 14:21:13 +0100
committerEmil Velikov <[email protected]>2014-07-02 10:52:52 +0100
commit98204ea7d047f172bfaef3abb22a7aaef60efcda (patch)
tree94a6fc7ceae3773ba43e9b1cc95adb665a4e47e5 /src/gallium
parente1432489c0c1b5bcf7f4a68c6ddf847a4c99973c (diff)
targets/dri-swrast: use drm aware dricommon when building more than swrast
Signed-off-by: Emil Velikov <[email protected]> Tested-by: Rob Clark <[email protected]> Tested-by: Thomas Helland <thomashelland90 at gmail.com> Acked-by: Tom Stellard <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/targets/dri-swrast/Makefile.am13
-rw-r--r--src/gallium/targets/dri-swrast/SConscript4
-rw-r--r--src/gallium/targets/dri-swrast/swrast_drm_api.c2
3 files changed, 4 insertions, 15 deletions
diff --git a/src/gallium/targets/dri-swrast/Makefile.am b/src/gallium/targets/dri-swrast/Makefile.am
index 4e2ecf23900..7db7d40cfc6 100644
--- a/src/gallium/targets/dri-swrast/Makefile.am
+++ b/src/gallium/targets/dri-swrast/Makefile.am
@@ -23,29 +23,22 @@
include $(top_srcdir)/src/gallium/Automake.inc
AM_CFLAGS = \
- $(EXPAT_CFLAGS) \
$(GALLIUM_DRI_CFLAGS)
AM_CPPFLAGS = \
- -I$(top_srcdir)/src/gallium/winsys/sw/dri \
- -I$(top_builddir)/src/mesa/drivers/dri/common \
-DGALLIUM_RBUG \
-DGALLIUM_TRACE \
- -DGALLIUM_SOFTPIPE \
- -D__NOT_HAVE_DRM_H
+ -DGALLIUM_SOFTPIPE
dridir = $(DRI_DRIVER_INSTALL_DIR)
dri_LTLIBRARIES = swrast_dri.la
nodist_EXTRA_swrast_dri_la_SOURCES = dummy.cpp
-swrast_dri_la_SOURCES = \
- swrast_drm_api.c \
- $(top_srcdir)/src/mesa/drivers/dri/common/utils.c \
- $(top_srcdir)/src/mesa/drivers/dri/common/dri_util.c \
- $(top_srcdir)/src/mesa/drivers/dri/common/xmlconfig.c
+swrast_dri_la_SOURCES = swrast_drm_api.c
swrast_dri_la_LDFLAGS = $(GALLIUM_DRI_LINKER_FLAGS)
swrast_dri_la_LIBADD = \
+ $(top_builddir)/src/mesa/drivers/dri/common/libdricommon.la \
$(top_builddir)/src/gallium/state_trackers/dri/sw/libdrisw.la \
$(top_builddir)/src/gallium/winsys/sw/dri/libswdri.la \
$(top_builddir)/src/gallium/drivers/softpipe/libsoftpipe.la \
diff --git a/src/gallium/targets/dri-swrast/SConscript b/src/gallium/targets/dri-swrast/SConscript
index 8ddd14ea5a7..ab71b7d0f79 100644
--- a/src/gallium/targets/dri-swrast/SConscript
+++ b/src/gallium/targets/dri-swrast/SConscript
@@ -2,10 +2,6 @@ Import('*')
env = driswenv.Clone()
-env.Append(CPPPATH = [
- '#/src/gallium/winsys/sw/dri',
-])
-
env.Prepend(LIBS = [
st_drisw,
ws_dri,
diff --git a/src/gallium/targets/dri-swrast/swrast_drm_api.c b/src/gallium/targets/dri-swrast/swrast_drm_api.c
index a8973fd6070..3394722f6f9 100644
--- a/src/gallium/targets/dri-swrast/swrast_drm_api.c
+++ b/src/gallium/targets/dri-swrast/swrast_drm_api.c
@@ -28,12 +28,12 @@
#include "pipe/p_compiler.h"
#include "util/u_memory.h"
-#include "dri_sw_winsys.h"
#include "target-helpers/inline_debug_helper.h"
#include "target-helpers/inline_sw_helper.h"
#include "state_tracker/drm_driver.h"
+#include "sw/dri/dri_sw_winsys.h"
DRM_DRIVER_DESCRIPTOR("swrast", NULL, NULL, NULL);