sna: And remove new bogus assertion
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 16 Jul 2014 11:53:02 +0000 (12:53 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 16 Jul 2014 11:53:02 +0000 (12:53 +0100)
We assert that damage is valid as we delete the Pixmap, and so we cannot
assert that the Pixmap is still valid itself.

Reported-by: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
src/sna/sna_accel.c

index f2ae139..97bcdcf 100644 (file)
@@ -276,7 +276,6 @@ _assert_pixmap_contains_damage(PixmapPtr pixmap, struct sna_damage *damage, cons
 
 #define __assert_pixmap_damage(p) do { \
        struct sna_pixmap *priv__ = sna_pixmap(p); \
-       assert(p->refcnt); \
        if (priv__) { \
                assert(priv__->gpu_damage == NULL || priv__->gpu_bo); \
                assert(priv__->gpu_bo == NULL || priv__->gpu_bo->refcnt); \