Mesa (master): intel: Drop DRI1 CopySubBuffer implementation

Kristian Høgsberg krh at kemper.freedesktop.org
Tue Jan 5 15:32:14 UTC 2010


Module: Mesa
Branch: master
Commit: 4611f08c07091f2f516156f4725c2ae5fc3579c4
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=4611f08c07091f2f516156f4725c2ae5fc3579c4

Author: Kristian Høgsberg <krh at bitplanet.net>
Date:   Fri Jan  1 18:29:35 2010 -0500

intel: Drop DRI1 CopySubBuffer implementation

---

 src/mesa/drivers/dri/intel/intel_screen.c      |    2 -
 src/mesa/drivers/dri/intel/intel_swapbuffers.c |   28 ------------------------
 2 files changed, 0 insertions(+), 30 deletions(-)

diff --git a/src/mesa/drivers/dri/intel/intel_screen.c b/src/mesa/drivers/dri/intel/intel_screen.c
index 7f85750..0a1afdf 100644
--- a/src/mesa/drivers/dri/intel/intel_screen.c
+++ b/src/mesa/drivers/dri/intel/intel_screen.c
@@ -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,
 };
diff --git a/src/mesa/drivers/dri/intel/intel_swapbuffers.c b/src/mesa/drivers/dri/intel/intel_swapbuffers.c
index c975b40..8e3aa95 100644
--- a/src/mesa/drivers/dri/intel/intel_swapbuffers.c
+++ b/src/mesa/drivers/dri/intel/intel_swapbuffers.c
@@ -141,34 +141,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).
  */




More information about the mesa-commit mailing list