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>
This commit is contained in:
parent
c5529d68c5
commit
b0e12e250d
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue