zink: check HAVE_LIBDRM for xf86drm.h include

cc: mesa-stable

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31408>
(cherry picked from commit d1f6e52de2)
This commit is contained in:
Mike Blumenkrantz 2024-09-26 16:37:05 -04:00 committed by Eric Engestrom
parent 6e1373861c
commit 5f10f87212
2 changed files with 2 additions and 2 deletions

View file

@ -444,7 +444,7 @@
"description": "zink: check HAVE_LIBDRM for xf86drm.h include",
"nominated": true,
"nomination_type": 0,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null,
"notes": null

View file

@ -35,7 +35,7 @@
#include "zink_screen.h"
#include "util/u_hash_table.h"
#if !defined(__APPLE__) && !defined(_WIN32)
#ifdef HAVE_LIBDRM
#define ZINK_USE_DMABUF
#include <xf86drm.h>
#endif