diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2013-02-11 22:15:17 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2013-02-11 22:15:17 +0000 |
commit | 5fb165b02d47634ccf9fb72ab6fb4d65b89f78d0 (patch) | |
tree | 77ae7ea617eeb3070b1c850e1cc4626f94f7d84c /src | |
parent | 2667b821e193c0badf16420f82f8a99a93c27a46 (diff) |
sna/dri: Assert that the old scanout is clear before overwriting
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src')
-rw-r--r-- | src/sna/sna_dri.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sna/sna_dri.c b/src/sna/sna_dri.c index 89e3410d..732143a7 100644 --- a/src/sna/sna_dri.c +++ b/src/sna/sna_dri.c @@ -1097,6 +1097,7 @@ sna_dri_page_flip(struct sna *sna, struct sna_dri_frame_event *info) assert(sna_pixmap_get_buffer(sna->front) == info->front); assert(get_drawable_pixmap(info->draw)->drawable.height * bo->pitch <= kgem_bo_size(bo)); assert(info->scanout[0].bo); + assert(info->scanout[1].bo == NULL); info->count = sna_page_flip(sna, bo, info, info->pipe); if (!info->count) |