Skip to contentSkip to conversation

drm/i915: don't unconditionally enable SPRITE_DEST_KEY on IVB

PATCH In review Jesse Barnes 2 participants 2 messages Feb 7, 2012

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

PATCH 1/1 drm/i915: don't unconditionally enable SPRITE_DEST_KEY on IVB

Now that we have specific color key ioctls, we don't need to set this all the time.

---
 drivers/gpu/drm/i915/intel_sprite.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
drivers/gpu/drm/i915/intel_sprite.c +0 -1
index 2288abf..4636811 100644
@@ -95,7 +95,6 @@ ivb_update_plane(struct drm_plane *plane, struct drm_framebuffer *fb,
 	/* must disable */
 	sprctl |= SPRITE_TRICKLE_FEED_DISABLE;
 	sprctl |= SPRITE_ENABLE;
-	sprctl |= SPRITE_DEST_KEY;
 
 	/* Sizes are 0 based */
 	src_w--;
Signature · 1 line
1.7.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 14 lines · Jesse Barnes

Now that we have specific color key ioctls, we don't need to set this all the time.

---
 drivers/gpu/drm/i915/intel_sprite.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
drivers/gpu/drm/i915/intel_sprite.c +0 -0
index 2288abf..4636811 100644

drivers/gpu/drm/i915/intel_sprite.c ivb_update_plane(struct drm_plane *plane, struct drm_framebuffer *fb, · line 98

Quoted 4 lines
drivers/gpu/drm/i915/intel_sprite.c +0 -1
@@ -95,7 +95,6 @@ ivb_update_plane(struct drm_plane *plane, struct drm_framebuffer *fb,
 	/* must disable */
 	sprctl |= SPRITE_TRICKLE_FEED_DISABLE;
 	sprctl |= SPRITE_ENABLE;
-	sprctl |= SPRITE_DEST_KEY;

Meh, that sucker slipped my review of the original colour key patches where it's been added.

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