[Glamor] [PATCH V3 0/3] Modify the gradient picture rendering to use shader

junyan.he at linux.intel.com junyan.he at linux.intel.com
Thu Mar 22 13:05:40 PDT 2012


From: Junyan He <junyan.he at linux.intel.com>

 For gradient picture render in glamor, the source gradient
 pixmaps now are generated by pixman. we will replace them
 with shader. This will avoid the CPU time of generating the
 pixmaps and save the time to upload it to GPU after generated.
 The result on my IVB is:


using pixman:
 $ ./cairo/perf/cairo-perf-trace -i 5 ./cairo-trace/benchmark/firefox-planet-gnome.trace
 [ # ]  backend                         test   min(s) median(s) stddev. count
 [  0]     xlib         firefox-planet-gnome   10.748   10.837   0.49%    4/5 


using shader:
 $ ./cairo/perf/cairo-perf-trace -i 5 ./cairo-trace/benchmark/firefox-planet-gnome.trace
 [ # ]  backend                         test   min(s) median(s) stddev. count
 [  0]     xlib         firefox-planet-gnome    9.485    9.515   0.18%    4/5 


---
 src/glamor.c             |    2 +
 src/glamor_gl_dispatch.c |    4 +-
 src/glamor_gl_dispatch.h |   15 ++-
 src/glamor_priv.h        |   13 ++
 src/glamor_render.c      |   22 ++++
 src/glamor_utils.h       |  301 ++++++++++++++++++++++++++++++++++++++++++++++
 6 files changed, 350 insertions(+), 7 deletions(-)



More information about the Glamor mailing list