summaryrefslogtreecommitdiff
path: root/src/drmmode_display.c
diff options
context:
space:
mode:
authorMichel Dänzer <michel.daenzer@amd.com>2017-08-18 17:24:45 +0900
committerMichel Dänzer <michel@daenzer.net>2017-08-22 18:35:22 +0900
commita2ee5c36c7d4fdcd067fdc1ef424be474f1ad2cb (patch)
treea23f574686ae0b1c5ac5c5b95a765526d126a075 /src/drmmode_display.c
parent828fb44cf953f78bd65d8f391bdabe2b1b3d53ae (diff)
Make amdgpu_scanout_do_update take a PixmapPtr instead of a DrawablePtr
All callers were already passing in a pixmap. This allows simplifying the rotated scanout case slightly. (Ported from radeon commit d822a0f47070374ad0c1a97b559bae27724dc52a) Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'src/drmmode_display.c')
-rw-r--r--src/drmmode_display.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/drmmode_display.c b/src/drmmode_display.c
index edd955e..ad3325b 100644
--- a/src/drmmode_display.c
+++ b/src/drmmode_display.c
@@ -779,7 +779,7 @@ drmmode_crtc_scanout_update(xf86CrtcPtr crtc, DisplayModePtr mode,
*x = *y = 0;
amdgpu_scanout_do_update(crtc, scanout_id,
- &screen->GetWindowPixmap(screen->root)->drawable,
+ screen->GetWindowPixmap(screen->root),
box);
amdgpu_glamor_finish(scrn);
}
@@ -2850,8 +2850,8 @@ Bool amdgpu_do_pageflip(ScrnInfoPtr scrn, ClientPtr client,
goto error;
}
- amdgpu_scanout_do_update(crtc, scanout_id,
- &new_front->drawable, &extents);
+ amdgpu_scanout_do_update(crtc, scanout_id, new_front,
+ &extents);
drmmode_crtc_wait_pending_event(drmmode_crtc, pAMDGPUEnt->fd,
drmmode_crtc->scanout_update_pending);