egl/x11: fix build with DRI3 disabled

Fixes: 473af0b541 "egl/x11: deduplicate depth-to-format logic"
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Tested-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Yogesh Marathe <yogesh.marathe@intel.com>
This commit is contained in:
Eric Engestrom 2018-05-29 16:59:18 +01:00
parent 63b95fb291
commit 1945231b48
1 changed files with 3 additions and 0 deletions

View File

@ -55,6 +55,9 @@ static EGLBoolean
dri2_x11_swap_interval(_EGLDriver *drv, _EGLDisplay *disp, _EGLSurface *surf,
EGLint interval);
uint32_t
dri2_format_for_depth(uint32_t depth);
static void
swrastCreateDrawable(struct dri2_egl_display * dri2_dpy,
struct dri2_egl_surface * dri2_surf)