intel: Drop DRI1 CopySubBuffer implementation
authorKristian Høgsberg <krh@bitplanet.net>
Fri, 1 Jan 2010 23:29:35 +0000 (18:29 -0500)
committerKristian Høgsberg <krh@bitplanet.net>
Mon, 4 Jan 2010 16:48:01 +0000 (11:48 -0500)
src/mesa/drivers/dri/intel/intel_screen.c
src/mesa/drivers/dri/intel/intel_swapbuffers.c

index 7f85750297f37928ff856ebd76b885bc119b1204..0a1afdfb874d1afe55167c24897d774e69bf7638 100644 (file)
@@ -238,7 +238,6 @@ static const __DRItexBufferExtension intelTexBufferExtension = {
 
 static const __DRIextension *intelScreenExtensions[] = {
     &driReadDrawableExtension,
-    &driCopySubBufferExtension.base,
     &driSwapControlExtension.base,
     &driFrameTrackingExtension.base,
     &driMediaStreamCounterExtension.base,
@@ -695,7 +694,6 @@ const struct __DriverAPIRec driDriverAPI = {
    .GetSwapInfo                 = intelGetSwapInfo,
    .GetDrawableMSC      = driDrawableGetMSC32,
    .WaitForMSC          = driWaitForMSC32,
-   .CopySubBuffer       = intelCopySubBuffer,
 
    .InitScreen2                 = intelInitScreen2,
 };
index c975b40d3c212e41be0af6d72cc405ac8d8e0a6b..8e3aa9534c4d126d264b4d6d882f70a4eac5975c 100644 (file)
@@ -140,34 +140,6 @@ intelSwapBuffers(__DRIdrawable * dPriv)
 }
 
 
-/**
- * Called from driCopySubBuffer()
- */
-void
-intelCopySubBuffer(__DRIdrawable * dPriv, int x, int y, int w, int h)
-{
-   if (dPriv->driContextPriv && dPriv->driContextPriv->driverPrivate) {
-      struct intel_context *intel =
-         (struct intel_context *) dPriv->driContextPriv->driverPrivate;
-      GLcontext *ctx = &intel->ctx;
-
-      if (ctx->Visual.doubleBufferMode) {
-         drm_clip_rect_t rect;
-         rect.x1 = x + dPriv->x;
-         rect.y1 = (dPriv->h - y - h) + dPriv->y;
-         rect.x2 = rect.x1 + w;
-         rect.y2 = rect.y1 + h;
-         _mesa_notifySwapBuffers(ctx);  /* flush pending rendering comands */
-         intelCopyBuffer(dPriv, &rect);
-      }
-   }
-   else {
-      /* XXX this shouldn't be an error but we can't handle it for now */
-      fprintf(stderr, "%s: drawable has no context!\n", __FUNCTION__);
-   }
-}
-
-
 /**
  * This will be called whenever the currently bound window is moved/resized.
  * XXX: actually, it seems to NOT be called when the window is only moved (BP).