diff options
author | Dave Airlie <airlied@redhat.com> | 2012-02-20 11:08:40 +0000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2012-02-20 11:08:40 +0000 |
commit | 230970fd5ab80a30dd9c79bccc3328463250fb9f (patch) | |
tree | c786d19b660a6084017dd4a838f8f5361c30b609 | |
parent | 24f2790951dd4b1f1fd138f2087248a005a64e27 (diff) |
modesetting: disable dirty updates for ENOSYS
the kernel can also return ENOSYS for this to say its not used.
Signed-off-by: Dave Airlie <airlied@redhat.com>
-rw-r--r-- | src/driver.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/driver.c b/src/driver.c index 8703b0b..d8bb7b5 100644 --- a/src/driver.c +++ b/src/driver.c @@ -333,7 +333,7 @@ static void dispatch_dirty(ScreenPtr pScreen) /* TODO query connector property to see if this is needed */ ret = drmModeDirtyFB(ms->fd, ms->drmmode.fb_id, clip, num_cliprects); if (ret) { - if (ret == -EINVAL) { + if (ret == -EINVAL || ret == -ENOSYS) { ms->dirty_enabled = FALSE; DamageUnregister(&pScreen->GetScreenPixmap(pScreen)->drawable, ms->damage); DamageDestroy(ms->damage); |