diff options
author | Daniel Stone <daniels@collabora.com> | 2017-04-10 17:36:01 +0900 |
---|---|---|
committer | Michel Dänzer <michel.daenzer@amd.com> | 2017-04-10 17:36:01 +0900 |
commit | 51e17041cb89806c934c5cf795207940a6aaccfe (patch) | |
tree | 0c52bfd1021a143eb4ba60858d46e035d19f7fc8 /src/drmmode_display.c | |
parent | 67d155e62f5e09af242b0181527c162576dae02e (diff) |
Set correct DRM event context version
DRM_EVENT_CONTEXT_VERSION is the latest context version supported by
whatever version of libdrm is present. We were blindly asserting we
supported whatever version that may be, even if we actually didn't.
Set the version as 2, which should be bumped only with the appropriate
version checks.
Signed-off-by: Daniel Stone <daniels@collabora.com>
(Ported from xserver commit 0c8e6ed85810e96d84173a52d628863802a78d82)
v2: Remove second paragraph of commit log, we always initialize
page_flip_handler2 = NULL (Emil Velikov)
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com> # v1
Diffstat (limited to 'src/drmmode_display.c')
-rw-r--r-- | src/drmmode_display.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drmmode_display.c b/src/drmmode_display.c index 2cdea90..f58d28f 100644 --- a/src/drmmode_display.c +++ b/src/drmmode_display.c @@ -2362,7 +2362,7 @@ Bool drmmode_pre_init(ScrnInfoPtr pScrn, drmmode_ptr drmmode, int cpp) xf86InitialConfiguration(pScrn, TRUE); - drmmode->event_context.version = DRM_EVENT_CONTEXT_VERSION; + drmmode->event_context.version = 2; drmmode->event_context.vblank_handler = amdgpu_drm_queue_handler; drmmode->event_context.page_flip_handler = amdgpu_drm_queue_handler; |