mirror of
https://github.com/X11Libre/xf86-video-amdgpu.git
synced 2026-03-24 01:24:31 +00:00
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
This commit is contained in:
committed by
Michel Dänzer
parent
67d155e62f
commit
51e17041cb
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user