Mesa (master): gallium/u_tests: fix ifdef for sync_file fences
George Kyriazis
gkyriazis at kemper.freedesktop.org
Tue Oct 3 16:54:51 UTC 2017
Module: Mesa
Branch: master
Commit: a8e4a0f609c602010169ad88567496d96bee9690
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=a8e4a0f609c602010169ad88567496d96bee9690
Author: George Kyriazis <george.kyriazis at intel.com>
Date: Tue Oct 3 10:31:16 2017 -0500
gallium/u_tests: fix ifdef for sync_file fences
include libsync.h only when libdrm is compiled in
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
---
src/gallium/auxiliary/util/u_tests.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gallium/auxiliary/util/u_tests.c b/src/gallium/auxiliary/util/u_tests.c
index 2e931c0cd0..3cc79afcff 100644
--- a/src/gallium/auxiliary/util/u_tests.c
+++ b/src/gallium/auxiliary/util/u_tests.c
@@ -490,7 +490,7 @@ null_fragment_shader(struct pipe_context *ctx)
util_report_result(qresult.u64 == 2);
}
-#ifdef PIPE_OS_LINUX
+#if defined(PIPE_OS_LINUX) && defined(HAVE_LIBDRM)
#include <libsync.h>
#else
#define sync_merge(str, fd1, fd2) (-1)
More information about the mesa-commit
mailing list