1 /**************************************************************************
3 * Copyright 2003 Tungsten Graphics, Inc., Cedar Park, Texas.
6 * Permission is hereby granted, free of charge, to any person obtaining a
7 * copy of this software and associated documentation files (the
8 * "Software"), to deal in the Software without restriction, including
9 * without limitation the rights to use, copy, modify, merge, publish,
10 * distribute, sub license, and/or sell copies of the Software, and to
11 * permit persons to whom the Software is furnished to do so, subject to
12 * the following conditions:
14 * The above copyright notice and this permission notice (including the
15 * next paragraph) shall be included in all copies or substantial portions
18 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
19 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
20 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
21 * IN NO EVENT SHALL TUNGSTEN GRAPHICS AND/OR ITS SUPPLIERS BE LIABLE FOR
22 * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
23 * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
24 * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
26 **************************************************************************/
28 #include "main/glheader.h"
29 #include "main/context.h"
30 #include "main/framebuffer.h"
31 #include "main/renderbuffer.h"
37 #include "intel_batchbuffer.h"
38 #include "intel_buffers.h"
39 #include "intel_bufmgr.h"
40 #include "intel_chipset.h"
41 #include "intel_extensions.h"
42 #include "intel_fbo.h"
43 #include "intel_regions.h"
44 #include "intel_swapbuffers.h"
45 #include "intel_screen.h"
46 #include "intel_span.h"
47 #include "intel_tex.h"
52 #define DRI_CONF_TEXTURE_TILING(def) \
53 DRI_CONF_OPT_BEGIN(texture_tiling, bool, def) \
54 DRI_CONF_DESC(en, "Enable texture tiling") \
57 PUBLIC const char __driConfigOptions[] =
59 DRI_CONF_SECTION_PERFORMANCE
60 DRI_CONF_VBLANK_MODE(DRI_CONF_VBLANK_ALWAYS_SYNC
)
61 /* Options correspond to DRI_CONF_BO_REUSE_DISABLED,
62 * DRI_CONF_BO_REUSE_ALL
64 DRI_CONF_OPT_BEGIN_V(bo_reuse
, enum, 1, "0:1")
65 DRI_CONF_DESC_BEGIN(en
, "Buffer object reuse")
66 DRI_CONF_ENUM(0, "Disable buffer object reuse")
67 DRI_CONF_ENUM(1, "Enable reuse of all sizes of buffer objects")
72 DRI_CONF_TEXTURE_TILING(false)
74 DRI_CONF_TEXTURE_TILING(true)
77 DRI_CONF_OPT_BEGIN(early_z
, bool, false)
78 DRI_CONF_DESC(en
, "Enable early Z in classic mode (unstable, 945-only).")
81 DRI_CONF_OPT_BEGIN(fragment_shader
, bool, false)
82 DRI_CONF_DESC(en
, "Enable limited ARB_fragment_shader support on 915/945.")
86 DRI_CONF_SECTION_QUALITY
87 DRI_CONF_FORCE_S3TC_ENABLE(false)
88 DRI_CONF_ALLOW_LARGE_TEXTURES(2)
90 DRI_CONF_SECTION_DEBUG
91 DRI_CONF_NO_RAST(false)
92 DRI_CONF_ALWAYS_FLUSH_BATCH(false)
93 DRI_CONF_ALWAYS_FLUSH_CACHE(false)
95 DRI_CONF_OPT_BEGIN(stub_occlusion_query
, bool, false)
96 DRI_CONF_DESC(en
, "Enable stub ARB_occlusion_query support on 915/945.")
101 const GLuint __driNConfigOptions
= 11;
103 #ifdef USE_NEW_INTERFACE
104 static PFNGLXCREATECONTEXTMODES create_context_modes
= NULL
;
105 #endif /*USE_NEW_INTERFACE */
108 * Map all the memory regions described by the screen.
109 * \return GL_TRUE if success, GL_FALSE if error.
112 intelMapScreenRegions(__DRIscreen
* sPriv
)
114 intelScreenPrivate
*intelScreen
= (intelScreenPrivate
*) sPriv
->private;
117 _mesa_printf("TEX 0x%08x ", intelScreen
->tex
.handle
);
118 if (intelScreen
->tex
.size
!= 0) {
119 if (drmMap(sPriv
->fd
,
120 intelScreen
->tex
.handle
,
121 intelScreen
->tex
.size
,
122 (drmAddress
*) & intelScreen
->tex
.map
) != 0) {
123 intelUnmapScreenRegions(intelScreen
);
132 intelUnmapScreenRegions(intelScreenPrivate
* intelScreen
)
134 if (intelScreen
->tex
.map
) {
135 drmUnmap(intelScreen
->tex
.map
, intelScreen
->tex
.size
);
136 intelScreen
->tex
.map
= NULL
;
142 intelPrintDRIInfo(intelScreenPrivate
* intelScreen
,
143 __DRIscreen
* sPriv
, I830DRIPtr gDRIPriv
)
145 fprintf(stderr
, "*** Front size: 0x%x offset: 0x%x pitch: %d\n",
146 intelScreen
->front
.size
, intelScreen
->front
.offset
,
148 fprintf(stderr
, "*** Back size: 0x%x offset: 0x%x pitch: %d\n",
149 intelScreen
->back
.size
, intelScreen
->back
.offset
,
151 fprintf(stderr
, "*** Depth size: 0x%x offset: 0x%x pitch: %d\n",
152 intelScreen
->depth
.size
, intelScreen
->depth
.offset
,
154 fprintf(stderr
, "*** Texture size: 0x%x offset: 0x%x\n",
155 intelScreen
->tex
.size
, intelScreen
->tex
.offset
);
156 fprintf(stderr
, "*** Memory : 0x%x\n", gDRIPriv
->mem
);
161 intelPrintSAREA(const drm_i915_sarea_t
* sarea
)
163 fprintf(stderr
, "SAREA: sarea width %d height %d\n", sarea
->width
,
165 fprintf(stderr
, "SAREA: pitch: %d\n", sarea
->pitch
);
167 "SAREA: front offset: 0x%08x size: 0x%x handle: 0x%x tiled: %d\n",
168 sarea
->front_offset
, sarea
->front_size
,
169 (unsigned) sarea
->front_handle
, sarea
->front_tiled
);
171 "SAREA: back offset: 0x%08x size: 0x%x handle: 0x%x tiled: %d\n",
172 sarea
->back_offset
, sarea
->back_size
,
173 (unsigned) sarea
->back_handle
, sarea
->back_tiled
);
174 fprintf(stderr
, "SAREA: depth offset: 0x%08x size: 0x%x handle: 0x%x tiled: %d\n",
175 sarea
->depth_offset
, sarea
->depth_size
,
176 (unsigned) sarea
->depth_handle
, sarea
->depth_tiled
);
177 fprintf(stderr
, "SAREA: tex offset: 0x%08x size: 0x%x handle: 0x%x\n",
178 sarea
->tex_offset
, sarea
->tex_size
, (unsigned) sarea
->tex_handle
);
183 * A number of the screen parameters are obtained/computed from
184 * information in the SAREA. This function updates those parameters.
187 intelUpdateScreenFromSAREA(intelScreenPrivate
* intelScreen
,
188 drm_i915_sarea_t
* sarea
)
190 intelScreen
->width
= sarea
->width
;
191 intelScreen
->height
= sarea
->height
;
192 intelScreen
->pitch
= sarea
->pitch
;
194 intelScreen
->front
.offset
= sarea
->front_offset
;
195 intelScreen
->front
.handle
= sarea
->front_handle
;
196 intelScreen
->front
.size
= sarea
->front_size
;
197 intelScreen
->front
.tiled
= sarea
->front_tiled
;
199 intelScreen
->back
.offset
= sarea
->back_offset
;
200 intelScreen
->back
.handle
= sarea
->back_handle
;
201 intelScreen
->back
.size
= sarea
->back_size
;
202 intelScreen
->back
.tiled
= sarea
->back_tiled
;
204 intelScreen
->depth
.offset
= sarea
->depth_offset
;
205 intelScreen
->depth
.handle
= sarea
->depth_handle
;
206 intelScreen
->depth
.size
= sarea
->depth_size
;
207 intelScreen
->depth
.tiled
= sarea
->depth_tiled
;
209 if (intelScreen
->driScrnPriv
->ddx_version
.minor
>= 9) {
210 intelScreen
->front
.bo_handle
= sarea
->front_bo_handle
;
211 intelScreen
->back
.bo_handle
= sarea
->back_bo_handle
;
212 intelScreen
->depth
.bo_handle
= sarea
->depth_bo_handle
;
214 intelScreen
->front
.bo_handle
= -1;
215 intelScreen
->back
.bo_handle
= -1;
216 intelScreen
->depth
.bo_handle
= -1;
219 intelScreen
->tex
.offset
= sarea
->tex_offset
;
220 intelScreen
->logTextureGranularity
= sarea
->log_tex_granularity
;
221 intelScreen
->tex
.handle
= sarea
->tex_handle
;
222 intelScreen
->tex
.size
= sarea
->tex_size
;
225 intelPrintSAREA(sarea
);
228 static const __DRItexOffsetExtension intelTexOffsetExtension
= {
229 { __DRI_TEX_OFFSET
},
233 static const __DRItexBufferExtension intelTexBufferExtension
= {
234 { __DRI_TEX_BUFFER
, __DRI_TEX_BUFFER_VERSION
},
239 static const __DRIextension
*intelScreenExtensions
[] = {
240 &driReadDrawableExtension
,
241 &driSwapControlExtension
.base
,
242 &driFrameTrackingExtension
.base
,
243 &driMediaStreamCounterExtension
.base
,
244 &intelTexOffsetExtension
.base
,
245 &intelTexBufferExtension
.base
,
250 intel_get_param(__DRIscreen
*psp
, int param
, int *value
)
253 struct drm_i915_getparam gp
;
258 ret
= drmCommandWriteRead(psp
->fd
, DRM_I915_GETPARAM
, &gp
, sizeof(gp
));
260 _mesa_warning(NULL
, "drm_i915_getparam: %d", ret
);
267 static GLboolean
intelInitDriver(__DRIscreen
*sPriv
)
269 intelScreenPrivate
*intelScreen
;
270 I830DRIPtr gDRIPriv
= (I830DRIPtr
) sPriv
->pDevPriv
;
271 drm_i915_sarea_t
*sarea
;
273 if (sPriv
->devPrivSize
!= sizeof(I830DRIRec
)) {
275 "\nERROR! sizeof(I830DRIRec) does not match passed size from device driver\n");
279 /* Allocate the private area */
280 intelScreen
= (intelScreenPrivate
*) CALLOC(sizeof(intelScreenPrivate
));
282 fprintf(stderr
, "\nERROR! Allocating private area failed\n");
285 /* parse information in __driConfigOptions */
286 driParseOptionInfo(&intelScreen
->optionCache
,
287 __driConfigOptions
, __driNConfigOptions
);
289 intelScreen
->driScrnPriv
= sPriv
;
290 sPriv
->private = (void *) intelScreen
;
291 sarea
= (drm_i915_sarea_t
*)
292 (((GLubyte
*) sPriv
->pSAREA
) + gDRIPriv
->sarea_priv_offset
);
293 intelScreen
->sarea
= sarea
;
295 intelScreen
->deviceID
= gDRIPriv
->deviceID
;
297 intelUpdateScreenFromSAREA(intelScreen
, sarea
);
299 if (!intelMapScreenRegions(sPriv
)) {
300 fprintf(stderr
, "\nERROR! mapping regions\n");
301 _mesa_free(intelScreen
);
302 sPriv
->private = NULL
;
307 intelPrintDRIInfo(intelScreen
, sPriv
, gDRIPriv
);
309 intelScreen
->drmMinor
= sPriv
->drm_version
.minor
;
311 /* Determine if IRQs are active? */
312 if (!intel_get_param(sPriv
, I915_PARAM_IRQ_ACTIVE
,
313 &intelScreen
->irq_active
))
316 sPriv
->extensions
= intelScreenExtensions
;
323 intelDestroyScreen(__DRIscreen
* sPriv
)
325 intelScreenPrivate
*intelScreen
= (intelScreenPrivate
*) sPriv
->private;
327 dri_bufmgr_destroy(intelScreen
->bufmgr
);
328 intelUnmapScreenRegions(intelScreen
);
329 driDestroyOptionInfo(&intelScreen
->optionCache
);
332 sPriv
->private = NULL
;
337 * This is called when we need to set up GL rendering to a new X window.
340 intelCreateBuffer(__DRIscreen
* driScrnPriv
,
341 __DRIdrawable
* driDrawPriv
,
342 const __GLcontextModes
* mesaVis
, GLboolean isPixmap
)
345 return GL_FALSE
; /* not implemented */
348 GLboolean swStencil
= (mesaVis
->stencilBits
> 0 &&
349 mesaVis
->depthBits
!= 24);
352 struct intel_framebuffer
*intel_fb
= CALLOC_STRUCT(intel_framebuffer
);
357 _mesa_initialize_framebuffer(&intel_fb
->Base
, mesaVis
);
359 if (mesaVis
->redBits
== 5)
360 rgbFormat
= MESA_FORMAT_RGB565
;
361 else if (mesaVis
->alphaBits
== 0)
362 rgbFormat
= MESA_FORMAT_XRGB8888
;
364 rgbFormat
= MESA_FORMAT_ARGB8888
;
366 /* setup the hardware-based renderbuffers */
367 intel_fb
->color_rb
[0] = intel_create_renderbuffer(rgbFormat
);
368 _mesa_add_renderbuffer(&intel_fb
->Base
, BUFFER_FRONT_LEFT
,
369 &intel_fb
->color_rb
[0]->Base
);
371 if (mesaVis
->doubleBufferMode
) {
372 intel_fb
->color_rb
[1] = intel_create_renderbuffer(rgbFormat
);
374 _mesa_add_renderbuffer(&intel_fb
->Base
, BUFFER_BACK_LEFT
,
375 &intel_fb
->color_rb
[1]->Base
);
379 if (mesaVis
->depthBits
== 24) {
380 if (mesaVis
->stencilBits
== 8) {
381 /* combined depth/stencil buffer */
382 struct intel_renderbuffer
*depthStencilRb
383 = intel_create_renderbuffer(MESA_FORMAT_S8_Z24
);
384 /* note: bind RB to two attachment points */
385 _mesa_add_renderbuffer(&intel_fb
->Base
, BUFFER_DEPTH
,
386 &depthStencilRb
->Base
);
387 _mesa_add_renderbuffer(&intel_fb
->Base
, BUFFER_STENCIL
,
388 &depthStencilRb
->Base
);
390 struct intel_renderbuffer
*depthRb
391 = intel_create_renderbuffer(MESA_FORMAT_X8_Z24
);
392 _mesa_add_renderbuffer(&intel_fb
->Base
, BUFFER_DEPTH
,
396 else if (mesaVis
->depthBits
== 16) {
397 /* just 16-bit depth buffer, no hw stencil */
398 struct intel_renderbuffer
*depthRb
399 = intel_create_renderbuffer(MESA_FORMAT_Z16
);
400 _mesa_add_renderbuffer(&intel_fb
->Base
, BUFFER_DEPTH
, &depthRb
->Base
);
403 /* now add any/all software-based renderbuffers we may need */
404 _mesa_add_soft_renderbuffers(&intel_fb
->Base
,
405 GL_FALSE
, /* never sw color */
406 GL_FALSE
, /* never sw depth */
407 swStencil
, mesaVis
->accumRedBits
> 0,
408 GL_FALSE
, /* never sw alpha */
409 GL_FALSE
/* never sw aux */ );
410 driDrawPriv
->driverPrivate
= (void *) intel_fb
;
417 intelDestroyBuffer(__DRIdrawable
* driDrawPriv
)
419 struct intel_framebuffer
*intel_fb
= driDrawPriv
->driverPrivate
;
420 struct intel_renderbuffer
*depth_rb
;
421 struct intel_renderbuffer
*stencil_rb
;
424 if (intel_fb
->color_rb
[0]) {
425 intel_renderbuffer_set_region(intel_fb
->color_rb
[0], NULL
);
428 if (intel_fb
->color_rb
[1]) {
429 intel_renderbuffer_set_region(intel_fb
->color_rb
[1], NULL
);
432 depth_rb
= intel_get_renderbuffer(&intel_fb
->Base
, BUFFER_DEPTH
);
434 intel_renderbuffer_set_region(depth_rb
, NULL
);
437 stencil_rb
= intel_get_renderbuffer(&intel_fb
->Base
, BUFFER_STENCIL
);
439 intel_renderbuffer_set_region(stencil_rb
, NULL
);
443 _mesa_reference_framebuffer((GLframebuffer
**)(&(driDrawPriv
->driverPrivate
)), NULL
);
448 * Get information about previous buffer swaps.
451 intelGetSwapInfo(__DRIdrawable
* dPriv
, __DRIswapInfo
* sInfo
)
453 struct intel_framebuffer
*intel_fb
;
455 if ((dPriv
== NULL
) || (dPriv
->driverPrivate
== NULL
)
456 || (sInfo
== NULL
)) {
460 intel_fb
= dPriv
->driverPrivate
;
461 sInfo
->swap_count
= intel_fb
->swap_count
;
462 sInfo
->swap_ust
= intel_fb
->swap_ust
;
463 sInfo
->swap_missed_count
= intel_fb
->swap_missed_count
;
465 sInfo
->swap_missed_usage
= (sInfo
->swap_missed_count
!= 0)
466 ? driCalculateSwapUsage(dPriv
, 0, intel_fb
->swap_missed_ust
)
473 /* There are probably better ways to do this, such as an
474 * init-designated function to register chipids and createcontext
477 extern GLboolean
i830CreateContext(const __GLcontextModes
* mesaVis
,
478 __DRIcontext
* driContextPriv
,
479 void *sharedContextPrivate
);
481 extern GLboolean
i915CreateContext(const __GLcontextModes
* mesaVis
,
482 __DRIcontext
* driContextPriv
,
483 void *sharedContextPrivate
);
484 extern GLboolean
brwCreateContext(const __GLcontextModes
* mesaVis
,
485 __DRIcontext
* driContextPriv
,
486 void *sharedContextPrivate
);
489 intelCreateContext(const __GLcontextModes
* mesaVis
,
490 __DRIcontext
* driContextPriv
,
491 void *sharedContextPrivate
)
493 __DRIscreen
*sPriv
= driContextPriv
->driScreenPriv
;
494 intelScreenPrivate
*intelScreen
= (intelScreenPrivate
*) sPriv
->private;
497 if (IS_9XX(intelScreen
->deviceID
)) {
498 if (!IS_965(intelScreen
->deviceID
)) {
499 return i915CreateContext(mesaVis
, driContextPriv
,
500 sharedContextPrivate
);
503 intelScreen
->no_vbo
= GL_TRUE
;
504 return i830CreateContext(mesaVis
, driContextPriv
, sharedContextPrivate
);
507 if (IS_965(intelScreen
->deviceID
))
508 return brwCreateContext(mesaVis
, driContextPriv
, sharedContextPrivate
);
510 fprintf(stderr
, "Unrecognized deviceID %x\n", intelScreen
->deviceID
);
515 intel_init_bufmgr(intelScreenPrivate
*intelScreen
)
518 struct drm_i915_getparam gp
;
519 __DRIscreen
*spriv
= intelScreen
->driScrnPriv
;
522 intelScreen
->no_hw
= getenv("INTEL_NO_HW") != NULL
;
524 gp
.param
= I915_PARAM_HAS_GEM
;
525 gp
.value
= &gem_kernel
;
527 (void) drmCommandWriteRead(spriv
->fd
, DRM_I915_GETPARAM
, &gp
, sizeof(gp
));
529 /* If we've got a new enough DDX that's initializing GEM and giving us
530 * object handles for the shared buffers, use that.
532 if (!intelScreen
->driScrnPriv
->dri2
.enabled
&&
533 intelScreen
->driScrnPriv
->ddx_version
.minor
< 9) {
534 fprintf(stderr
, "[%s:%u] Error initializing GEM.\n",
539 intelScreen
->bufmgr
= intel_bufmgr_gem_init(spriv
->fd
, BATCH_SZ
);
540 /* Otherwise, use the classic buffer manager. */
541 if (intelScreen
->bufmgr
== NULL
) {
542 fprintf(stderr
, "[%s:%u] Error initializing buffer manager.\n",
547 if (intel_get_param(spriv
, I915_PARAM_NUM_FENCES_AVAIL
, &num_fences
))
548 intelScreen
->kernel_exec_fencing
= !!num_fences
;
550 intelScreen
->kernel_exec_fencing
= GL_FALSE
;
555 struct intel_context
*intelScreenContext(intelScreenPrivate
*intelScreen
)
558 * This should probably change to have the screen allocate a dummy
559 * context at screen creation. For now just use the current context.
562 GET_CURRENT_CONTEXT(ctx
);
564 _mesa_problem(NULL
, "No current context in intelScreenContext\n");
567 return intel_context(ctx
);
571 * This is the driver specific part of the createNewScreen entry point.
572 * Called when using DRI2.
574 * \return the __GLcontextModes supported by this driver
577 __DRIconfig
**intelInitScreen2(__DRIscreen
*psp
)
579 intelScreenPrivate
*intelScreen
;
582 /* GLX_SWAP_COPY_OML is only supported because the Intel driver doesn't
583 * support pageflipping at all.
585 static const GLenum back_buffer_modes
[] = {
586 GLX_NONE
, GLX_SWAP_UNDEFINED_OML
, GLX_SWAP_COPY_OML
588 uint8_t depth_bits
[4], stencil_bits
[4], msaa_samples_array
[1];
590 __DRIconfig
**configs
= NULL
;
592 /* Allocate the private area */
593 intelScreen
= (intelScreenPrivate
*) CALLOC(sizeof(intelScreenPrivate
));
595 fprintf(stderr
, "\nERROR! Allocating private area failed\n");
598 /* parse information in __driConfigOptions */
599 driParseOptionInfo(&intelScreen
->optionCache
,
600 __driConfigOptions
, __driNConfigOptions
);
602 intelScreen
->driScrnPriv
= psp
;
603 psp
->private = (void *) intelScreen
;
605 intelScreen
->drmMinor
= psp
->drm_version
.minor
;
607 /* Determine chipset ID */
608 if (!intel_get_param(psp
, I915_PARAM_CHIPSET_ID
,
609 &intelScreen
->deviceID
))
612 if (!intel_init_bufmgr(intelScreen
))
615 intelScreen
->irq_active
= 1;
616 psp
->extensions
= intelScreenExtensions
;
627 msaa_samples_array
[0] = 0;
629 fb_format
[0] = GL_RGB
;
630 fb_type
[0] = GL_UNSIGNED_SHORT_5_6_5
;
632 fb_format
[1] = GL_BGR
;
633 fb_type
[1] = GL_UNSIGNED_INT_8_8_8_8_REV
;
635 fb_format
[2] = GL_BGRA
;
636 fb_type
[2] = GL_UNSIGNED_INT_8_8_8_8_REV
;
641 for (color
= 0; color
< ARRAY_SIZE(fb_format
); color
++) {
642 __DRIconfig
**new_configs
;
645 /* With DRI2 right now, GetBuffers always returns a depth/stencil buffer
646 * with the same cpp as the drawable. So we can't support depth cpp !=
647 * color cpp currently.
649 if (fb_type
[color
] == GL_UNSIGNED_SHORT_5_6_5
) {
662 new_configs
= driCreateConfigs(fb_format
[color
], fb_type
[color
],
667 ARRAY_SIZE(back_buffer_modes
),
669 ARRAY_SIZE(msaa_samples_array
));
671 configs
= new_configs
;
673 configs
= driConcatConfigs(configs
, new_configs
);
676 if (configs
== NULL
) {
677 fprintf(stderr
, "[%s:%u] Error creating FBConfig!\n", __func__
,
682 return (const __DRIconfig
**)configs
;
685 const struct __DriverAPIRec driDriverAPI
= {
686 .DestroyScreen
= intelDestroyScreen
,
687 .CreateContext
= intelCreateContext
,
688 .DestroyContext
= intelDestroyContext
,
689 .CreateBuffer
= intelCreateBuffer
,
690 .DestroyBuffer
= intelDestroyBuffer
,
691 .MakeCurrent
= intelMakeCurrent
,
692 .UnbindContext
= intelUnbindContext
,
693 .GetSwapInfo
= intelGetSwapInfo
,
694 .GetDrawableMSC
= driDrawableGetMSC32
,
695 .WaitForMSC
= driWaitForMSC32
,
697 .InitScreen2
= intelInitScreen2
,
700 /* This is the table of extensions that the loader will dlsym() for. */
701 PUBLIC
const __DRIextension
*__driDriverExtensions
[] = {
702 &driCoreExtension
.base
,
703 &driDRI2Extension
.base
,