drm/i915: mask tiled bit when updating IVB sprites
authorJesse Barnes <jbarnes@virtuousgeek.org>
Tue, 26 Jun 2012 20:10:11 +0000 (13:10 -0700)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 27 Jun 2012 15:03:23 +0000 (17:03 +0200)
Or going from tiled to untiled may break.

Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_sprite.c

index 9d7777bc15459abff49fc037c70f254db63a995b..64174c507dd9b65d90c3e61d58a9b246378b2f49 100644 (file)
@@ -56,6 +56,7 @@ ivb_update_plane(struct drm_plane *plane, struct drm_framebuffer *fb,
        sprctl &= ~SPRITE_PIXFORMAT_MASK;
        sprctl &= ~SPRITE_RGB_ORDER_RGBX;
        sprctl &= ~SPRITE_YUV_BYTE_ORDER_MASK;
+       sprctl &= ~SPRITE_TILED;
 
        switch (fb->pixel_format) {
        case DRM_FORMAT_XBGR8888: