1 From eb94998e81b7fdd29368b548c8241950e74b7d78 Mon Sep 17 00:00:00 2001
2 From: Carl Worth <cworth@cworth.org>
3 Date: Tue, 7 Aug 2007 17:38:32 -0700
4 Subject: [PATCH] Allow i965 compositing to target A8 buffers
6 Without this, software fallbacks were being forced for glyph
7 rendering. This change appears to eliminate the fallbacks,
8 (but slows glyph rendering down overall, presumably due to
9 slow compositing currently in the i965 driver).
11 src/i965_render.c | 9 +--------
12 1 files changed, 1 insertions(+), 8 deletions(-)
14 diff --git a/src/i965_render.c b/src/i965_render.c
15 index 744501a..c528813 100644
16 --- a/src/i965_render.c
17 +++ b/src/i965_render.c
18 @@ -161,16 +161,9 @@ static Bool i965_get_dest_format(PicturePtr pDstPicture, CARD32 *dst_format)
20 *dst_format = BRW_SURFACEFORMAT_B5G5R5X1_UNORM;
22 - /* COLR_BUF_8BIT is special for YUV surfaces. While we may end up being
23 - * able to use it depending on how the hardware implements it, disable it
24 - * for now while we don't know what exactly it does (what channel does it
29 - *dst_format = COLR_BUF_8BIT;
30 + *dst_format = BRW_SURFACEFORMAT_A8_UNORM;
35 *dst_format = BRW_SURFACEFORMAT_B4G4R4A4_UNORM;