From 8ce312e61952e9f2193c28ac6124eff30f3a122c Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Thu, 18 Feb 2010 14:49:06 -0800 Subject: [PATCH] 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. --- glamor/glamor_render.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/glamor/glamor_render.c b/glamor/glamor_render.c index 45c7d9c69..e78886c56 100644 --- a/glamor/glamor_render.c +++ b/glamor/glamor_render.c @@ -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;