glamor: don't reset the GLSL program
authorMarkus Wick <markus@selfnet.de>
Thu, 13 Mar 2014 10:17:39 +0000 (11:17 +0100)
committerEric Anholt <eric@anholt.net>
Mon, 17 Mar 2014 21:30:58 +0000 (14:30 -0700)
commit9999a660135fafe5f1fdf9452e5ca74ffb069dc2
tree2429fd65ef8ea72f509477b94972193e846231a7
parentaa2635b804e7d28322f62d802190bdf0bb799634
glamor: don't reset the GLSL program

We don't use fixed function rendering, so there is no need to reset
the program at all.  This lets the driver avoid checking for state
changes between draw calls when we rebind the same program.

Improves xephyr x11perf -f8text performance by 6.03062% +/- 1.64928%
(n=20)

Signed-off-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Eric Anholt <eric@anholt.net>
glamor/glamor_copyarea.c
glamor/glamor_core.c
glamor/glamor_fill.c
glamor/glamor_glyphblt.c
glamor/glamor_gradient.c
glamor/glamor_pixmap.c
glamor/glamor_render.c
glamor/glamor_tile.c
glamor/glamor_trapezoid.c
glamor/glamor_xv.c