Path: blob/21.2-virgl/src/loader/loader_dri_helper.h
4550 views
/*1* Permission to use, copy, modify, distribute, and sell this software and its2* documentation for any purpose is hereby granted without fee, provided that3* the above copyright notice appear in all copies and that both that copyright4* notice and this permission notice appear in supporting documentation, and5* that the name of the copyright holders not be used in advertising or6* publicity pertaining to distribution of the software without specific,7* written prior permission. The copyright holders make no representations8* about the suitability of this software for any purpose. It is provided "as9* is" without express or implied warranty.10*11* THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,12* INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO13* EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY SPECIAL, INDIRECT OR14* CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,15* DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER16* TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE17* OF THIS SOFTWARE.18*/1920#include <stdbool.h>21#include <sys/types.h>2223#include <GL/gl.h> /* dri_interface needs GL types */24#include <GL/internal/dri_interface.h>2526__DRIimage *loader_dri_create_image(__DRIscreen *screen,27const __DRIimageExtension *image,28uint32_t width, uint32_t height,29uint32_t dri_format, uint32_t dri_usage,30const uint64_t *modifiers,31unsigned int modifiers_count,32void *loaderPrivate);333435