summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2011-11-08 13:51:00 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2011-11-08 18:12:04 +0000
commit9a8d3a9dfff8be65b4ab28312ec49dbca36019e0 (patch)
treed8044d1d7efca4da64381e7de7a00e68f8a4b23e
parent576c5169efd068c364fb7d266fbb6b1dd2ad3f4d (diff)
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 <chris@chris-wilson.co.uk>
-rw-r--r--src/sna/sna_accel.c4
1 files 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)