summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2010-02-18 14:49:06 -0800
committerEric Anholt <eric@anholt.net>2010-02-18 14:49:06 -0800
commit1d39a1c0437da60de4d7e0dc866490f0f440c896 (patch)
treed3b19ad676ad1747138f14ec96506abda7f24feb
parent3728a20851a8bac05afb0c73c5cfe4f7d61c17cb (diff)
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.
-rw-r--r--glamor/glamor_render.c3
1 files changed, 3 insertions, 0 deletions
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;