[Intel-gfx] [PATCH] igt/drm_read: Abuse read(drm)
Daniel Vetter
daniel at ffwll.ch
Fri Dec 5 06:46:54 PST 2014
On Fri, Dec 05, 2014 at 01:14:40PM +0000, Chris Wilson wrote:
> +static void assert_empty(int fd)
> +{
> + struct pollfd pfd = {fd, POLLIN };
> + igt_assert(poll(&pfd, 1, 0) == 0);
> +}
> +
> +static void generate_event(int fd)
> +{
> + union drm_wait_vblank vbl;
> +
> + /* We assume that pipe 0 is running */
This assumption falls short on gen2/3 with lvds only, and might fall short
if a previous test wreaked havoc. Also dpms tends to foul up kms tests,
too. I think we do need the full-blown modeset dance here unfortunately.
-Daniel
--
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch
More information about the Intel-gfx
mailing list