sna: Drop bogus assert added in recent patches
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 21 Jan 2014 10:35:30 +0000 (10:35 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 21 Jan 2014 10:35:30 +0000 (10:35 +0000)
The intention was to detect if the gc->pCompositeClip still pointed to
the temporary region. However, the assert failed to accomplish that
goal.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
src/sna/sna_accel.c

index 4a6b8ba..4a2b614 100644 (file)
@@ -15711,8 +15711,6 @@ sna_validate_gc(GCPtr gc, unsigned long changes, DrawablePtr drawable)
        DBG(("%s(%p) changes=%lx, previous serial=%lx, drawable=%lx\n", __FUNCTION__, gc,
             changes, gc->serialNumber, drawable->serialNumber));
 
-       assert(gc->pCompositeClip == NULL || gc->pCompositeClip != sna_gc(gc)->priv);
-
        if (changes & (GCClipMask|GCSubwindowMode) ||
            drawable->serialNumber != (gc->serialNumber & DRAWABLE_SERIAL_BITS) ||
            (gc->clientClipType != CT_NONE && (changes & (GCClipXOrigin | GCClipYOrigin)))) {