diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2013-03-18 15:00:01 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2013-03-18 15:11:24 +0000 |
commit | 4a37d57f9633bbd29f308239c1cd956767b277c0 (patch) | |
tree | c1389de1fbc3ca87469d18279d5eb35f3d77d05f /src/sna/sna_render.c | |
parent | 28371a34fa83f70a7af3c8d3bfd6c7cef9e35073 (diff) |
sna: Add a pair of sanity checks before creating the redirection target
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna_render.c')
-rw-r--r-- | src/sna/sna_render.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sna/sna_render.c b/src/sna/sna_render.c index 6a2438f4..2e29d950 100644 --- a/src/sna/sna_render.c +++ b/src/sna/sna_render.c @@ -1873,6 +1873,8 @@ sna_render_composite_redirect(struct sna *sna, int bpp = op->dst.pixmap->drawable.bitsPerPixel; struct kgem_bo *bo; + assert(t->real_bo == NULL); + #if NO_REDIRECT return false; #endif @@ -1954,6 +1956,7 @@ sna_render_composite_redirect(struct sna *sna, t->real_bo = op->dst.bo; t->real_damage = op->damage; if (op->damage) { + assert(!DAMAGE_IS_ALL(op->damage)); t->damage = sna_damage_create(); op->damage = &t->damage; } |