svga: move translated vertex declaration types into svga_velems_state
authorBrian Paul <brianp@vmware.com>
Thu, 17 Apr 2014 15:45:25 +0000 (08:45 -0700)
committerBrian Paul <brianp@vmware.com>
Thu, 17 Apr 2014 18:29:32 +0000 (11:29 -0700)
commit52faafa17424a3842f150019a9d76ce626019d9f
tree64d683126f97628cd0bdc13107f3aa677f4ac1a8
parent0f5add19594e8ece38ff899cf8a100d855b6ee5a
svga: move translated vertex declaration types into svga_velems_state

Now only translate the formats once in svga_create_vertex_elements_state().
And rename the array and use the proper SVGA3dDeclType type.

Reviewed-by: Charmaine Lee <charmainel@vmware.com>
src/gallium/drivers/svga/svga_context.h
src/gallium/drivers/svga/svga_pipe_vertex.c
src/gallium/drivers/svga/svga_state_need_swtnl.c
src/gallium/drivers/svga/svga_state_vdecl.c