xf86-video-modesetting: src/driver.c

Dave Airlie airlied at kemper.freedesktop.org
Mon Feb 20 03:09:24 PST 2012


 src/driver.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 230970fd5ab80a30dd9c79bccc3328463250fb9f
Author: Dave Airlie <airlied at redhat.com>
Date:   Mon Feb 20 11:08:40 2012 +0000

    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 at redhat.com>

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);


More information about the xorg-commit mailing list