anv,iris: unbreak on BSDs after 812cf5f522ab,abf8aed68047

../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>
This commit is contained in:
Jan Beich 2020-05-30 22:37:45 +00:00 committed by Marge Bot
parent 0bd5f9a5bc
commit fcdefa7e47
2 changed files with 2 additions and 3 deletions

View 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"

View File

@ -28,11 +28,11 @@
#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.