xf86-video-intel: src/drmmode_display.c

Jesse Barnes jbarnes at kemper.freedesktop.org
Wed Feb 10 11:25:43 PST 2010


 src/drmmode_display.c |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit f0d760bfd71e2b2b40d2b250cd84b4626492ba47
Author: Jesse Barnes <jbarnes at virtuousgeek.org>
Date:   Wed Feb 10 11:24:46 2010 -0800

    Disable bo reuse on shadow framebuffer
    
    This keeps us from trying to set tiling on it while pinned, which also
    keeps us from trying to unpin it in the kernel, causing an error.
    
    Signed-off-by: Jesse Barnes <jbarnes at virtuousgeek.org>

diff --git a/src/drmmode_display.c b/src/drmmode_display.c
index 8ebf05e..70e1410 100644
--- a/src/drmmode_display.c
+++ b/src/drmmode_display.c
@@ -489,6 +489,8 @@ drmmode_crtc_shadow_allocate(xf86CrtcPtr crtc, int width, int height)
 		return NULL;
 	}
 
+	drm_intel_bo_disable_reuse(drmmode_crtc->rotate_bo);
+
 	ret = drmModeAddFB(drmmode->fd, width, height, crtc->scrn->depth,
 			   crtc->scrn->bitsPerPixel, rotate_pitch,
 			   drmmode_crtc->rotate_bo->handle,


More information about the xorg-commit mailing list