kopper: only include loader_dri3_helper.h when xcb is enabled

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/11779
Fixes: f14ef0ee0a ("kopper: reuse dri3 functions")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30848>
This commit is contained in:
Eric Engestrom 2024-08-26 13:45:01 +02:00 committed by Marge Bot
parent 4cfaf10c10
commit 75ab02068e

View file

@ -38,7 +38,6 @@
#include "dri_context.h"
#include "dri_drawable.h"
#include "dri_helpers.h"
#include "loader_dri3_helper.h"
#include <vulkan/vulkan.h>
@ -50,6 +49,7 @@
#include "util/libsync.h"
#include <X11/Xlib-xcb.h>
#include "drm-uapi/drm_fourcc.h"
#include "loader_dri3_helper.h"
#endif
static struct dri_drawable *