glamor: Use glamor_composite_with_shader once per group of glyphs.

This shaves CPU time in GL setup.  Performance of rgb24text went from
18400/sec to 23500/sec.
This commit is contained in:
Eric Anholt 2010-02-18 14:49:06 -08:00 committed by Zhigang Gong
parent 6ce05e0b28
commit 8ce312e619

View File

@ -1113,6 +1113,9 @@ glamor_composite_rects(CARD8 op,
ValidatePicture(src);
ValidatePicture(dst);
if (glamor_composite_with_shader(op, src, NULL, dst, nrect, rects))
return;
n = nrect;
r = rects;