dri: Remove driSwapControlExtension
authorKristian Høgsberg <krh@bitplanet.net>
Fri, 28 Oct 2011 19:01:20 +0000 (15:01 -0400)
committerKristian Høgsberg <krh@bitplanet.net>
Wed, 2 Nov 2011 15:15:57 +0000 (11:15 -0400)
DRI1-only as well.

src/gallium/state_trackers/dri/drm/dri2.c
src/mesa/drivers/dri/common/dri_util.c
src/mesa/drivers/dri/common/dri_util.h
src/mesa/drivers/dri/radeon/radeon_screen.c

index a7f08e1e859973e2014e04abd7be6f56cdb82bac..a7bc00da46ba6611da62129c01d35263a4bf9a17 100644 (file)
@@ -620,7 +620,6 @@ static struct __DRIimageExtensionRec dri2ImageExtension = {
  */
 
 static const __DRIextension *dri_screen_extensions[] = {
-   &driSwapControlExtension.base,
    &driMediaStreamCounterExtension.base,
    &driTexBufferExtension.base,
    &dri2FlushExtension.base,
@@ -630,7 +629,6 @@ static const __DRIextension *dri_screen_extensions[] = {
 };
 
 static const __DRIextension *dri_screen_extensions_throttle[] = {
-   &driSwapControlExtension.base,
    &driMediaStreamCounterExtension.base,
    &driTexBufferExtension.base,
    &dri2FlushExtension.base,
index 6e7c1eda3ca49c6cc99a98b3061977a78bff5d78..5d9b25150150a6c4c83e297ad965d990b759757b 100644 (file)
@@ -360,23 +360,6 @@ const __DRImediaStreamCounterExtension driMediaStreamCounterExtension = {
 };
 
 
-static void driSetSwapInterval(__DRIdrawable *dPriv, unsigned int interval)
-{
-    dPriv->swap_interval = interval;
-}
-
-static unsigned int driGetSwapInterval(__DRIdrawable *dPriv)
-{
-    return dPriv->swap_interval;
-}
-
-const __DRIswapControlExtension driSwapControlExtension = {
-    { __DRI_SWAP_CONTROL, __DRI_SWAP_CONTROL_VERSION },
-    driSetSwapInterval,
-    driGetSwapInterval
-};
-
-
 /**
  * This is called via __DRIscreenRec's createNewDrawable pointer.
  */
index 292cbef9969335f2275ecffc952785a2206e47c6..c1e6712feefb13283b4c3c13e58bc29c82a83ae4 100644 (file)
@@ -65,7 +65,6 @@ typedef struct __DRIswapInfoRec        __DRIswapInfo;
  */
 extern const __DRIcoreExtension driCoreExtension;
 extern const __DRIdri2Extension driDRI2Extension;
-extern const __DRIswapControlExtension driSwapControlExtension;
 extern const __DRImediaStreamCounterExtension driMediaStreamCounterExtension;
 extern const __DRI2configQueryExtension dri2ConfigQueryExtension;
 
index fdaf30e9c0d7c0ec6eddf9d82e591647fe82b59f..595bcaf55641f234365512efc8679fc351a222dc 100644 (file)
@@ -1099,10 +1099,8 @@ radeonCreateScreen2(__DRIscreen *sPriv)
    i = 0;
    screen->extensions[i++] = &dri2ConfigQueryExtension.base;
 
-   if ( screen->irq != 0 ) {
-       screen->extensions[i++] = &driSwapControlExtension.base;
+   if ( screen->irq != 0 )
        screen->extensions[i++] = &driMediaStreamCounterExtension.base;
-   }
 
 #if defined(RADEON_R100)
    screen->extensions[i++] = &radeonTexBufferExtension.base;