sna: A couple more asserts for valid flip data and handling

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2015-08-08 22:09:53 +01:00
parent cadea260de
commit fd5f44f4d2
1 changed files with 2 additions and 0 deletions

View File

@ -6244,6 +6244,7 @@ error:
if (data) {
assert(crtc->flip_bo == NULL);
assert(handler);
crtc->flip_handler = handler;
crtc->flip_data = data;
crtc->flip_bo = kgem_bo_reference(bo);
@ -8564,6 +8565,7 @@ again:
crtc->swap.tv_usec = vbl->tv_usec;
crtc->swap.msc = msc;
}
assert(crtc->flip_pending);
crtc->flip_pending = false;
assert(crtc->flip_bo);