2
* Permission to use, copy, modify, distribute, and sell this software and its
3
* documentation for any purpose is hereby granted without fee, provided that
4
* the above copyright notice appear in all copies and that both that copyright
5
* notice and this permission notice appear in supporting documentation, and
6
* that the name of the copyright holders not be used in advertising or
7
* publicity pertaining to distribution of the software without specific,
8
* written prior permission. The copyright holders make no representations
9
* about the suitability of this software for any purpose. It is provided "as
10
* is" without express or implied warranty.
12
* THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
13
* INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
14
* EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY SPECIAL, INDIRECT OR
15
* CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
16
* DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
17
* TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
22
#include <sys/types.h>
24
#include <GL/gl.h> /* dri_interface needs GL types */
25
#include <GL/internal/dri_interface.h>
27
__DRIimage *loader_dri_create_image(__DRIscreen *screen,
28
const __DRIimageExtension *image,
29
uint32_t width, uint32_t height,
30
uint32_t dri_format, uint32_t dri_usage,
31
const uint64_t *modifiers,
32
unsigned int modifiers_count,