diff options
author | Jesse Barnes <jbarnes@virtuousgeek.org> | 2010-02-10 11:24:46 -0800 |
---|---|---|
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2010-02-10 11:24:46 -0800 |
commit | f0d760bfd71e2b2b40d2b250cd84b4626492ba47 (patch) | |
tree | 30fcc38582352e7ee5eb4895b3f0e8987038ab9d /src/drmmode_display.c | |
parent | 41784e15d39c29af5a87fe8d0982bd1b0be3562d (diff) |
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@virtuousgeek.org>
Diffstat (limited to 'src/drmmode_display.c')
-rw-r--r-- | src/drmmode_display.c | 2 |
1 files changed, 2 insertions, 0 deletions
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, |