From 9a8d3a9dfff8be65b4ab28312ec49dbca36019e0 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Tue, 8 Nov 2011 13:51:00 +0000 Subject: sna: Avoid the penalty of only writing partial channels with glyphs Yes, writing 3 channels is slower than writing 4. But it's okay we simply ignore the alpha value anyway. Signed-off-by: Chris Wilson --- src/sna/sna_accel.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c index 018f4064..873007df 100644 --- a/src/sna/sna_accel.c +++ b/src/sna/sna_accel.c @@ -6941,7 +6941,7 @@ sna_glyph_blt(DrawablePtr drawable, GCPtr gc, _kgem_set_mode(&sna->kgem, KGEM_BLT); } b = sna->kgem.batch + sna->kgem.nbatch; - b[0] = XY_SETUP_BLT | 1 << 20; + b[0] = XY_SETUP_BLT | 3 << 20; b[1] = bo->pitch; if (sna->kgem.gen >= 40) { if (bo->tiling) @@ -6993,7 +6993,7 @@ sna_glyph_blt(DrawablePtr drawable, GCPtr gc, _kgem_set_mode(&sna->kgem, KGEM_BLT); b = sna->kgem.batch + sna->kgem.nbatch; - b[0] = XY_SETUP_BLT | 1 << 20; + b[0] = XY_SETUP_BLT | 3 << 20; b[1] = bo->pitch; if (sna->kgem.gen >= 40) { if (bo->tiling) -- cgit v1.2.3