[PATCH xf86-video-amdgpu 05/12] Remove amdgpu_scanout_flip_handler

Michel Dänzer michel at daenzer.net
Fri Mar 18 10:01:30 UTC 2016


From: Michel Dänzer <michel.daenzer at amd.com>

No longer necessary now that amdgpu_drm_queue_handler can handle
e->handler == NULL.

(Ported from radeon commit d5dbb07db22d5420c81dfebc060f0dd86e7b8a20)

Signed-off-by: Michel Dänzer <michel.daenzer at amd.com>
---
 src/amdgpu_kms.c | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)

diff --git a/src/amdgpu_kms.c b/src/amdgpu_kms.c
index 7bbef32..e6e3d5f 100644
--- a/src/amdgpu_kms.c
+++ b/src/amdgpu_kms.c
@@ -396,12 +396,6 @@ amdgpu_scanout_flip_abort(ScrnInfoPtr scrn, void *event_data)
 }
 
 static void
-amdgpu_scanout_flip_handler(ScrnInfoPtr scrn, uint32_t frame, uint64_t usec, void *event_data)
-{
-	amdgpu_scanout_flip_abort(scrn, event_data);
-}
-
-static void
 amdgpu_scanout_flip(ScreenPtr pScreen, AMDGPUInfoPtr info,
 					xf86CrtcPtr xf86_crtc)
 {
@@ -421,8 +415,7 @@ amdgpu_scanout_flip(ScreenPtr pScreen, AMDGPUInfoPtr info,
 	scrn = xf86_crtc->scrn;
 	drm_queue_entry = amdgpu_drm_queue_alloc(scrn, AMDGPU_DRM_QUEUE_CLIENT_DEFAULT,
 						 AMDGPU_DRM_QUEUE_ID_DEFAULT,
-						 drmmode_crtc,
-						 amdgpu_scanout_flip_handler,
+						 drmmode_crtc, NULL,
 						 amdgpu_scanout_flip_abort);
 	if (!drm_queue_entry) {
 		xf86DrvMsg(scrn->scrnIndex, X_WARNING,
-- 
2.7.0



More information about the xorg-driver-ati mailing list