Revert "Implement damage tracking for AIGLX."
This reverts commit 2243b30e54
. The existing
DRI interface doesn't let us get from a __DRIdrawable to the corresponding
X drawable, and thus, we can't implement AIGLX damage tracking with the
current interface.
This commit is contained in:
parent
03f9da6724
commit
6a195e816b
|
@ -943,22 +943,6 @@ 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. */
|
/* Table of functions that we export to the driver. */
|
||||||
static const __DRIinterfaceMethods interface_methods = {
|
static const __DRIinterfaceMethods interface_methods = {
|
||||||
getProcAddress,
|
getProcAddress,
|
||||||
|
@ -978,8 +962,6 @@ static const __DRIinterfaceMethods interface_methods = {
|
||||||
|
|
||||||
getUST,
|
getUST,
|
||||||
NULL, /* glXGetMscRateOML, */
|
NULL, /* glXGetMscRateOML, */
|
||||||
|
|
||||||
__glXReportDamage,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static const char dri_driver_path[] = DRI_DRIVER_PATH;
|
static const char dri_driver_path[] = DRI_DRIVER_PATH;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user