Re: [PATCH] igt/drm_read: Abuse read(drm)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/intel-gfx





[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux