diff options
author | Daniel Stone <daniels@collabora.com> | 2017-04-07 14:15:26 +0100 |
---|---|---|
committer | Petri Latvala <petri.latvala@intel.com> | 2017-04-07 16:23:18 +0300 |
commit | d7db79d971b8f1bb2177d14718b136789b337d39 (patch) | |
tree | 1a5384cab368dd2e0eb2dff97ce26851a5599eb0 /tests/kms_universal_plane.c | |
parent | 21ab592dcde7cbfa07dcc1e0c7c824a04b8bbd4d (diff) |
tests/kms_*: Use correct DRM context version
DRM_EVENT_CONTEXT_VERSION is the latest context version supported by
whatever version of libdrm is present. igt was blindly asserting it
supported whatever version that may be, even if it actually didn't.
With libdrm 2.4.78, setting a higher context version than 2 will attempt
to call the page_flip_handler2 vfunc if it was non-NULL, which being a
random chunk of stack memory, it might well have been.
Set the version as 2, which should be bumped only with the appropriate
version checks.
Signed-off-by: Daniel Stone <daniels@collabora.com>
Reviewed-by: Petri Latvala <petri.latvala@intel.com>
Diffstat (limited to 'tests/kms_universal_plane.c')
-rw-r--r-- | tests/kms_universal_plane.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/kms_universal_plane.c b/tests/kms_universal_plane.c index 39fa1f1d..5459a9a3 100644 --- a/tests/kms_universal_plane.c +++ b/tests/kms_universal_plane.c @@ -470,7 +470,7 @@ pageflip_test_pipe(data_t *data, enum pipe pipe, igt_output_t *output) pageflip_test_t test = { .data = data }; igt_plane_t *primary; struct timeval timeout = { .tv_sec = 0, .tv_usec = 500 }; - drmEventContext evctx = { .version = DRM_EVENT_CONTEXT_VERSION }; + drmEventContext evctx = { .version = 2 }; fd_set fds; int ret = 0; |