summaryrefslogtreecommitdiff
path: root/src/i830_driver.c
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2010-03-02 09:22:43 +0100
committerCarl Worth <cworth@cworth.org>2010-03-04 09:38:37 -0800
commit65267d4bfbf19942beab72858333c6ee3c719223 (patch)
treed5c3c64c6081eb0347cf2ff9786891fb50921d66 /src/i830_driver.c
parent06f147dc04629a8a1534703be570e7f25e41cdd9 (diff)
i830_memory: switch frontbuffer to drm_intel_bo
Yet another user of i830_memory gone for good. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Reviewed-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'src/i830_driver.c')
-rw-r--r--src/i830_driver.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/i830_driver.c b/src/i830_driver.c
index 733f4098..99db7c6e 100644
--- a/src/i830_driver.c
+++ b/src/i830_driver.c
@@ -1199,7 +1199,7 @@ I830ScreenInit(int scrnIndex, ScreenPtr screen, int argc, char **argv)
* set the initial framebuffer pixmap to point at
* it
*/
- scrn->fbOffset = intel->front_buffer->bo->offset;
+ scrn->fbOffset = intel->front_buffer->offset;
DPRINTF(PFX, "assert( if(!fbScreenInit(screen, ...) )\n");
if (!fbScreenInit(screen, NULL,
@@ -1444,7 +1444,7 @@ static Bool I830CloseScreen(int scrnIndex, ScreenPtr screen)
if (intel->front_buffer) {
i830_set_pixmap_bo(screen->GetScreenPixmap(screen), NULL);
drmmode_closefb(scrn);
- i830_free_memory(scrn, intel->front_buffer);
+ drm_intel_bo_unreference(intel->front_buffer);
intel->front_buffer = NULL;
}