From: Vasily Khoruzhick Date: Wed, 23 Nov 2011 10:27:24 +0000 (+0300) Subject: i915g: don't set alpha to 1 for RGBX and BGRX X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8265bb7fb87184104e3c97dbf480170fb69ff8ad;p=mesa.git i915g: don't set alpha to 1 for RGBX and BGRX This patch fixes regression introduced in 1f3c5eae5c4be582e50c2d4d7950424d86059c45 Signed-off-by: Vasily Khoruzhick Signed-off-by: Daniel Vetter --- diff --git a/src/gallium/drivers/i915/i915_state_static.c b/src/gallium/drivers/i915/i915_state_static.c index 64b842a9f76..f41c32eaeab 100644 --- a/src/gallium/drivers/i915/i915_state_static.c +++ b/src/gallium/drivers/i915/i915_state_static.c @@ -169,8 +169,7 @@ static const struct uint hw_swizzle; } fixup_formats[] = { { PIPE_FORMAT_R8G8B8A8_UNORM, 0x21030000 /* BGRA */}, - { PIPE_FORMAT_B8G8R8X8_UNORM, 0x01250000 /* RGBX */}, - { PIPE_FORMAT_R8G8B8X8_UNORM, 0x21050000 /* BGRX */}, + { PIPE_FORMAT_R8G8B8X8_UNORM, 0x21030000 /* BGRX */}, { PIPE_FORMAT_L8_UNORM, 0x00030000 /* RRRA */}, { PIPE_FORMAT_I8_UNORM, 0x00030000 /* RRRA */}, { PIPE_FORMAT_A8_UNORM, 0x33330000 /* AAAA */},