sna: Don't trim prepare for glyphs_via_mask

If we pass the expected width/height without passing the per-glyph
offset into the preparation function, we make the erroneous mistake of
analysing the glyph cache only for the mask extents and so will miss
glyphs that we need to upload for the operation.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2012-06-15 15:28:31 +01:00
parent 9f66b27114
commit 2b23605efb
1 changed files with 2 additions and 2 deletions

View File

@ -978,13 +978,13 @@ next_image:
ok = sna->render.composite(sna, PictOpAdd,
this_atlas, NULL, mask,
0, 0, 0, 0, 0, 0,
width, height,
0, 0,
&tmp);
} else {
ok = sna->render.composite(sna, PictOpAdd,
sna->render.white_picture, this_atlas, mask,
0, 0, 0, 0, 0, 0,
width, height,
0, 0,
&tmp);
}
if (!ok) {