]> git.cworth.org Git - cworth.org/blob - src/exa/i965/eliminating_glyph_fallbacks/Allow-i965-compositing-to-target-A8-buffers.patch
Add entry on eliminating glyph fallbacks
[cworth.org] / src / exa / i965 / eliminating_glyph_fallbacks / Allow-i965-compositing-to-target-A8-buffers.patch
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
5
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).
10 ---
11  src/i965_render.c |    9 +--------
12  1 files changed, 1 insertions(+), 8 deletions(-)
13
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)
19      case PICT_x1r5g5b5:
20          *dst_format = BRW_SURFACEFORMAT_B5G5R5X1_UNORM;
21          break;
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
25 -     * read from?
26 -     */
27 -    /*
28      case PICT_a8:
29 -        *dst_format = COLR_BUF_8BIT;
30 +        *dst_format = BRW_SURFACEFORMAT_A8_UNORM;
31          break;
32 -    */
33      case PICT_a4r4g4b4:
34      case PICT_x4r4g4b4:
35         *dst_format = BRW_SURFACEFORMAT_B4G4R4A4_UNORM;
36 -- 
37 1.5.2.4
38