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>
This commit is contained in:
parent
576c5169ef
commit
9a8d3a9dff
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue