dri: Drop driCopySubBufferExtension
authorKristian Høgsberg <krh@bitplanet.net>
Fri, 28 Oct 2011 18:57:34 +0000 (14:57 -0400)
committerKristian Høgsberg <krh@bitplanet.net>
Wed, 2 Nov 2011 15:15:56 +0000 (11:15 -0400)
Another DRI1-only extension.

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 a5b51da9e109f040ae6dff8de15cb6c5d91eb9d8..a7f08e1e859973e2014e04abd7be6f56cdb82bac 100644 (file)
@@ -620,7 +620,6 @@ static struct __DRIimageExtensionRec dri2ImageExtension = {
  */
 
 static const __DRIextension *dri_screen_extensions[] = {
-   &driCopySubBufferExtension.base,
    &driSwapControlExtension.base,
    &driMediaStreamCounterExtension.base,
    &driTexBufferExtension.base,
@@ -631,7 +630,6 @@ static const __DRIextension *dri_screen_extensions[] = {
 };
 
 static const __DRIextension *dri_screen_extensions_throttle[] = {
-   &driCopySubBufferExtension.base,
    &driSwapControlExtension.base,
    &driMediaStreamCounterExtension.base,
    &driTexBufferExtension.base,
index 90eba676542c3d31092cbf73d0a11ffc52e0fc3a..6e7c1eda3ca49c6cc99a98b3061977a78bff5d78 100644 (file)
@@ -360,25 +360,6 @@ const __DRImediaStreamCounterExtension driMediaStreamCounterExtension = {
 };
 
 
-static void driCopySubBuffer(__DRIdrawable *dPriv,
-                             int x, int y, int w, int h)
-{
-    drm_clip_rect_t rect;
-
-    rect.x1 = x;
-    rect.y1 = dPriv->h - y - h;
-    rect.x2 = x + w;
-    rect.y2 = rect.y1 + h;
-    driReportDamage(dPriv, &rect, 1);
-
-    dPriv->driScreenPriv->DriverAPI.CopySubBuffer(dPriv, x, y, w, h);
-}
-
-const __DRIcopySubBufferExtension driCopySubBufferExtension = {
-    { __DRI_COPY_SUB_BUFFER, __DRI_COPY_SUB_BUFFER_VERSION },
-    driCopySubBuffer
-};
-
 static void driSetSwapInterval(__DRIdrawable *dPriv, unsigned int interval)
 {
     dPriv->swap_interval = interval;
index 2db8c97102cc385dec115f5c86aef8b945a2bd02..292cbef9969335f2275ecffc952785a2206e47c6 100644 (file)
@@ -65,7 +65,6 @@ typedef struct __DRIswapInfoRec        __DRIswapInfo;
  */
 extern const __DRIcoreExtension driCoreExtension;
 extern const __DRIdri2Extension driDRI2Extension;
-extern const __DRIcopySubBufferExtension driCopySubBufferExtension;
 extern const __DRIswapControlExtension driSwapControlExtension;
 extern const __DRImediaStreamCounterExtension driMediaStreamCounterExtension;
 extern const __DRI2configQueryExtension dri2ConfigQueryExtension;
index 0fc30041c223e6ec97a2d17049b09f3507a6efe8..fdaf30e9c0d7c0ec6eddf9d82e591647fe82b59f 100644 (file)
@@ -1097,7 +1097,6 @@ radeonCreateScreen2(__DRIscreen *sPriv)
           screen->chip_flags |= RADEON_CLASS_R200;
 
    i = 0;
-   screen->extensions[i++] = &driCopySubBufferExtension.base;
    screen->extensions[i++] = &dri2ConfigQueryExtension.base;
 
    if ( screen->irq != 0 ) {