summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i915tex/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/drivers/dri/i915tex/Makefile')
-rw-r--r--src/mesa/drivers/dri/i915tex/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i915tex/Makefile b/src/mesa/drivers/dri/i915tex/Makefile
index 3b3f3f5a3f7..b218929dce7 100644
--- a/src/mesa/drivers/dri/i915tex/Makefile
+++ b/src/mesa/drivers/dri/i915tex/Makefile
@@ -60,7 +60,8 @@ C_SOURCES = \
ASM_SOURCES =
-DRIVER_DEFINES = -I../intel
+DRIVER_DEFINES = -I../intel $(shell pkg-config libdrm --atleast-version=2.3.1 \
+ && echo "-DDRM_VBLANK_FLIP=DRM_VBLANK_FLIP")
include ../Makefile.template