Commit 8ce312e6 authored by Eric Anholt's avatar Eric Anholt Committed by Zhigang Gong

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.
parent 6ce05e0b
...@@ -1113,6 +1113,9 @@ glamor_composite_rects(CARD8 op, ...@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment