]> git.cworth.org Git - cworth.org/blobdiff - 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
diff --git a/src/exa/i965/eliminating_glyph_fallbacks/Allow-i965-compositing-to-target-A8-buffers.patch b/src/exa/i965/eliminating_glyph_fallbacks/Allow-i965-compositing-to-target-A8-buffers.patch
new file mode 100644 (file)
index 0000000..4adb159
--- /dev/null
@@ -0,0 +1,38 @@
+From eb94998e81b7fdd29368b548c8241950e74b7d78 Mon Sep 17 00:00:00 2001
+From: Carl Worth <cworth@cworth.org>
+Date: Tue, 7 Aug 2007 17:38:32 -0700
+Subject: [PATCH] Allow i965 compositing to target A8 buffers
+
+Without this, software fallbacks were being forced for glyph
+rendering. This change appears to eliminate the fallbacks,
+(but slows glyph rendering down overall, presumably due to
+slow compositing currently in the i965 driver).
+---
+ src/i965_render.c |    9 +--------
+ 1 files changed, 1 insertions(+), 8 deletions(-)
+
+diff --git a/src/i965_render.c b/src/i965_render.c
+index 744501a..c528813 100644
+--- a/src/i965_render.c
++++ b/src/i965_render.c
+@@ -161,16 +161,9 @@ static Bool i965_get_dest_format(PicturePtr pDstPicture, CARD32 *dst_format)
+     case PICT_x1r5g5b5:
+         *dst_format = BRW_SURFACEFORMAT_B5G5R5X1_UNORM;
+         break;
+-    /* COLR_BUF_8BIT is special for YUV surfaces.  While we may end up being
+-     * able to use it depending on how the hardware implements it, disable it
+-     * for now while we don't know what exactly it does (what channel does it
+-     * read from?
+-     */
+-    /*
+     case PICT_a8:
+-        *dst_format = COLR_BUF_8BIT;
++        *dst_format = BRW_SURFACEFORMAT_A8_UNORM;
+         break;
+-    */
+     case PICT_a4r4g4b4:
+     case PICT_x4r4g4b4:
+       *dst_format = BRW_SURFACEFORMAT_B4G4R4A4_UNORM;
+-- 
+1.5.2.4
+