aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/intel_overlay.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2010-08-12 04:30:58 -0400
committerChris Wilson <chris@chris-wilson.co.uk>2010-09-08 05:23:40 -0400
commit6ba3ddd9838f5e4d6ac7c6dce95648d205e11bff (patch)
tree74f4498fbf3bb4d2f6943912ecbb6b433126b475 /drivers/gpu/drm/i915/intel_overlay.c
parent722506f04dae7c88193dab2fc836ff15070190f0 (diff)
drm/i915/overlay: Missing breaks between case statements for color depth
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_overlay.c')
-rw-r--r--drivers/gpu/drm/i915/intel_overlay.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/intel_overlay.c b/drivers/gpu/drm/i915/intel_overlay.c
index 5ed1783a69a0..4972b5ca1e8f 100644
--- a/drivers/gpu/drm/i915/intel_overlay.c
+++ b/drivers/gpu/drm/i915/intel_overlay.c
@@ -675,10 +675,13 @@ static void update_colorkey(struct intel_overlay *overlay,
675 struct overlay_registers *regs) 675 struct overlay_registers *regs)
676{ 676{
677 u32 key = overlay->color_key; 677 u32 key = overlay->color_key;
678
678 switch (overlay->crtc->base.fb->bits_per_pixel) { 679 switch (overlay->crtc->base.fb->bits_per_pixel) {
679 case 8: 680 case 8:
680 regs->DCLRKV = 0; 681 regs->DCLRKV = 0;
681 regs->DCLRKM = CLK_RGB8I_MASK | DST_KEY_ENABLE; 682 regs->DCLRKM = CLK_RGB8I_MASK | DST_KEY_ENABLE;
683 break;
684
682 case 16: 685 case 16:
683 if (overlay->crtc->base.fb->depth == 15) { 686 if (overlay->crtc->base.fb->depth == 15) {
684 regs->DCLRKV = RGB15_TO_COLORKEY(key); 687 regs->DCLRKV = RGB15_TO_COLORKEY(key);
@@ -687,10 +690,13 @@ static void update_colorkey(struct intel_overlay *overlay,
687 regs->DCLRKV = RGB16_TO_COLORKEY(key); 690 regs->DCLRKV = RGB16_TO_COLORKEY(key);
688 regs->DCLRKM = CLK_RGB16_MASK | DST_KEY_ENABLE; 691 regs->DCLRKM = CLK_RGB16_MASK | DST_KEY_ENABLE;
689 } 692 }
693 break;
694
690 case 24: 695 case 24:
691 case 32: 696 case 32:
692 regs->DCLRKV = key; 697 regs->DCLRKV = key;
693 regs->DCLRKM = CLK_RGB24_MASK | DST_KEY_ENABLE; 698 regs->DCLRKM = CLK_RGB24_MASK | DST_KEY_ENABLE;
699 break;
694 } 700 }
695} 701}
696 702