diff options
author | Eric Anholt <eric@anholt.net> | 2009-08-31 10:13:22 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2009-09-01 20:35:19 -0700 |
commit | 60b08eb1fdf287d28ec66b9282513ab35a61aee0 (patch) | |
tree | 0230f446c99b4957f146289c7295e019e0670ed7 /src/mesa/main/api_exec.c | |
parent | a82cd55a5cb1ad617960551560b107edffad1e9a (diff) | |
download | external_mesa3d-60b08eb1fdf287d28ec66b9282513ab35a61aee0.zip external_mesa3d-60b08eb1fdf287d28ec66b9282513ab35a61aee0.tar.gz external_mesa3d-60b08eb1fdf287d28ec66b9282513ab35a61aee0.tar.bz2 |
mesa: Make MultiDrawElements submit multiple primitives at once.
Previously, MultiDrawElements just called DrawElements a bunch of times.
By sending several primitives down the pipeline at once, we avoid a bunch
of validation. On my GL demo, this improves fps by 2.5% (+/- .41%) and
reduces CPU usage by 70.5% (+/- 2.9%) (n=3).
Reviewed by: Ian Romanick <ian.d.romanick@intel.com>
Diffstat (limited to 'src/mesa/main/api_exec.c')
-rw-r--r-- | src/mesa/main/api_exec.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/mesa/main/api_exec.c b/src/mesa/main/api_exec.c index 199550b..cbf4861 100644 --- a/src/mesa/main/api_exec.c +++ b/src/mesa/main/api_exec.c @@ -529,7 +529,6 @@ _mesa_init_exec_table(struct _glapi_table *exec) /* 148. GL_EXT_multi_draw_arrays */ #if _HAVE_FULL_GL SET_MultiDrawArraysEXT(exec, _mesa_MultiDrawArraysEXT); - SET_MultiDrawElementsEXT(exec, _mesa_MultiDrawElementsEXT); #endif /* 173. GL_INGR_blend_func_separate */ |