sna: Add a pair of sanity checks before creating the redirection target
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
28371a34fa
commit
4a37d57f96
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue