[Intel-gfx] [PATCH] drm/i915:fix the bug that testdisplay can't work with 32 bits depth (bug # 40011)

Hai Lan hai.lan at intel.com
Sun Aug 14 05:22:14 CEST 2011


Signed-off-by: Hai Lan <hai.lan at intel.com>
---
 drivers/gpu/drm/i915/intel_display.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
index 35364e6..f743085 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -2056,6 +2056,8 @@ static int ironlake_update_plane(struct drm_crtc *crtc,
 	case 32:
 		if (fb->depth == 24)
 			dspcntr |= DISPPLANE_32BPP_NO_ALPHA;
+		else if (fb->depth == 32)
+			dspcntr |= DISPPLANE_32BPP_NO_ALPHA;
 		else if (fb->depth == 30)
 			dspcntr |= DISPPLANE_32BPP_30BIT_NO_ALPHA;
 		else
-- 
1.7.0.1




More information about the Intel-gfx mailing list