vc4: Just put USE_VC4_SIMULATOR in DEFINES.
authorEric Anholt <eric@anholt.net>
Sat, 21 Nov 2015 21:07:42 +0000 (13:07 -0800)
committerEric Anholt <eric@anholt.net>
Sun, 22 Nov 2015 21:15:40 +0000 (13:15 -0800)
In the pipe-loader reworks, it was missed in one of the new directories it
was used.

Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
configure.ac
src/gallium/drivers/vc4/Automake.inc
src/gallium/drivers/vc4/Makefile.am

index 91fdfe5f9cb46a5e74b12cbff45d9be977d5629c..120c93e7e735a8f179d791f10342c658877611bf 100644 (file)
@@ -2173,7 +2173,9 @@ if test -n "$with_gallium_drivers"; then
             gallium_require_drm_loader
 
             PKG_CHECK_MODULES([SIMPENROSE], [simpenrose],
-                              [USE_VC4_SIMULATOR=yes], [USE_VC4_SIMULATOR=no])
+                              [USE_VC4_SIMULATOR=yes;
+                               DEFINES="$DEFINES -DUSE_VC4_SIMULATOR"],
+                              [USE_VC4_SIMULATOR=no])
             ;;
         xvirgl)
             HAVE_GALLIUM_VIRGL=yes
index 6fa3e190cac2ed4cb72cca971b1d00fb6c743917..5664c2ab14ea1f172524f6a7bb074468fcb9dccc 100644 (file)
@@ -6,8 +6,4 @@ TARGET_LIB_DEPS += \
        $(top_builddir)/src/gallium/winsys/vc4/drm/libvc4drm.la \
        $(top_builddir)/src/gallium/drivers/vc4/libvc4.la
 
-if USE_VC4_SIMULATOR
-TARGET_CPPFLAGS += -DUSE_VC4_SIMULATOR
-endif
-
 endif
index f4a57ba34040d8d1753fabb3e841f23108561452..a3bf72fc72a0521cfd57cdca4f5ba5a881c7431a 100644 (file)
@@ -23,7 +23,6 @@ include Makefile.sources
 include $(top_srcdir)/src/gallium/Automake.inc
 
 if USE_VC4_SIMULATOR
-SIM_CFLAGS = -DUSE_VC4_SIMULATOR=1
 SIM_LDFLAGS = -lsimpenrose
 endif