xserver

xserver with xephyr scale patch
git clone https://git.neptards.moe/u3shit/xserver.git
Log | Files | Refs | README | LICENSE

glamor_egl_ext.h (3078B)


      1 /*
      2  * Copyright 2008 Tungsten Graphics, Inc., Cedar Park, Texas.
      3  * All Rights Reserved.
      4  *
      5  * Permission is hereby granted, free of charge, to any person obtaining
      6  * a copy of this software and associated documentation files (the
      7  * "Software"), to deal in the Software without restriction, including
      8  * without limitation the rights to use, copy, modify, merge, publish,
      9  * distribute, sublicense, and/or sell copies of the Software, and to
     10  * permit persons to whom the Software is furnished to do so, subject to
     11  * the following conditions:
     12  *
     13  * The above copyright notice and this permission notice (including the
     14  * next paragraph) shall be included in all copies or substantial
     15  * portions of the Software.
     16  *
     17  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
     18  * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
     19  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
     20  * NONINFRINGEMENT.  IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
     21  * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
     22  * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
     23  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
     24  * SOFTWARE.
     25  */
     26 /* Extensions used by Glamor, copied from Mesa's eglmesaext.h, */
     27 
     28 #ifndef GLAMOR_EGL_EXT_H
     29 #define GLAMOR_EGL_EXT_H
     30 
     31 /* Define needed tokens from EGL_EXT_image_dma_buf_import extension
     32  * here to avoid having to add ifdefs everywhere.*/
     33 #ifndef EGL_EXT_image_dma_buf_import
     34 #define EGL_LINUX_DMA_BUF_EXT					0x3270
     35 #define EGL_LINUX_DRM_FOURCC_EXT				0x3271
     36 #define EGL_DMA_BUF_PLANE0_FD_EXT				0x3272
     37 #define EGL_DMA_BUF_PLANE0_OFFSET_EXT				0x3273
     38 #define EGL_DMA_BUF_PLANE0_PITCH_EXT				0x3274
     39 #define EGL_DMA_BUF_PLANE1_FD_EXT				0x3275
     40 #define EGL_DMA_BUF_PLANE1_OFFSET_EXT				0x3276
     41 #define EGL_DMA_BUF_PLANE1_PITCH_EXT				0x3277
     42 #define EGL_DMA_BUF_PLANE2_FD_EXT				0x3278
     43 #define EGL_DMA_BUF_PLANE2_OFFSET_EXT				0x3279
     44 #define EGL_DMA_BUF_PLANE2_PITCH_EXT				0x327A
     45 #endif
     46 
     47 /* Define tokens from EGL_EXT_image_dma_buf_import_modifiers */
     48 #ifndef EGL_EXT_image_dma_buf_import_modifiers
     49 #define EGL_EXT_image_dma_buf_import_modifiers 1
     50 #define EGL_DMA_BUF_PLANE3_FD_EXT         0x3440
     51 #define EGL_DMA_BUF_PLANE3_OFFSET_EXT     0x3441
     52 #define EGL_DMA_BUF_PLANE3_PITCH_EXT      0x3442
     53 #define EGL_DMA_BUF_PLANE0_MODIFIER_LO_EXT 0x3443
     54 #define EGL_DMA_BUF_PLANE0_MODIFIER_HI_EXT 0x3444
     55 #define EGL_DMA_BUF_PLANE1_MODIFIER_LO_EXT 0x3445
     56 #define EGL_DMA_BUF_PLANE1_MODIFIER_HI_EXT 0x3446
     57 #define EGL_DMA_BUF_PLANE2_MODIFIER_LO_EXT 0x3447
     58 #define EGL_DMA_BUF_PLANE2_MODIFIER_HI_EXT 0x3448
     59 #define EGL_DMA_BUF_PLANE3_MODIFIER_LO_EXT 0x3449
     60 #define EGL_DMA_BUF_PLANE3_MODIFIER_HI_EXT 0x344A
     61 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYDMABUFFORMATSEXTPROC) (EGLDisplay dpy, EGLint max_formats, EGLint *formats, EGLint *num_formats);
     62 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYDMABUFMODIFIERSEXTPROC) (EGLDisplay dpy, EGLint format, EGLint max_modifiers, EGLuint64KHR *modifiers, EGLBoolean *external_only, EGLint *num_modifiers);
     63 #endif
     64 
     65 #endif /* GLAMOR_EGL_EXT_H */