Path: blob/21.2-virgl/src/egl/drivers/dri2/platform_x11_dri3.h
4570 views
/*1* Copyright © 2015 Boyan Ding2*3* Permission to use, copy, modify, distribute, and sell this software and its4* documentation for any purpose is hereby granted without fee, provided that5* the above copyright notice appear in all copies and that both that copyright6* notice and this permission notice appear in supporting documentation, and7* that the name of the copyright holders not be used in advertising or8* publicity pertaining to distribution of the software without specific,9* written prior permission. The copyright holders make no representations10* about the suitability of this software for any purpose. It is provided "as11* is" without express or implied warranty.12*13* THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,14* INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO15* EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY SPECIAL, INDIRECT OR16* CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,17* DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER18* TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE19* OF THIS SOFTWARE.20*/2122#ifndef EGL_X11_DRI3_INCLUDED23#define EGL_X11_DRI3_INCLUDED2425#include "egl_dri2.h"2627_EGL_DRIVER_TYPECAST(dri3_egl_surface, _EGLSurface, obj)2829struct dri3_egl_surface {30struct dri2_egl_surface surf;31struct loader_dri3_drawable loader_drawable;32};3334extern const __DRIimageLoaderExtension dri3_image_loader_extension;35extern struct dri2_egl_display_vtbl dri3_x11_display_vtbl;3637EGLBoolean38dri3_x11_connect(struct dri2_egl_display *dri2_dpy);3940uint32_t41dri2_format_for_depth(struct dri2_egl_display *dri2_dpy, uint32_t depth);4243#endif444546