tests: Bump pageflip wait timeout to 50 ms.

The default is too low for panels that are 30 fps or lower.
Bump the timeout to 50 ms to prevent spurious errors on those
displays.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
This commit is contained in:
Maarten Lankhorst 2016-01-05 15:19:13 +01:00
parent 1d6e5d3197
commit 3c1362f0a6
2 changed files with 2 additions and 2 deletions

View File

@ -75,7 +75,7 @@ static void pipe_crc_free(void)
static void wait_for_pageflip(int fd) static void wait_for_pageflip(int fd)
{ {
drmEventContext evctx = { .version = DRM_EVENT_CONTEXT_VERSION }; drmEventContext evctx = { .version = DRM_EVENT_CONTEXT_VERSION };
struct timeval timeout = { .tv_sec = 0, .tv_usec = 32000 }; struct timeval timeout = { .tv_sec = 0, .tv_usec = 50000 };
fd_set fds; fd_set fds;
int ret; int ret;

View File

@ -220,7 +220,7 @@ static void cleanup_crtc(data_t *data, igt_output_t *output, igt_plane_t *plane)
static void wait_for_pageflip(int fd) static void wait_for_pageflip(int fd)
{ {
drmEventContext evctx = { .version = DRM_EVENT_CONTEXT_VERSION }; drmEventContext evctx = { .version = DRM_EVENT_CONTEXT_VERSION };
struct timeval timeout = { .tv_sec = 0, .tv_usec = 32000 }; struct timeval timeout = { .tv_sec = 0, .tv_usec = 50000 };
fd_set fds; fd_set fds;
int ret; int ret;