anv,iris: unbreak on BSDs after 812cf5f522ab,abf8aed68047
authorJan Beich <jbeich@FreeBSD.org>
Sat, 30 May 2020 22:37:45 +0000 (22:37 +0000)
committerMarge Bot <eric+marge@anholt.net>
Tue, 16 Jun 2020 16:02:33 +0000 (16:02 +0000)
../src/intel/vulkan/anv_gem.c:31:10: fatal error: 'linux/sync_file.h' file not found
 #include <linux/sync_file.h>
          ^~~~~~~~~~~~~~~~~~~
../src/gallium/drivers/iris/iris_fence.c:29:10: fatal error: 'linux/sync_file.h' file not found
 #include <linux/sync_file.h>
          ^~~~~~~~~~~~~~~~~~~

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5463>

src/gallium/drivers/iris/iris_fence.c
src/intel/vulkan/anv_gem.c

index 8054f5f1fb76ed3711d8633eeed6ad6f49e60903..4600c1c4238231b0709234b75c09f757b3189344 100644 (file)
@@ -26,8 +26,7 @@
  * Fences for driver and IPC serialisation, scheduling and synchronisation.
  */
 
-#include <linux/sync_file.h>
-
+#include "drm-uapi/sync_file.h"
 #include "util/u_debug.h"
 #include "util/u_inlines.h"
 #include "intel/common/gen_gem.h"
index b1c727fb5ec7b0c6e115f4f7c0760557738f0472..c3adc0c3cfffb12b65ad26c8366b2eccdf6ee4af 100644 (file)
 #include <errno.h>
 #include <unistd.h>
 #include <fcntl.h>
-#include <linux/sync_file.h>
 
 #include "anv_private.h"
 #include "common/gen_defines.h"
 #include "common/gen_gem.h"
+#include "drm-uapi/sync_file.h"
 
 /**
  * Wrapper around DRM_IOCTL_I915_GEM_CREATE.