egl/x11: Split declaration of dri2_format_for_depth into header platform_x11.h

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>
This commit is contained in:
Yonggang Luo
2022-08-05 00:00:08 +08:00
committed by Marge Bot
parent eebea558b7
commit 94cfa50dc6
3 changed files with 17 additions and 8 deletions

View File

@@ -44,7 +44,7 @@
#include "util/macros.h"
#include "util/bitscan.h"
#include "egl_dri2.h"
#include "platform_x11.h"
#include "loader.h"
#include "kopper_interface.h"
@@ -55,9 +55,6 @@
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)

View File

@@ -0,0 +1,15 @@
/*
* 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

View File

@@ -23,7 +23,7 @@
#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)
@@ -38,7 +38,4 @@ extern struct dri2_egl_display_vtbl dri3_x11_display_vtbl;
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