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:
parent
6ce05e0b28
commit
8ce312e619
|
@ -1113,6 +1113,9 @@ glamor_composite_rects(CARD8 op,
|
||||||
ValidatePicture(src);
|
ValidatePicture(src);
|
||||||
ValidatePicture(dst);
|
ValidatePicture(dst);
|
||||||
|
|
||||||
|
if (glamor_composite_with_shader(op, src, NULL, dst, nrect, rects))
|
||||||
|
return;
|
||||||
|
|
||||||
n = nrect;
|
n = nrect;
|
||||||
r = rects;
|
r = rects;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user