Build vertex programs using state from a 'state key' struct which is
authorKeith Whitwell <keith@tungstengraphics.com>
Thu, 9 Jun 2005 14:52:08 +0000 (14:52 +0000)
committerKeith Whitwell <keith@tungstengraphics.com>
Thu, 9 Jun 2005 14:52:08 +0000 (14:52 +0000)
commita8534885efb13ec7f071192c1504513cd90d07de
tree48d45cc0a85fd9719d082ddceaff4c553642348b
parent79b7bd18bb27892f6c7f887c37373ca57449a40e
Build vertex programs using state from a 'state key' struct which is
distilled from the current state.

Maintain a list of vertex programs for various different tnl states
indexed by these state keys.

This cuts down the number of vertex programs generated and means that
time spent optimizing vertex programs for execution isn't wasted each
time the state changes.
src/mesa/tnl/t_vp_build.c