From 6f581e3fde7ddc943c04f274e01735beb358b7f9 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Mon, 3 Oct 2011 16:09:12 +0100 Subject: [PATCH] fix fb_id for dirty reporting --- hw/xfree86/drivers/modesetting/driver.c | 2 +- hw/xfree86/drivers/modesetting/driver.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/hw/xfree86/drivers/modesetting/driver.c b/hw/xfree86/drivers/modesetting/driver.c index bde690c7a..7df587e55 100644 --- a/hw/xfree86/drivers/modesetting/driver.c +++ b/hw/xfree86/drivers/modesetting/driver.c @@ -327,7 +327,7 @@ static void dispatch_dirty(ScreenPtr pScreen) } /* TODO query connector property to see if this is needed */ - ret = drmModeDirtyFB(ms->fd, ms->fb_id, clip, num_cliprects); + ret = drmModeDirtyFB(ms->fd, ms->drmmode.fb_id, clip, num_cliprects); if (ret) { if (ret == -EINVAL) { ms->dirty_enabled = FALSE; diff --git a/hw/xfree86/drivers/modesetting/driver.h b/hw/xfree86/drivers/modesetting/driver.h index 494ca0ccf..2e5108939 100644 --- a/hw/xfree86/drivers/modesetting/driver.h +++ b/hw/xfree86/drivers/modesetting/driver.h @@ -46,7 +46,6 @@ typedef struct typedef struct _modesettingRec { int fd; - unsigned int fb_id; EntPtr entityPrivate;