diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2013-03-05 21:43:20 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2013-03-05 21:44:42 +0000 |
commit | e67aece46301ebb77d5fce7ac687a03713956fef (patch) | |
tree | 70278942f33dec45cf842875fe7ab94f4a257188 /src/sna/sna_display.c | |
parent | bc5f81901f1b4451e4187b97f65a8be4c03b2494 (diff) |
sna: Assert that the pixmap is not pinned before releasing the GPU bo
Nothing suspicious in this set, just an extra dab of paranoia.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna_display.c')
-rw-r--r-- | src/sna/sna_display.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sna/sna_display.c b/src/sna/sna_display.c index e54c9862..27684245 100644 --- a/src/sna/sna_display.c +++ b/src/sna/sna_display.c @@ -3282,6 +3282,8 @@ static void set_bo(PixmapPtr pixmap, struct kgem_bo *bo) { struct sna_pixmap *priv = sna_pixmap(pixmap); + assert((priv->pinned & PIN_PRIME) == 0); + if (priv->mapped) { assert(!priv->shm && priv->stride); pixmap->devPrivate.ptr = PTR(priv->ptr); |