drm/i915: mask tiled bit when updating IVB sprites
Subsystems (2)
PATCH 1/2 drm/i915: mask tiled bit when updating IVB sprites
Or going from tiled to untiled may break.
Signed-off-by Jesse Barnes <[email protected]>
--- drivers/gpu/drm/i915/intel_sprite.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/i915/intel_sprite.c +1 -0
@@ -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 :
Signature · 1 line
1.7.9.5
PATCH 2/2 drm/i915: correct IVB default sprite format
We shouldn't hit this path anyway, but make it use the IVB sprite format definition to avoid confusion.
Signed-off-by Jesse Barnes <[email protected]>
--- drivers/gpu/drm/i915/intel_sprite.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/i915/intel_sprite.c +1 -1
@@ -85,7 +85,7 @@ ivb_update_plane(struct drm_plane *plane, struct drm_framebuffer *fb,break ;default :DRM_DEBUG_DRIVER ("bad pixel format, assuming RGBX888\n" ); - sprctl |=DVS_FORMAT_RGBX888 ; + sprctl |=SPRITE_FORMAT_RGBX888 ; pixel_size =4 ;break ; }
Signature · 1 line
1.7.9.5
Re: [PATCH 2/2] drm/i915: correct IVB default sprite format
Quoted 4 lines · Jesse Barnes
We shouldn't hit this path anyway, but make it use the IVB sprite format definition to avoid confusion.
Signed-off-by Jesse Barnes <[email protected]>
Both patches queued for -next, thanks.
-Daniel
Signature · 3 lines
Daniel Vetter Mail: [email protected] Mobile: +41 (0)79 365 57 48