Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Acked-by: Eric Engestrom <eric@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17815>
#include "util/macros.h"
#include "util/bitscan.h"
-#include "egl_dri2.h"
+#include "platform_x11.h"
#include "loader.h"
#include "kopper_interface.h"
static EGLBoolean
dri2_x11_swap_interval(_EGLDisplay *disp, _EGLSurface *surf, EGLint interval);
-uint32_t
-dri2_format_for_depth(struct dri2_egl_display *dri2_dpy, uint32_t depth);
-
static void
swrastCreateDrawable(struct dri2_egl_display * dri2_dpy,
struct dri2_egl_surface * dri2_surf)
--- /dev/null
+/*
+ * Copyright 2022 Yonggang Luo
+ * SPDX-License-Identifier: MIT
+ *
+ */
+
+#ifndef EGL_X11_INCLUDED
+#define EGL_X11_INCLUDED
+
+#include "egl_dri2.h"
+
+uint32_t
+dri2_format_for_depth(struct dri2_egl_display *dri2_dpy, uint32_t depth);
+
+#endif
#ifndef EGL_X11_DRI3_INCLUDED
#define EGL_X11_DRI3_INCLUDED
-#include "egl_dri2.h"
+#include "platform_x11.h"
_EGL_DRIVER_TYPECAST(dri3_egl_surface, _EGLSurface, obj)
EGLBoolean
dri3_x11_connect(struct dri2_egl_display *dri2_dpy);
-uint32_t
-dri2_format_for_depth(struct dri2_egl_display *dri2_dpy, uint32_t depth);
-
#endif