Skip to contentSkip to conversation

drm/i915: mask tiled bit when updating IVB sprites

PATCH In review Jesse Barnes 2 participants 3 messages Jun 26, 2012 – Jun 27, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 drm/i915: mask tiled bit when updating IVB sprites

Or going from tiled to untiled may break.

---
 drivers/gpu/drm/i915/intel_sprite.c |    1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/i915/intel_sprite.c +1 -0
index 9d7777b..64174c5 100644
@@ -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
#1 lore raw

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.

---
 drivers/gpu/drm/i915/intel_sprite.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/i915/intel_sprite.c +1 -1
index 64174c5..b041097 100644
@@ -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
#2 lore raw

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.

Both patches queued for -next, thanks.
-Daniel

Signature · 3 lines
Daniel Vetter
Mail: [email protected]
Mobile: +41 (0)79 365 57 48