gallium: avoid redundant tgsi_exec_machine_bind_shader() calls on draw exec path
authorBrian Paul <brian.paul@tungstengraphics.com>
Fri, 12 Sep 2008 17:42:33 +0000 (11:42 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Fri, 12 Sep 2008 17:42:33 +0000 (11:42 -0600)
commit9defef29c59c580da1f6312f737822cd2efc9e28
tree417dff5f93a24193f390a48d3e17529232d81a30
parentbd34b8a4febb7aadec0545250fd8b6b06ad774e8
gallium: avoid redundant tgsi_exec_machine_bind_shader() calls on draw exec path

tgsi_exec_machine_bind_shader() isn't cheap so avoiding unecessary calls
is a big win.
A similar change should be done for softpipe's fragment exec path but
extra care needs to be taken with the texture sampler state/params.
src/gallium/auxiliary/draw/draw_vs_exec.c