kopper: Only include XCB headers on supported platforms
Fixes: 054bd2d38f ("kopper: copy a bunch of code for texture_from_pixmap")
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16675>
This commit is contained in:
committed by
Marge Bot
parent
569e5dc745
commit
f2a6535901
@@ -42,7 +42,7 @@
|
||||
|
||||
#include <vulkan/vulkan.h>
|
||||
|
||||
|
||||
#ifdef VK_USE_PLATFORM_XCB_KHR
|
||||
#include <xcb/xcb.h>
|
||||
#include <xcb/dri3.h>
|
||||
#include <xcb/present.h>
|
||||
@@ -50,6 +50,7 @@
|
||||
#include "util/libsync.h"
|
||||
#include <X11/Xlib-xcb.h>
|
||||
#include "drm-uapi/drm_fourcc.h"
|
||||
#endif
|
||||
|
||||
struct kopper_drawable {
|
||||
struct dri_drawable base;
|
||||
|
||||
Reference in New Issue
Block a user