mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-07-04 05:06:16 +00:00
flip_test: check drmHandleEvents()' return value
Signed-off-by: Imre Deak <imre.deak@intel.com> [danvet: s/assert/do_or_die] Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
parent
f1b1729a8a
commit
95a967faa2
@ -494,12 +494,12 @@ static void flip_mode(struct test_output *o, int crtc, int duration)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
drmHandleEvent(drm_fd, &evctx);
|
do_or_die(drmHandleEvent(drm_fd, &evctx));
|
||||||
}
|
}
|
||||||
|
|
||||||
/* and drain the event queue */
|
/* and drain the event queue */
|
||||||
evctx.page_flip_handler = NULL;
|
evctx.page_flip_handler = NULL;
|
||||||
drmHandleEvent(drm_fd, &evctx);
|
do_or_die(drmHandleEvent(drm_fd, &evctx));
|
||||||
|
|
||||||
/* Verify we drop no frames, but only if it's not a TV encoder, since
|
/* Verify we drop no frames, but only if it's not a TV encoder, since
|
||||||
* those use some funny fake timings behind userspace's back. */
|
* those use some funny fake timings behind userspace's back. */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user