summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2011-10-03 16:09:12 +0100
committerDave Airlie <airlied@redhat.com>2011-10-03 16:09:12 +0100
commitcab577dbb308c18929aecab24d1a1801eefcaf30 (patch)
treeb30d5c67db866060a026b5377c392071bd94e970
parent5b8167833eee5c6cab9e01bbcfe27296c6a63157 (diff)
fix fb_id for dirty reportingHEADmaster
-rw-r--r--src/driver.c2
-rw-r--r--src/driver.h1
2 files changed, 1 insertions, 2 deletions
diff --git a/src/driver.c b/src/driver.c
index bde690c..7df587e 100644
--- a/src/driver.c
+++ b/src/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/src/driver.h b/src/driver.h
index 494ca0c..2e51089 100644
--- a/src/driver.h
+++ b/src/driver.h
@@ -46,7 +46,6 @@ typedef struct
typedef struct _modesettingRec
{
int fd;
- unsigned int fb_id;
EntPtr entityPrivate;