From f0d760bfd71e2b2b40d2b250cd84b4626492ba47 Mon Sep 17 00:00:00 2001 From: Jesse Barnes Date: Wed, 10 Feb 2010 11:24:46 -0800 Subject: [PATCH] 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 --- src/drmmode_display.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/drmmode_display.c b/src/drmmode_display.c index 8ebf05ec..70e14103 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,