summaryrefslogtreecommitdiff
path: root/glamor/glamor_core.c
diff options
context:
space:
mode:
authorMarkus Wick <markus@selfnet.de>2014-03-13 11:17:39 +0100
committerEric Anholt <eric@anholt.net>2014-03-17 14:30:58 -0700
commit9999a660135fafe5f1fdf9452e5ca74ffb069dc2 (patch)
tree2429fd65ef8ea72f509477b94972193e846231a7 /glamor/glamor_core.c
parentaa2635b804e7d28322f62d802190bdf0bb799634 (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_core.c')
-rw-r--r--glamor/glamor_core.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/glamor/glamor_core.c b/glamor/glamor_core.c
index 9e07b2b61..6c0b3c834 100644
--- a/glamor/glamor_core.c
+++ b/glamor/glamor_core.c
@@ -289,7 +289,6 @@ glamor_init_finish_access_shaders(ScreenPtr screen)
glUniform1i(sampler_uniform_location, 0);
glUniform1i(glamor_priv->finish_access_revert[0], 0);
glUniform1i(glamor_priv->finish_access_swap_rb[0], 0);
- glUseProgram(0);
glamor_priv->finish_access_revert[1] =
glGetUniformLocation(glamor_priv->finish_access_prog[1], "revert");
@@ -301,7 +300,6 @@ glamor_init_finish_access_shaders(ScreenPtr screen)
glUniform1i(glamor_priv->finish_access_revert[1], 0);
glUniform1i(sampler_uniform_location, 0);
glUniform1i(glamor_priv->finish_access_swap_rb[1], 0);
- glUseProgram(0);
glamor_put_context(glamor_priv);
}