From b118a52cd1a006321571967bd5f6c2a9e674de3a Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Mon, 30 Nov 2009 11:03:32 +0000 Subject: i915: Remove routing of alpha channel to green. This modification is redundant since the routing is done in the blend unit anyway. Signed-off-by: Chris Wilson --- src/i915_render.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/i915_render.c b/src/i915_render.c index 438edccd..0a260f30 100644 --- a/src/i915_render.c +++ b/src/i915_render.c @@ -382,12 +382,6 @@ i915_prepare_composite(int op, PicturePtr source_picture, PICT_a8r8g8b8, &intel->render_source_solid)) return FALSE; - - /* route alpha to the green channel when using a8 targets */ - if (dest_picture->format == PICT_a8) { - intel->render_source_solid >>= 24; - intel->render_source_solid *= 0x01010101; - } } else if (!intel_check_pitch_3d(source)) return FALSE; @@ -405,12 +399,6 @@ i915_prepare_composite(int op, PicturePtr source_picture, PICT_a8r8g8b8, &intel->render_mask_solid)) return FALSE; - - /* route alpha to the green channel when using a8 targets */ - if (dest_picture->format == PICT_a8) { - intel->render_mask_solid >>= 24; - intel->render_mask_solid *= 0x01010101; - } } else if (!intel_check_pitch_3d(mask)) return FALSE; } -- cgit v1.2.3