xf86-video-intel: src/sna/sna_accel.c
Chris Wilson
ickle at kemper.freedesktop.org
Thu Jan 9 04:36:05 PST 2014
src/sna/sna_accel.c | 4 ++++
1 file changed, 4 insertions(+)
New commits:
commit bfabdb7ebf5e491da1e74f8b362f9c2f0b6f1ac5
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date: Thu Jan 9 12:34:58 2014 +0000
sna: Add regular refcnt checks on pixmap bo
References: https://bugs.freedesktop.org/show_bug.cgi?id=73406
Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c
index f1be82a..926365a 100644
--- a/src/sna/sna_accel.c
+++ b/src/sna/sna_accel.c
@@ -343,6 +343,8 @@ static void assert_pixmap_damage(PixmapPtr p)
return;
assert(priv->gpu_damage == NULL || priv->gpu_bo);
+ assert(priv->gpu_bo == NULL || priv->gpu_bo->refcnt);
+ assert(priv->cpu_bo == NULL || priv->cpu_bo->refcnt);
assert_pixmap_map(p, priv);
if (priv->clear) {
@@ -395,6 +397,8 @@ static void assert_pixmap_damage(PixmapPtr p)
#define assert_pixmap_damage(p) do { \
struct sna_pixmap *priv__ = sna_pixmap(p); \
assert(priv__ == NULL || priv__->gpu_damage == NULL || priv__->gpu_bo); \
+ assert(priv__ == NULL || priv__->gpu_bo == NULL || priv__->gpu_bo->refcnt); \
+ assert(priv__ == NULL || priv__->cpu_bo == NULL || priv__->cpu_bo->refcnt); \
} while (0)
#else
#define assert_pixmap_damage(p)
More information about the xorg-commit
mailing list