diff options
author | Jesse Barnes <jbarnes@virtuousgeek.org> | 2009-03-31 07:50:10 -0700 |
---|---|---|
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2009-03-31 07:51:35 -0700 |
commit | 087f72e1f5d7d11b8795ba80a842874f5a9bb01d (patch) | |
tree | 09195cf21cb4a4aa54b3c254167dc80a69ec6dac | |
parent | 4f046af760b92c07f59664359453933fb5358e3d (diff) |
Match GTT unmap with map in KMS rotation case
Missed this when the GTT unmap call was added. If we don't do this we
trigger an assertion in libdrm, since the buffer has never been mapped
normally.
Fixes bug #20943.
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
-rw-r--r-- | src/drmmode_display.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drmmode_display.c b/src/drmmode_display.c index 0cbcde76..7b97a646 100644 --- a/src/drmmode_display.c +++ b/src/drmmode_display.c @@ -382,7 +382,7 @@ drmmode_crtc_shadow_destroy(xf86CrtcPtr crtc, PixmapPtr rotate_pixmap, void *dat * unbound. */ drmModeRmFB(drmmode->fd, drmmode_crtc->rotate_fb_id); drmmode_crtc->rotate_fb_id = 0; - drm_intel_bo_unmap(drmmode_crtc->rotate_bo); + drm_intel_gem_bo_unmap_gtt(drmmode_crtc->rotate_bo); dri_bo_unreference(drmmode_crtc->rotate_bo); drmmode_crtc->rotate_bo = NULL; } |