diff options
author | Eric Engestrom <[email protected]> | 2018-05-29 16:59:18 +0100 |
---|---|---|
committer | Eric Engestrom <[email protected]> | 2018-05-29 17:01:21 +0100 |
commit | 1945231b48df8ffcfa2eb168f81c3f5984433b01 (patch) | |
tree | f83d21a1659cd515d04a49f3114ebe22e1452528 /src/egl | |
parent | 63b95fb291d7978e300c496cedc0851261101332 (diff) |
egl/x11: fix build with DRI3 disabled
Fixes: 473af0b541b2583f4c72 "egl/x11: deduplicate depth-to-format logic"
Signed-off-by: Eric Engestrom <[email protected]>
Tested-by: Vinson Lee <[email protected]>
Reviewed-by: Yogesh Marathe <[email protected]>
Diffstat (limited to 'src/egl')
-rw-r--r-- | src/egl/drivers/dri2/platform_x11.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/egl/drivers/dri2/platform_x11.c b/src/egl/drivers/dri2/platform_x11.c index b2a3000b252..ea9b0cc6d6f 100644 --- a/src/egl/drivers/dri2/platform_x11.c +++ b/src/egl/drivers/dri2/platform_x11.c @@ -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) |