summaryrefslogtreecommitdiff
path: root/src/sna/sna_dri.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-07-05 02:19:26 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2012-07-05 02:19:26 +0100
commitd46cc00b3cd903bfaf37ad7d4a60676c4b346983 (patch)
tree7a35f69d4c6dd328751c88e2cdaf9ad89d4196db /src/sna/sna_dri.c
parent3c1f58fe45e8f4f18c45733f862ca1f290dde84d (diff)
sna/dri: Assert that our pixmaps sizes are invariant
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna_dri.c')
-rw-r--r--src/sna/sna_dri.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sna/sna_dri.c b/src/sna/sna_dri.c
index a10efc7b..36b40a74 100644
--- a/src/sna/sna_dri.c
+++ b/src/sna/sna_dri.c
@@ -223,11 +223,11 @@ sna_dri_create_buffer(DrawablePtr drawable,
dri_drawable_type, NULL, DixWriteAccess);
if (buffer) {
private = get_private(buffer);
- if (private->pixmap == pixmap &&
- private->width == pixmap->drawable.width &&
- private->height == pixmap->drawable.height) {
+ if (private->pixmap == pixmap) {
DBG(("%s: reusing front buffer attachment\n",
__FUNCTION__));
+ assert(private->width == pixmap->drawable.width);
+ assert(private->height == pixmap->drawable.height);
private->refcnt++;
return buffer;
}