diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2013-03-01 15:42:38 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2013-03-01 15:42:38 +0000 |
commit | d8296412b88b1ab4ea48572707408f7eeb52c8fa (patch) | |
tree | 498f96a69f02187004250b72e90e07d4b28db3ae /src/sna/sna_accel.c | |
parent | 904af323914e05830f17621a78b6e55b371ae5fc (diff) |
sna: Assert that when caching a pixmap header the pScreen match
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna_accel.c')
-rw-r--r-- | src/sna/sna_accel.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c index 328ce303..8fefd057 100644 --- a/src/sna/sna_accel.c +++ b/src/sna/sna_accel.c @@ -1306,6 +1306,7 @@ static void __sna_free_pixmap(struct sna *sna, if (priv->header) { assert(!priv->shm); + assert(pixmap->drawable.pScreen == sna->scrn->pScreen); pixmap->devPrivate.ptr = sna->freed_pixmap; sna->freed_pixmap = pixmap; } else { |