zenilib: zenilib/jni/external/zenilib/zeni_graphics/GL/internal/dri_interface.h Source File

zenilib 0.5.3.0

- Main Page
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
dri_interface.h
Go to the documentation of this file.
1 /*
2 * Copyright 1998-1999 Precision Insight, Inc., Cedar Park, Texas.
3 * Copyright 2007-2008 Red Hat, Inc.
4 * (C) Copyright IBM Corporation 2004
5 * All Rights Reserved.
6 *
7 * Permission is hereby granted, free of charge, to any person obtaining a
8 * copy of this software and associated documentation files (the "Software"),
9 * to deal in the Software without restriction, including without limitation
10 * on the rights to use, copy, modify, merge, publish, distribute, sub
11 * license, and/or sell copies of the Software, and to permit persons to whom
12 * the Software is furnished to do so, subject to the following conditions:
13 *
14 * The above copyright notice and this permission notice (including the next
15 * paragraph) shall be included in all copies or substantial portions of the
16 * Software.
17 *
18 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20 * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
21 * THE COPYRIGHT HOLDERS AND/OR THEIR SUPPLIERS BE LIABLE FOR ANY CLAIM,
22 * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
23 * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
24 * USE OR OTHER DEALINGS IN THE SOFTWARE.
25 */
26
40 #ifndef DRI_INTERFACE_H
41 #define DRI_INTERFACE_H
42
43 /* For archs with no drm.h */
44 #if defined(__APPLE__) || defined(__CYGWIN__) || defined(__GNU__)
45 #ifndef __NOT_HAVE_DRM_H
46 #define __NOT_HAVE_DRM_H
47 #endif
48 #endif
49
50 #ifndef __NOT_HAVE_DRM_H
51 #include <drm.h>
52 #else
53 typedef unsigned int drm_context_t;
54 typedef unsigned int drm_drawable_t;
55 typedef struct drm_clip_rect drm_clip_rect_t;
56 #endif
57
65 typedef struct __DRIdisplayRec __DRIdisplay;
66 typedef struct __DRIscreenRec __DRIscreen;
67 typedef struct __DRIcontextRec __DRIcontext;
68 typedef struct __DRIdrawableRec __DRIdrawable;
69 typedef struct __DRIconfigRec __DRIconfig;
70 typedef struct __DRIframebufferRec __DRIframebuffer;
71 typedef struct __DRIversionRec __DRIversion;
72
73 typedef struct __DRIcoreExtensionRec __DRIcoreExtension;
74 typedef struct __DRIextensionRec __DRIextension;
75 typedef struct __DRIcopySubBufferExtensionRec __DRIcopySubBufferExtension;
76 typedef struct __DRIswapControlExtensionRec __DRIswapControlExtension;
77 typedef struct __DRIframeTrackingExtensionRec __DRIframeTrackingExtension;
78 typedef struct __DRImediaStreamCounterExtensionRec __DRImediaStreamCounterExtension;
79 typedef struct __DRItexOffsetExtensionRec __DRItexOffsetExtension;
80 typedef struct __DRItexBufferExtensionRec __DRItexBufferExtension;
81 typedef struct __DRIlegacyExtensionRec __DRIlegacyExtension;
82 typedef struct __DRIswrastExtensionRec __DRIswrastExtension;
83 typedef struct __DRIbufferRec __DRIbuffer;
84 typedef struct __DRIdri2ExtensionRec __DRIdri2Extension;
85 typedef struct __DRIdri2LoaderExtensionRec __DRIdri2LoaderExtension;
86 typedef struct __DRI2flushExtensionRec __DRI2flushExtension;
87
110 struct __DRIextensionRec {
111 const char *name;
112 int version;
113 };
114
126 #define __DRI_READ_DRAWABLE "DRI_ReadDrawable"
127 #define __DRI_READ_DRAWABLE_VERSION 1
128
132 #define __DRI_COPY_SUB_BUFFER "DRI_CopySubBuffer"
133 #define __DRI_COPY_SUB_BUFFER_VERSION 1
134 struct __DRIcopySubBufferExtensionRec {
135 __DRIextension base;
136 void (*copySubBuffer)(__DRIdrawable *drawable, int x, int y, int w, int h);
137 };
138
143 #define __DRI_SWAP_CONTROL "DRI_SwapControl"
144 #define __DRI_SWAP_CONTROL_VERSION 1
145 struct __DRIswapControlExtensionRec {
146 __DRIextension base;
147 void (*setSwapInterval)(__DRIdrawable *drawable, unsigned int inteval);
148 unsigned int (*getSwapInterval)(__DRIdrawable *drawable);
149 };
150
154 #define __DRI_FRAME_TRACKING "DRI_FrameTracking"
155 #define __DRI_FRAME_TRACKING_VERSION 1
156 struct __DRIframeTrackingExtensionRec {
157 __DRIextension base;
158
164 int (*frameTracking)(__DRIdrawable *drawable, GLboolean enable);
165
171 int (*queryFrameTracking)(__DRIdrawable *drawable,
172 int64_t * sbc, int64_t * missedFrames,
173 float * lastMissedUsage, float * usage);
174 };
175
176
180 #define __DRI_MEDIA_STREAM_COUNTER "DRI_MediaStreamCounter"
181 #define __DRI_MEDIA_STREAM_COUNTER_VERSION 1
182 struct __DRImediaStreamCounterExtensionRec {
183 __DRIextension base;
184
191 int (*waitForMSC)(__DRIdrawable *drawable,
192 int64_t target_msc, int64_t divisor, int64_t remainder,
193 int64_t * msc, int64_t * sbc);
194
199 int (*getDrawableMSC)(__DRIscreen *screen, __DRIdrawable *drawable,
200 int64_t *msc);
201 };
202
203
204 #define __DRI_TEX_OFFSET "DRI_TexOffset"
205 #define __DRI_TEX_OFFSET_VERSION 1
206 struct __DRItexOffsetExtensionRec {
207 __DRIextension base;
208
216 void (*setTexOffset)(__DRIcontext *pDRICtx, GLint texname,
217 unsigned long long offset, GLint depth, GLuint pitch);
218 };
219
220
221 /* Valid values for format in the setTexBuffer2 function below. These
222 * values match the GLX tokens for compatibility reasons, but we
223 * define them here since the DRI interface can't depend on GLX. */
224 #define __DRI_TEXTURE_FORMAT_NONE 0x20D8
225 #define __DRI_TEXTURE_FORMAT_RGB 0x20D9
226 #define __DRI_TEXTURE_FORMAT_RGBA 0x20DA
227
228 #define __DRI_TEX_BUFFER "DRI_TexBuffer"
229 #define __DRI_TEX_BUFFER_VERSION 2
230 struct __DRItexBufferExtensionRec {
231 __DRIextension base;
232
240 void (*setTexBuffer)(__DRIcontext *pDRICtx,
241 GLint target,
242 __DRIdrawable *pDraw);
243
250 void (*setTexBuffer2)(__DRIcontext *pDRICtx,
251 GLint target,
252 GLint format,
253 __DRIdrawable *pDraw);
260 void (*releaseTexBuffer)(__DRIcontext *pDRICtx,
261 GLint target,
262 __DRIdrawable *pDraw);
263 };
264
268 #define __DRI2_FLUSH "DRI2_Flush"
269 #define __DRI2_FLUSH_VERSION 3
270 struct __DRI2flushExtensionRec {
271 __DRIextension base;
272 void (*flush)(__DRIdrawable *drawable);
273
282 void (*invalidate)(__DRIdrawable *drawable);
283 };
284
285
290 extern const char __driConfigOptions[];
291
304 typedef struct __DRIgetDrawableInfoExtensionRec __DRIgetDrawableInfoExtension;
305 typedef struct __DRIsystemTimeExtensionRec __DRIsystemTimeExtension;
306 typedef struct __DRIdamageExtensionRec __DRIdamageExtension;
307 typedef struct __DRIloaderExtensionRec __DRIloaderExtension;
308 typedef struct __DRIswrastLoaderExtensionRec __DRIswrastLoaderExtension;
309
310
314 #define __DRI_GET_DRAWABLE_INFO "DRI_GetDrawableInfo"
315 #define __DRI_GET_DRAWABLE_INFO_VERSION 1
316 struct __DRIgetDrawableInfoExtensionRec {
317 __DRIextension base;
318
323 GLboolean (* getDrawableInfo) ( __DRIdrawable *drawable,
324 unsigned int * index, unsigned int * stamp,
325 int * x, int * y, int * width, int * height,
326 int * numClipRects, drm_clip_rect_t ** pClipRects,
327 int * backX, int * backY,
328 int * numBackClipRects, drm_clip_rect_t ** pBackClipRects,
329 void *loaderPrivate);
330 };
331
335 #define __DRI_SYSTEM_TIME "DRI_SystemTime"
336 #define __DRI_SYSTEM_TIME_VERSION 1
337 struct __DRIsystemTimeExtensionRec {
338 __DRIextension base;
339
343 int (*getUST)(int64_t * ust);
344
352 GLboolean (*getMSCRate)(__DRIdrawable *draw,
353 int32_t * numerator, int32_t * denominator,
354 void *loaderPrivate);
355 };
356
360 #define __DRI_DAMAGE "DRI_Damage"
361 #define __DRI_DAMAGE_VERSION 1
362 struct __DRIdamageExtensionRec {
363 __DRIextension base;
364
380 void (*reportDamage)(__DRIdrawable *draw,
381 int x, int y,
382 drm_clip_rect_t *rects, int num_rects,
383 GLboolean front_buffer,
384 void *loaderPrivate);
385 };
386
387 #define __DRI_SWRAST_IMAGE_OP_DRAW 1
388 #define __DRI_SWRAST_IMAGE_OP_CLEAR 2
389 #define __DRI_SWRAST_IMAGE_OP_SWAP 3
390
394 #define __DRI_SWRAST_LOADER "DRI_SWRastLoader"
395 #define __DRI_SWRAST_LOADER_VERSION 1
396 struct __DRIswrastLoaderExtensionRec {
397 __DRIextension base;
398
399 /*
400 * Drawable position and size
401 */
402 void (*getDrawableInfo)(__DRIdrawable *drawable,
403 int *x, int *y, int *width, int *height,
404 void *loaderPrivate);
405
409 void (*putImage)(__DRIdrawable *drawable, int op,
410 int x, int y, int width, int height,
411 char *data, void *loaderPrivate);
412
416 void (*getImage)(__DRIdrawable *readable,
417 int x, int y, int width, int height,
418 char *data, void *loaderPrivate);
419 };
420
433 #define __DRI_USE_INVALIDATE "DRI_UseInvalidate"
434 #define __DRI_USE_INVALIDATE_VERSION 1
435
436 typedef struct __DRIuseInvalidateExtensionRec __DRIuseInvalidateExtension;
437 struct __DRIuseInvalidateExtensionRec {
438 __DRIextension base;
439 };
440
447 #define __DRI_DRIVER_EXTENSIONS "__driDriverExtensions"
448
455 #define __DRI_ATTRIB_BUFFER_SIZE 1
456 #define __DRI_ATTRIB_LEVEL 2
457 #define __DRI_ATTRIB_RED_SIZE 3
458 #define __DRI_ATTRIB_GREEN_SIZE 4
459 #define __DRI_ATTRIB_BLUE_SIZE 5
460 #define __DRI_ATTRIB_LUMINANCE_SIZE 6
461 #define __DRI_ATTRIB_ALPHA_SIZE 7
462 #define __DRI_ATTRIB_ALPHA_MASK_SIZE 8
463 #define __DRI_ATTRIB_DEPTH_SIZE 9
464 #define __DRI_ATTRIB_STENCIL_SIZE 10
465 #define __DRI_ATTRIB_ACCUM_RED_SIZE 11
466 #define __DRI_ATTRIB_ACCUM_GREEN_SIZE 12
467 #define __DRI_ATTRIB_ACCUM_BLUE_SIZE 13
468 #define __DRI_ATTRIB_ACCUM_ALPHA_SIZE 14
469 #define __DRI_ATTRIB_SAMPLE_BUFFERS 15
470 #define __DRI_ATTRIB_SAMPLES 16
471 #define __DRI_ATTRIB_RENDER_TYPE 17
472 #define __DRI_ATTRIB_CONFIG_CAVEAT 18
473 #define __DRI_ATTRIB_CONFORMANT 19
474 #define __DRI_ATTRIB_DOUBLE_BUFFER 20
475 #define __DRI_ATTRIB_STEREO 21
476 #define __DRI_ATTRIB_AUX_BUFFERS 22
477 #define __DRI_ATTRIB_TRANSPARENT_TYPE 23
478 #define __DRI_ATTRIB_TRANSPARENT_INDEX_VALUE 24
479 #define __DRI_ATTRIB_TRANSPARENT_RED_VALUE 25
480 #define __DRI_ATTRIB_TRANSPARENT_GREEN_VALUE 26
481 #define __DRI_ATTRIB_TRANSPARENT_BLUE_VALUE 27
482 #define __DRI_ATTRIB_TRANSPARENT_ALPHA_VALUE 28
483 #define __DRI_ATTRIB_FLOAT_MODE 29
484 #define __DRI_ATTRIB_RED_MASK 30
485 #define __DRI_ATTRIB_GREEN_MASK 31
486 #define __DRI_ATTRIB_BLUE_MASK 32
487 #define __DRI_ATTRIB_ALPHA_MASK 33
488 #define __DRI_ATTRIB_MAX_PBUFFER_WIDTH 34
489 #define __DRI_ATTRIB_MAX_PBUFFER_HEIGHT 35
490 #define __DRI_ATTRIB_MAX_PBUFFER_PIXELS 36
491 #define __DRI_ATTRIB_OPTIMAL_PBUFFER_WIDTH 37
492 #define __DRI_ATTRIB_OPTIMAL_PBUFFER_HEIGHT 38
493 #define __DRI_ATTRIB_VISUAL_SELECT_GROUP 39
494 #define __DRI_ATTRIB_SWAP_METHOD 40
495 #define __DRI_ATTRIB_MAX_SWAP_INTERVAL 41
496 #define __DRI_ATTRIB_MIN_SWAP_INTERVAL 42
497 #define __DRI_ATTRIB_BIND_TO_TEXTURE_RGB 43
498 #define __DRI_ATTRIB_BIND_TO_TEXTURE_RGBA 44
499 #define __DRI_ATTRIB_BIND_TO_MIPMAP_TEXTURE 45
500 #define __DRI_ATTRIB_BIND_TO_TEXTURE_TARGETS 46
501 #define __DRI_ATTRIB_YINVERTED 47
502 #define __DRI_ATTRIB_FRAMEBUFFER_SRGB_CAPABLE 48
503
504 /* __DRI_ATTRIB_RENDER_TYPE */
505 #define __DRI_ATTRIB_RGBA_BIT 0x01
506 #define __DRI_ATTRIB_COLOR_INDEX_BIT 0x02
507 #define __DRI_ATTRIB_LUMINANCE_BIT 0x04
508
509 /* __DRI_ATTRIB_CONFIG_CAVEAT */
510 #define __DRI_ATTRIB_SLOW_BIT 0x01
511 #define __DRI_ATTRIB_NON_CONFORMANT_CONFIG 0x02
512
513 /* __DRI_ATTRIB_TRANSPARENT_TYPE */
514 #define __DRI_ATTRIB_TRANSPARENT_RGB 0x00
515 #define __DRI_ATTRIB_TRANSPARENT_INDEX 0x01
516
517 /* __DRI_ATTRIB_BIND_TO_TEXTURE_TARGETS */
518 #define __DRI_ATTRIB_TEXTURE_1D_BIT 0x01
519 #define __DRI_ATTRIB_TEXTURE_2D_BIT 0x02
520 #define __DRI_ATTRIB_TEXTURE_RECTANGLE_BIT 0x04
521
525 #define __DRI_CORE "DRI_Core"
526 #define __DRI_CORE_VERSION 1
527
528 struct __DRIcoreExtensionRec {
529 __DRIextension base;
530
531 __DRIscreen *(*createNewScreen)(int screen, int fd,
532 unsigned int sarea_handle,
533 const __DRIextension **extensions,
534 const __DRIconfig ***driverConfigs,
535 void *loaderPrivate);
536
537 void (*destroyScreen)(__DRIscreen *screen);
538
539 const __DRIextension **(*getExtensions)(__DRIscreen *screen);
540
541 int (*getConfigAttrib)(const __DRIconfig *config,
542 unsigned int attrib,
543 unsigned int *value);
544
545 int (*indexConfigAttrib)(const __DRIconfig *config, int index,
546 unsigned int *attrib, unsigned int *value);
547
548 __DRIdrawable *(*createNewDrawable)(__DRIscreen *screen,
549 const __DRIconfig *config,
550 unsigned int drawable_id,
551 unsigned int head,
552 void *loaderPrivate);
553
554 void (*destroyDrawable)(__DRIdrawable *drawable);
555
556 void (*swapBuffers)(__DRIdrawable *drawable);
557
558 __DRIcontext *(*createNewContext)(__DRIscreen *screen,
559 const __DRIconfig *config,
560 __DRIcontext *shared,
561 void *loaderPrivate);
562
563 int (*copyContext)(__DRIcontext *dest,
564 __DRIcontext *src,
565 unsigned long mask);
566
567 void (*destroyContext)(__DRIcontext *context);
568
569 int (*bindContext)(__DRIcontext *ctx,
570 __DRIdrawable *pdraw,
571 __DRIdrawable *pread);
572
573 int (*unbindContext)(__DRIcontext *ctx);
574 };
575
585 struct __DRIversionRec {
586 int major;
587 int minor;
588 int patch;
589 };
590
603 struct __DRIframebufferRec {
604 unsigned char *base;
610 int size;
611 int stride;
612 int width;
613 int height;
614 int dev_priv_size;
615 void *dev_priv;
616 };
617
618
624 #define __DRI_LEGACY "DRI_Legacy"
625 #define __DRI_LEGACY_VERSION 1
626
627 struct __DRIlegacyExtensionRec {
628 __DRIextension base;
629
630 __DRIscreen *(*createNewScreen)(int screen,
631 const __DRIversion *ddx_version,
632 const __DRIversion *dri_version,
633 const __DRIversion *drm_version,
634 const __DRIframebuffer *frame_buffer,
635 void *pSAREA, int fd,
636 const __DRIextension **extensions,
637 const __DRIconfig ***driver_configs,
638 void *loaderPrivate);
639
640 __DRIdrawable *(*createNewDrawable)(__DRIscreen *screen,
641 const __DRIconfig *config,
642 drm_drawable_t hwDrawable,
643 int renderType, const int *attrs,
644 void *loaderPrivate);
645
646 __DRIcontext *(*createNewContext)(__DRIscreen *screen,
647 const __DRIconfig *config,
648 int render_type,
649 __DRIcontext *shared,
650 drm_context_t hwContext,
651 void *loaderPrivate);
652 };
653
659 #define __DRI_SWRAST "DRI_SWRast"
660 #define __DRI_SWRAST_VERSION 2
661
662 struct __DRIswrastExtensionRec {
663 __DRIextension base;
664
665 __DRIscreen *(*createNewScreen)(int screen,
666 const __DRIextension **extensions,
667 const __DRIconfig ***driver_configs,
668 void *loaderPrivate);
669
670 __DRIdrawable *(*createNewDrawable)(__DRIscreen *screen,
671 const __DRIconfig *config,
672 void *loaderPrivate);
673
674 /* Since version 2 */
675 __DRIcontext *(*createNewContextForAPI)(__DRIscreen *screen,
676 int api,
677 const __DRIconfig *config,
678 __DRIcontext *shared,
679 void *data);
680 };
681
685 #define __DRI_BUFFER_FRONT_LEFT 0
686 #define __DRI_BUFFER_BACK_LEFT 1
687 #define __DRI_BUFFER_FRONT_RIGHT 2
688 #define __DRI_BUFFER_BACK_RIGHT 3
689 #define __DRI_BUFFER_DEPTH 4
690 #define __DRI_BUFFER_STENCIL 5
691 #define __DRI_BUFFER_ACCUM 6
692 #define __DRI_BUFFER_FAKE_FRONT_LEFT 7
693 #define __DRI_BUFFER_FAKE_FRONT_RIGHT 8
694 #define __DRI_BUFFER_DEPTH_STENCIL 9
695 #define __DRI_BUFFER_HIZ 10
696
697 struct __DRIbufferRec {
698 unsigned int attachment;
699 unsigned int name;
700 unsigned int pitch;
701 unsigned int cpp;
702 unsigned int flags;
703 };
704
705 #define __DRI_DRI2_LOADER "DRI_DRI2Loader"
706 #define __DRI_DRI2_LOADER_VERSION 3
707 struct __DRIdri2LoaderExtensionRec {
708 __DRIextension base;
709
710 __DRIbuffer *(*getBuffers)(__DRIdrawable *driDrawable,
711 int *width, int *height,
712 unsigned int *attachments, int count,
713 int *out_count, void *loaderPrivate);
714
726 void (*flushFrontBuffer)(__DRIdrawable *driDrawable, void *loaderPrivate);
727
728
748 __DRIbuffer *(*getBuffersWithFormat)(__DRIdrawable *driDrawable,
749 int *width, int *height,
750 unsigned int *attachments, int count,
751 int *out_count, void *loaderPrivate);
752 };
753
758 #define __DRI_DRI2 "DRI_DRI2"
759 #define __DRI_DRI2_VERSION 2
760
761 #define __DRI_API_OPENGL 0
762 #define __DRI_API_GLES 1
763 #define __DRI_API_GLES2 2
764
765 struct __DRIdri2ExtensionRec {
766 __DRIextension base;
767
768 __DRIscreen *(*createNewScreen)(int screen, int fd,
769 const __DRIextension **extensions,
770 const __DRIconfig ***driver_configs,
771 void *loaderPrivate);
772
773 __DRIdrawable *(*createNewDrawable)(__DRIscreen *screen,
774 const __DRIconfig *config,
775 void *loaderPrivate);
776
777 __DRIcontext *(*createNewContext)(__DRIscreen *screen,
778 const __DRIconfig *config,
779 __DRIcontext *shared,
780 void *loaderPrivate);
781
782 /* Since version 2 */
783 unsigned int (*getAPIMask)(__DRIscreen *screen);
784
785 __DRIcontext *(*createNewContextForAPI)(__DRIscreen *screen,
786 int api,
787 const __DRIconfig *config,
788 __DRIcontext *shared,
789 void *data);
790
791 __DRIbuffer *(*allocateBuffer)(__DRIscreen *screen,
792 unsigned int attachment,
793 unsigned int format,
794 int width,
795 int height);
796 void (*releaseBuffer)(__DRIscreen *screen,
797 __DRIbuffer *buffer);
798 };
799
800
805 #define __DRI_IMAGE "DRI_IMAGE"
806 #define __DRI_IMAGE_VERSION 1
807
814 #define __DRI_IMAGE_FORMAT_RGB565 0x1001
815 #define __DRI_IMAGE_FORMAT_XRGB8888 0x1002
816 #define __DRI_IMAGE_FORMAT_ARGB8888 0x1003
817
818 #define __DRI_IMAGE_USE_SHARE 0x0001
819 #define __DRI_IMAGE_USE_SCANOUT 0x0002
820 #define __DRI_IMAGE_USE_CURSOR 0x0004
821
826 #define __DRI_IMAGE_ATTRIB_STRIDE 0x2000
827 #define __DRI_IMAGE_ATTRIB_HANDLE 0x2001
828 #define __DRI_IMAGE_ATTRIB_NAME 0x2002
829
830 typedef struct __DRIimageRec __DRIimage;
831 typedef struct __DRIimageExtensionRec __DRIimageExtension;
832 struct __DRIimageExtensionRec {
833 __DRIextension base;
834
835 __DRIimage *(*createImageFromName)(__DRIscreen *screen,
836 int width, int height, int format,
837 int name, int pitch,
838 void *loaderPrivate);
839
840 __DRIimage *(*createImageFromRenderbuffer)(__DRIcontext *context,
841 int renderbuffer,
842 void *loaderPrivate);
843
844 void (*destroyImage)(__DRIimage *image);
845
846 __DRIimage *(*createImage)(__DRIscreen *screen,
847 int width, int height, int format,
848 unsigned int use,
849 void *loaderPrivate);
850
851 GLboolean (*queryImage)(__DRIimage *image, int attrib, int *value);
852
856 __DRIimage *(*dupImage)(__DRIimage *image, void *loaderPrivate);
857 };
858
859
869 #define __DRI_IMAGE_LOOKUP "DRI_IMAGE_LOOKUP"
870 #define __DRI_IMAGE_LOOKUP_VERSION 1
871
872 typedef struct __DRIimageLookupExtensionRec __DRIimageLookupExtension;
873 struct __DRIimageLookupExtensionRec {
874 __DRIextension base;
875
876 __DRIimage *(*lookupEGLImage)(__DRIscreen *screen, void *image,
877 void *loaderPrivate);
878 };
879
883 #define __DRI2_CONFIG_QUERY "DRI_CONFIG_QUERY"
884 #define __DRI2_CONFIG_QUERY_VERSION 1
885
886 typedef struct __DRI2configQueryExtensionRec __DRI2configQueryExtension;
887 struct __DRI2configQueryExtensionRec {
888 __DRIextension base;
889
890 int (*configQueryb)(__DRIscreen *screen, const char *var, GLboolean *val);
891 int (*configQueryi)(__DRIscreen *screen, const char *var, GLint *val);
892 int (*configQueryf)(__DRIscreen *screen, const char *var, GLfloat *val);
893 };
894 #endif
__DRIversionRec::major
int major
Definition: dri_interface.h:586
__DRIdamageExtensionRec
Definition: dri_interface.h:362
denominator
INT32 INT32 * denominator
Definition: wglew.h:1153
__DRItexBufferExtensionRec::base
__DRIextension base
Definition: dri_interface.h:231
__DRIbufferRec::pitch
unsigned int pitch
Definition: dri_interface.h:700
__DRI2configQueryExtensionRec::base
__DRIextension base
Definition: dri_interface.h:888
__DRIsystemTimeExtensionRec::base
__DRIextension base
Definition: dri_interface.h:338
__DRIswapControlExtensionRec
Definition: dri_interface.h:145
__DRImediaStreamCounterExtensionRec::getDrawableMSC
int(* getDrawableMSC)(__DRIscreen *screen, __DRIdrawable *drawable, int64_t *msc)
Definition: dri_interface.h:199
__DRIsystemTimeExtensionRec::getMSCRate
GLboolean(* getMSCRate)(__DRIdrawable *draw, int32_t *numerator, int32_t *denominator, void *loaderPrivate)
Definition: dri_interface.h:352
__DRIimage
struct __DRIimageRec __DRIimage
Definition: dri_interface.h:830
__DRIconfig
struct __DRIconfigRec __DRIconfig
Definition: dri_interface.h:69
val
GLuint const GLfloat * val
Definition: glew.h:2715
__DRIdri2LoaderExtensionRec::base
__DRIextension base
Definition: dri_interface.h:708
h
GLfloat GLfloat GLfloat GLfloat h
Definition: glew.h:7294
ust
INT64 * ust
Definition: wglew.h:1154
void
GLvoid **typedef void(GLAPIENTRY *PFNGLGETVERTEXATTRIBDVPROC)(GLuint
Definition: glew.h:1824
int64_t
long long int64_t
Definition: types.h:10
__DRIdri2ExtensionRec::releaseBuffer
void(* releaseBuffer)(__DRIscreen *screen, __DRIbuffer *buffer)
Definition: dri_interface.h:796
__DRIcoreExtensionRec
Definition: dri_interface.h:528
__DRIscreen
struct __DRIscreenRec __DRIscreen
Definition: dri_interface.h:66
__DRIcoreExtensionRec::unbindContext
int(* unbindContext)(__DRIcontext *ctx)
Definition: dri_interface.h:573
GLboolean
unsigned char GLboolean
Definition: gl2.h:24
__DRItexBufferExtensionRec
Definition: dri_interface.h:230
__DRIimageExtensionRec
Definition: dri_interface.h:832
__DRIbufferRec::cpp
unsigned int cpp
Definition: dri_interface.h:701
__DRIbufferRec::flags
unsigned int flags
Definition: dri_interface.h:702
__DRIbufferRec
Definition: dri_interface.h:697
__DRIcoreExtensionRec::destroyScreen
void(* destroyScreen)(__DRIscreen *screen)
Definition: dri_interface.h:537
__DRIcoreExtensionRec::getConfigAttrib
int(* getConfigAttrib)(const __DRIconfig *config, unsigned int attrib, unsigned int *value)
Definition: dri_interface.h:541
__DRI2configQueryExtensionRec
Definition: dri_interface.h:887
__DRImediaStreamCounterExtensionRec::waitForMSC
int(* waitForMSC)(__DRIdrawable *drawable, int64_t target_msc, int64_t divisor, int64_t remainder, int64_t *msc, int64_t *sbc)
Definition: dri_interface.h:191
x
EGLSurface EGLint x
Definition: eglext.h:293
__DRIbufferRec::name
unsigned int name
Definition: dri_interface.h:699
__driConfigOptions
const char __driConfigOptions[]
__DRI2flushExtensionRec::flush
void(* flush)(__DRIdrawable *drawable)
Definition: dri_interface.h:272
__DRIimageLookupExtensionRec::base
__DRIextension base
Definition: dri_interface.h:874
__DRIframebufferRec::width
int width
Definition: dri_interface.h:612
height
EGLSurface EGLint EGLint EGLint EGLint height
Definition: eglext.h:293
name
EGLImageKHR EGLint * name
Definition: eglext.h:284
__DRIcontext
struct __DRIcontextRec __DRIcontext
Definition: dri_interface.h:67
int32_t
long int32_t
Definition: types.h:9
__DRIcopySubBufferExtensionRec::base
__DRIextension base
Definition: dri_interface.h:135
divisor
GLuint divisor
Definition: gl2ext.h:1010
__DRIcoreExtensionRec::swapBuffers
void(* swapBuffers)(__DRIdrawable *drawable)
Definition: dri_interface.h:556
msc
INT64 INT64 * msc
Definition: wglew.h:1154
__DRIframebufferRec::dev_priv
void * dev_priv
Definition: dri_interface.h:615
__DRItexOffsetExtensionRec
Definition: dri_interface.h:206
__DRIdamageExtensionRec::base
__DRIextension base
Definition: dri_interface.h:363
__DRIframebufferRec::base
unsigned char * base
Definition: dri_interface.h:604
__DRI2configQueryExtensionRec::configQueryf
int(* configQueryf)(__DRIscreen *screen, const char *var, GLfloat *val)
Definition: dri_interface.h:892
__DRIcoreExtensionRec::destroyContext
void(* destroyContext)(__DRIcontext *context)
Definition: dri_interface.h:567
__DRIsystemTimeExtensionRec
Definition: dri_interface.h:337
image
EGLImageKHR image
Definition: eglext.h:88
__DRIswrastLoaderExtensionRec::getImage
void(* getImage)(__DRIdrawable *readable, int x, int y, int width, int height, char *data, void *loaderPrivate)
Definition: dri_interface.h:416
__DRIswrastLoaderExtensionRec::base
__DRIextension base
Definition: dri_interface.h:397
__DRIswapControlExtensionRec::setSwapInterval
void(* setSwapInterval)(__DRIdrawable *drawable, unsigned int inteval)
Definition: dri_interface.h:147
__DRI2flushExtensionRec::base
__DRIextension base
Definition: dri_interface.h:271
target
EGLContext EGLenum target
Definition: eglext.h:87
buffer
EGLContext EGLenum EGLClientBuffer buffer
Definition: eglext.h:87
__DRIversionRec::patch
int patch
Definition: dri_interface.h:588
__DRIdri2LoaderExtensionRec
Definition: dri_interface.h:707
__DRIframeTrackingExtensionRec::frameTracking
int(* frameTracking)(__DRIdrawable *drawable, GLboolean enable)
Definition: dri_interface.h:164
int
int
Definition: SDL_systhread.c:37
data
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
Definition: gl2ext.h:848
width
EGLSurface EGLint EGLint EGLint width
Definition: eglext.h:293
__DRIswapControlExtensionRec::getSwapInterval
unsigned int(* getSwapInterval)(__DRIdrawable *drawable)
Definition: dri_interface.h:148
__DRIcoreExtensionRec::destroyDrawable
void(* destroyDrawable)(__DRIdrawable *drawable)
Definition: dri_interface.h:554
__DRItexBufferExtensionRec::releaseTexBuffer
void(* releaseTexBuffer)(__DRIcontext *pDRICtx, GLint target, __DRIdrawable *pDraw)
Definition: dri_interface.h:260
count
GLint GLsizei count
Definition: gl2ext.h:1011
__DRIimageExtensionRec::queryImage
GLboolean(* queryImage)(__DRIimage *image, int attrib, int *value)
Definition: dri_interface.h:851
__DRIsystemTimeExtensionRec::getUST
int(* getUST)(int64_t *ust)
Definition: dri_interface.h:343
__DRIloaderExtension
struct __DRIloaderExtensionRec __DRIloaderExtension
Definition: dri_interface.h:307
__DRIframebufferRec::size
int size
Definition: dri_interface.h:610
__DRIcoreExtensionRec::indexConfigAttrib
int(* indexConfigAttrib)(const __DRIconfig *config, int index, unsigned int *attrib, unsigned int *value)
Definition: dri_interface.h:545
enable
GLboolean enable
Definition: gl2ext.h:940
__DRIgetDrawableInfoExtensionRec::getDrawableInfo
GLboolean(* getDrawableInfo)(__DRIdrawable *drawable, unsigned int *index, unsigned int *stamp, int *x, int *y, int *width, int *height, int *numClipRects, drm_clip_rect_t **pClipRects, int *backX, int *backY, int *numBackClipRects, drm_clip_rect_t **pBackClipRects, void *loaderPrivate)
Definition: dri_interface.h:323
__DRIextensionRec::name
const char * name
Definition: dri_interface.h:111
format
GLint GLenum GLsizei GLsizei GLsizei GLint GLenum format
Definition: gl2ext.h:845
depth
GLint GLenum GLsizei GLsizei GLsizei depth
Definition: gl2ext.h:845
__DRIuseInvalidateExtensionRec::base
__DRIextension base
Definition: dri_interface.h:438
index
GLuint index
Definition: glew.h:1800
__DRIbufferRec::attachment
unsigned int attachment
Definition: dri_interface.h:698
__DRIcoreExtensionRec::bindContext
int(* bindContext)(__DRIcontext *ctx, __DRIdrawable *pdraw, __DRIdrawable *pread)
Definition: dri_interface.h:569
__DRIframebufferRec::dev_priv_size
int dev_priv_size
Definition: dri_interface.h:614
__DRIswrastLoaderExtensionRec
Definition: dri_interface.h:396
__DRIframeTrackingExtensionRec::queryFrameTracking
int(* queryFrameTracking)(__DRIdrawable *drawable, int64_t *sbc, int64_t *missedFrames, float *lastMissedUsage, float *usage)
Definition: dri_interface.h:171
__DRIdisplay
struct __DRIdisplayRec __DRIdisplay
Definition: dri_interface.h:65
__DRI2flushExtensionRec::invalidate
void(* invalidate)(__DRIdrawable *drawable)
Definition: dri_interface.h:282
GLfloat
khronos_float_t GLfloat
Definition: gl2.h:33
__DRI2flushExtensionRec
Definition: dri_interface.h:270
__DRItexBufferExtensionRec::setTexBuffer
void(* setTexBuffer)(__DRIcontext *pDRICtx, GLint target, __DRIdrawable *pDraw)
Definition: dri_interface.h:240
__DRImediaStreamCounterExtensionRec::base
__DRIextension base
Definition: dri_interface.h:183
__DRI2configQueryExtensionRec::configQueryi
int(* configQueryi)(__DRIscreen *screen, const char *var, GLint *val)
Definition: dri_interface.h:891
__DRIcopySubBufferExtensionRec::copySubBuffer
void(* copySubBuffer)(__DRIdrawable *drawable, int x, int y, int w, int h)
Definition: dri_interface.h:136
target_msc
INT64 target_msc
Definition: wglew.h:1155
__DRIswapControlExtensionRec::base
__DRIextension base
Definition: dri_interface.h:146
numerator
INT32 * numerator
Definition: wglew.h:1153
y
EGLSurface EGLint EGLint y
Definition: eglext.h:293
__DRIswrastExtensionRec
Definition: dri_interface.h:662
sbc
INT64 INT64 INT64 * sbc
Definition: wglew.h:1154
__DRIversionRec::minor
int minor
Definition: dri_interface.h:587
__DRIimageExtensionRec::base
__DRIextension base
Definition: dri_interface.h:833
__DRIframebufferRec::stride
int stride
Definition: dri_interface.h:611
__DRI2configQueryExtensionRec::configQueryb
int(* configQueryb)(__DRIscreen *screen, const char *var, GLboolean *val)
Definition: dri_interface.h:890
GLint
int GLint
Definition: gl2.h:28
__DRIimageExtensionRec::destroyImage
void(* destroyImage)(__DRIimage *image)
Definition: dri_interface.h:844
value
EGLSurface EGLint void ** value
Definition: eglext.h:301
__DRIversionRec
Definition: dri_interface.h:585
GLuint
unsigned int GLuint
Definition: gl2.h:32
offset
GLintptr offset
Definition: glew.h:1668
__DRIframebufferRec::height
int height
Definition: dri_interface.h:613
__DRIswrastLoaderExtensionRec::getDrawableInfo
void(* getDrawableInfo)(__DRIdrawable *drawable, int *x, int *y, int *width, int *height, void *loaderPrivate)
Definition: dri_interface.h:402
__DRIframeTrackingExtensionRec::base
__DRIextension base
Definition: dri_interface.h:157
__DRIlegacyExtensionRec
Definition: dri_interface.h:627
__DRIframeTrackingExtensionRec
Definition: dri_interface.h:156
__DRIcopySubBufferExtensionRec
Definition: dri_interface.h:134
config
EGLConfig config
Definition: eglext.h:257
mask
GLint GLint GLint GLint GLint GLint GLint GLbitfield mask
Definition: gl2ext.h:961
__DRIgetDrawableInfoExtensionRec
Definition: dri_interface.h:316
w
GLint GLint GLint GLint GLint w
Definition: gl2ext.h:1215
__DRIgetDrawableInfoExtensionRec::base
__DRIextension base
Definition: dri_interface.h:317
__DRIextensionRec
Definition: dri_interface.h:110
__DRIlegacyExtensionRec::base
__DRIextension base
Definition: dri_interface.h:628
__DRIswrastExtensionRec::base
__DRIextension base
Definition: dri_interface.h:663
__DRIimageLookupExtensionRec
Definition: dri_interface.h:873
__DRIextensionRec::version
int version
Definition: dri_interface.h:112
src
GLenum src
Definition: glew.h:2396
context
TParseContext * context
Definition: glslang_tab.cpp:1907
__DRIdamageExtensionRec::reportDamage
void(* reportDamage)(__DRIdrawable *draw, int x, int y, drm_clip_rect_t *rects, int num_rects, GLboolean front_buffer, void *loaderPrivate)
Definition: dri_interface.h:380
__DRIuseInvalidateExtensionRec
Definition: dri_interface.h:437
__DRIdri2ExtensionRec::getAPIMask
unsigned int(* getAPIMask)(__DRIscreen *screen)
Definition: dri_interface.h:783
__DRImediaStreamCounterExtensionRec
Definition: dri_interface.h:182
attachment
GLenum attachment
Definition: gl2ext.h:850
head
SDL_EventEntry * head
Definition: SDL_events.c:78
__DRIframebufferRec
Definition: dri_interface.h:603
__DRIcoreExtensionRec::copyContext
int(* copyContext)(__DRIcontext *dest, __DRIcontext *src, unsigned long mask)
Definition: dri_interface.h:563
__DRIcoreExtensionRec::base
__DRIextension base
Definition: dri_interface.h:529
__DRItexOffsetExtensionRec::setTexOffset
void(* setTexOffset)(__DRIcontext *pDRICtx, GLint texname, unsigned long long offset, GLint depth, GLuint pitch)
Definition: dri_interface.h:216
usage
GLsizeiptr const GLvoid GLenum usage
Definition: glew.h:1667
__DRIdrawable
struct __DRIdrawableRec __DRIdrawable
Definition: dri_interface.h:68
__DRIdri2ExtensionRec::base
__DRIextension base
Definition: dri_interface.h:766
__DRItexBufferExtensionRec::setTexBuffer2
void(* setTexBuffer2)(__DRIcontext *pDRICtx, GLint target, GLint format, __DRIdrawable *pDraw)
Definition: dri_interface.h:250
__DRIswrastLoaderExtensionRec::putImage
void(* putImage)(__DRIdrawable *drawable, int op, int x, int y, int width, int height, char *data, void *loaderPrivate)
Definition: dri_interface.h:409
renderbuffer
GLuint renderbuffer
Definition: glew.h:4123
__DRItexOffsetExtensionRec::base
__DRIextension base
Definition: dri_interface.h:207
__DRIdri2LoaderExtensionRec::flushFrontBuffer
void(* flushFrontBuffer)(__DRIdrawable *driDrawable, void *loaderPrivate)
Definition: dri_interface.h:726
__DRIdri2ExtensionRec
Definition: dri_interface.h:765
remainder
INT64 INT64 INT64 remainder
Definition: wglew.h:1155
attachments
GLsizei const GLenum * attachments
Definition: gl2ext.h:1103
ctx
EGLContext ctx
Definition: eglext.h:87