egl: Use util/libdrm.h instead of xf86drm.h

This will allow for building and running zink on systems without libdrm
by using Mesa's internal stubs.

Acked-by: Emma Anholt <emma@anholt.net>
Reviewed-by: Eric Engestrom <eric@igalia.com>
Signed-off-by: Valentine Burley <valentine.burley@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40302>
This commit is contained in:
Valentine Burley 2026-03-09 14:13:27 +01:00 committed by Marge Bot
parent 5c56d6c198
commit 14f60b440f
4 changed files with 4 additions and 4 deletions

View file

@ -33,7 +33,7 @@
#include <fcntl.h>
#include <stdbool.h>
#include <stdio.h>
#include <xf86drm.h>
#include "util/libdrm.h"
#include <cutils/properties.h>
#include <drm-uapi/drm_fourcc.h>
#include <sync/sync.h>

View file

@ -35,7 +35,7 @@
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <xf86drm.h>
#include "util/libdrm.h"
#include "drm-uapi/drm_fourcc.h"
#include <sys/mman.h>
#include <vulkan/vulkan_core.h>

View file

@ -42,7 +42,7 @@
#include <vulkan/vulkan_xcb.h>
/* clang-format on */
#ifdef HAVE_LIBDRM
#include <xf86drm.h>
#include "util/libdrm.h"
#include "platform_x11_dri3.h"
#endif
#include "util/bitscan.h"

View file

@ -31,7 +31,7 @@
#include <xcb/xcb.h>
#if defined(HAVE_WAYLAND_PLATFORM)
#include <xf86drm.h>
#include "util/libdrm.h"
#endif
#include "drm-uapi/drm_fourcc.h"
#include "util/macros.h"