xserver: Branch 'master'
Kristian Høgsberg
krh at kemper.freedesktop.org
Fri Aug 10 12:54:46 PDT 2007
GL/glx/glxdri.c | 18 ++++++++++++++++++
1 files changed, 18 insertions(+)
New commits:
diff-tree 2243b30e54df07892f75e3d65b687abe5b183cf3 (from ff4bd3addb48df3eacc4b121cc249a7f38eb981a)
Author: Kristian Høgsberg <krh at redhat.com>
Date: Fri Aug 10 15:53:05 2007 -0400
Implement damage tracking for AIGLX.
diff --git a/GL/glx/glxdri.c b/GL/glx/glxdri.c
index 685683d..cc1e70b 100644
--- a/GL/glx/glxdri.c
+++ b/GL/glx/glxdri.c
@@ -943,6 +943,22 @@ getUST(int64_t *ust)
}
}
+static void __glXReportDamage(__DRIdrawable *driDraw,
+ int x, int y,
+ drm_clip_rect_t *rects, int num_rects,
+ GLboolean front_buffer)
+{
+ __GLXDRIdrawable *drawable =
+ containerOf(driDraw, __GLXDRIdrawable, driDrawable);
+ DrawablePtr pDraw = drawable->base.pDraw;
+ RegionRec region;
+
+ REGION_INIT(pDraw->pScreen, ®ion, (BoxPtr) rects, num_rects);
+ REGION_TRANSLATE(pScreen, ®ion, pDraw->x, pDraw->y);
+ DamageDamageRegion(pDraw, ®ion);
+ REGION_UNINIT(pDraw->pScreen, ®ion);
+}
+
/* Table of functions that we export to the driver. */
static const __DRIinterfaceMethods interface_methods = {
getProcAddress,
@@ -962,6 +978,8 @@ static const __DRIinterfaceMethods inter
getUST,
NULL, /* glXGetMscRateOML, */
+
+ __glXReportDamage,
};
static const char dri_driver_path[] = DRI_DRIVER_PATH;
More information about the xorg-commit
mailing list