configure.ac: require libdrm >= 2.4.75 for I915_EXEC_FENCE_OUT
PATCH 1/1 configure.ac: require libdrm >= 2.4.75 for I915_EXEC_FENCE_OUT
I915_EXEC_FENCE_OUT was added in libdrm commit a3d715ee14b2 ("Import uapi/i915_drm.h from v4.10-rc5-950-g152d5750dda9") and released in libdrm-2.4.75.
---
I'm probably doing something wrong. This passes configure for me, but build still fails with:
gem_latency.c: In function ‘setup_latency’:
gem_latency.c:290:16: error: ‘I915_EXEC_FENCE_OUT’ undeclared (first use in this function)
eb->flags |= I915_EXEC_FENCE_OUT;
^gem_latency.c:290:16: note: each undeclared identifier is reported only once for each function it appears in gem_latency.c: In function ‘measure_latency’:
gem_latency.c:328:44: error: ‘I915_EXEC_FENCE_OUT’ undeclared (first use in this function)
if (!(p->latency_dispatch.execbuf.flags & I915_EXEC_FENCE_OUT))
^
gem_latency.c: In function ‘producer’:
gem_latency.c:364:43: error: ‘I915_EXEC_FENCE_OUT’ undeclared (first use in this function)
if (p->latency_dispatch.execbuf.flags & I915_EXEC_FENCE_OUT)
^
Makefile:767: recipe for target 'gem_latency-gem_latency.o' failed
---
configure.ac | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)configure.ac +2 -2
@@ -187,10 +187,10 @@ AC_ARG_ENABLE(intel, AS_HELP_STRING([--disable-intel], [Enable building of intel specific parts (default: auto)]), [INTEL=$enableval], [INTEL=auto]) if test "x$INTEL" = xauto; then - PKG_CHECK_EXISTS([libdrm_intel >= 2.4.74], [INTEL=yes], [INTEL=no]) + PKG_CHECK_EXISTS([libdrm_intel >= 2.4.75], [INTEL=yes], [INTEL=no]) fi if test "x$INTEL" = xyes; then - PKG_CHECK_MODULES(DRM_INTEL, [libdrm_intel >= 2.4.74]) + PKG_CHECK_MODULES(DRM_INTEL, [libdrm_intel >= 2.4.75]) AC_DEFINE(HAVE_LIBDRM_INTEL, 1, [Have intel support]) else DRM_INTEL_CFLAGS=-I$\(top_srcdir\)/lib/stubs/drm/
Signature · 6 lines
2.1.4 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 5 lines · Jani Nikula
I915_EXEC_FENCE_OUTwas added in libdrm commita3d715ee14b2("Importuapi/i915_drm.hfrom v4.10-rc5-950-g152d5750dda9") and released in libdrm-2.4.75.Signed-off-by Jani Nikula <[email protected]>
Quoted 10 lines
---
I'm probably doing something wrong. This passes configure for me, but build still fails with:
gem_latency.c: In function ‘setup_latency’:
gem_latency.c:290:16: error: ‘I915_EXEC_FENCE_OUT’ undeclared (first use in this function)eb->flags |= I915_EXEC_FENCE_OUT; ^
Quoted 8 lines
gem_latency.c:290:16: note: each undeclared identifier is reported only once for each function it appears in
gem_latency.c: In function ‘measure_latency’:
gem_latency.c:328:44: error: ‘I915_EXEC_FENCE_OUT’ undeclared (first use in this function)
if (!(p->latency_dispatch.execbuf.flags &I915_EXEC_FENCE_OUT))^ gem_latency.c: In function ‘producer’: gem_latency.c:364:43: error: ‘I915_EXEC_FENCE_OUT’ undeclared (first use in this function) if (p->latency_dispatch.execbuf.flags & I915_EXEC_FENCE_OUT)
Possibly an old libdrm somewhere in your filesystem, configure finding the new one's .pc file but gcc finding the old one's headers first...
Signature · 6 lines
Petri Latvala _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx