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