diff options
author | Jesse Barnes <jbarnes@virtuousgeek.org> | 2009-03-31 07:50:10 -0700 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2009-03-31 17:07:37 -0700 |
commit | 10b5014c42dc055d9559ee112cc7a017e887d813 (patch) | |
tree | e26b3678a88184f8126216eebfd1408fe4dbdb12 /src | |
parent | 26cab64654bdf68095412d0aaba157774d1ca16b (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>
(cherry picked from commit 087f72e1f5d7d11b8795ba80a842874f5a9bb01d)
Diffstat (limited to 'src')
-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 e4852560..a276ff7c 100644 --- a/src/drmmode_display.c +++ b/src/drmmode_display.c @@ -372,7 +372,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; } |