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:
parent
cadea260de
commit
fd5f44f4d2
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue