summaryrefslogtreecommitdiff
path: root/src/drmmode_display.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2010-05-14 16:53:40 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2010-05-14 17:30:23 +0100
commit030d56279bf14d9ddd42d8fdbeaa66ef3f557b4d (patch)
tree28553b1500aa129c6475c2277e1075d1d3e4dbe5 /src/drmmode_display.c
parent5bd022739511104e4978bdfd2f4a1f60b9206723 (diff)
drm: don't overwrite the old intel->front_buffer
It's now handled in the common ExchangeBuffers() path. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/drmmode_display.c')
-rw-r--r--src/drmmode_display.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/drmmode_display.c b/src/drmmode_display.c
index d4cf3677..66a2faf7 100644
--- a/src/drmmode_display.c
+++ b/src/drmmode_display.c
@@ -1323,7 +1323,9 @@ drmmode_xf86crtc_resize (ScrnInfoPtr scrn, int width, int height)
}
Bool
-drmmode_do_pageflip(ScreenPtr screen, dri_bo *new_front, dri_bo *old_front,
+drmmode_do_pageflip(ScreenPtr screen,
+ dri_bo *old_front,
+ dri_bo *new_front,
void *data)
{
ScrnInfoPtr scrn = xf86Screens[screen->myNum];
@@ -1374,7 +1376,6 @@ drmmode_do_pageflip(ScreenPtr screen, dri_bo *new_front, dri_bo *old_front,
dri_bo_pin(new_front, 0);
dri_bo_unpin(new_front);
- intel->front_buffer = new_front;
drmmode->old_fb_id = old_fb_id;
return TRUE;