diff options
author | Markus Wick <markus@selfnet.de> | 2014-03-13 11:17:39 +0100 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2014-03-17 14:30:58 -0700 |
commit | 9999a660135fafe5f1fdf9452e5ca74ffb069dc2 (patch) | |
tree | 2429fd65ef8ea72f509477b94972193e846231a7 /glamor/glamor_xv.c | |
parent | aa2635b804e7d28322f62d802190bdf0bb799634 (diff) |
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>
Diffstat (limited to 'glamor/glamor_xv.c')
-rw-r--r-- | glamor/glamor_xv.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/glamor/glamor_xv.c b/glamor/glamor_xv.c index c0219b03e..17745a4e8 100644 --- a/glamor/glamor_xv.c +++ b/glamor/glamor_xv.c @@ -416,7 +416,6 @@ glamor_display_textured_video(glamor_port_private *port_priv) glDisableVertexAttribArray(GLAMOR_VERTEX_POS); glDisableVertexAttribArray(GLAMOR_VERTEX_SOURCE); - glUseProgram(0); glamor_put_context(glamor_priv); DamageDamageRegion(port_priv->pDraw, &port_priv->clip); } |