diff options
author | Michel Dänzer <michel.daenzer@amd.com> | 2015-06-01 16:58:00 +0900 |
---|---|---|
committer | Michel Dänzer <michel@daenzer.net> | 2015-06-08 17:03:00 +0900 |
commit | 13a7284e061081a12180b375d66f9b8394cf8753 (patch) | |
tree | 2485b023bf89850c0b47cf36278450b1904a4fb3 /src/amdgpu_kms.c | |
parent | eb7c6958dff5cb8b0aad02d1d5673483dae4e3d4 (diff) |
Add DRM event queue helpers
(Cherry picked from radeon commit b4af8a327ed8420f0ff4ea0f113f4a59406ed4d3)
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'src/amdgpu_kms.c')
-rw-r--r-- | src/amdgpu_kms.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/amdgpu_kms.c b/src/amdgpu_kms.c index 16a7449..71a4aa7 100644 --- a/src/amdgpu_kms.c +++ b/src/amdgpu_kms.c @@ -32,6 +32,7 @@ #include <sys/ioctl.h> /* Driver data structures */ #include "amdgpu_drv.h" +#include "amdgpu_drm_queue.h" #include "amdgpu_glamor.h" #include "amdgpu_probe.h" #include "micmap.h" @@ -529,6 +530,8 @@ Bool AMDGPUPreInit_KMS(ScrnInfoPtr pScrn, int flags) if (!AMDGPUPreInitAccel_KMS(pScrn)) goto fail; + amdgpu_drm_queue_init(); + AMDGPUSetupCapabilities(pScrn); /* don't enable tiling if accel is not enabled */ @@ -696,6 +699,7 @@ static Bool AMDGPUCloseScreen_KMS(CLOSE_SCREEN_ARGS_DECL) "AMDGPUCloseScreen\n"); drmmode_uevent_fini(pScrn, &info->drmmode); + amdgpu_drm_queue_close(pScrn); DeleteCallback(&FlushCallback, amdgpu_flush_callback, pScrn); |