svga: use switch statement in svga_shader_type()
authorBrian Paul <brianp@vmware.com>
Fri, 28 Jun 2013 14:08:38 +0000 (08:08 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 28 Jun 2013 14:37:59 +0000 (08:37 -0600)
commit74e8a7d1ddafc8dd465795d1fcc85709c5c4c0ba
tree97fe989040f6ef7cf583fd3f195006e56bab76e9
parent24b05ff1581b612ab6dbf4937fa4b644b4e61379
svga: use switch statement in svga_shader_type()

Safer in case the PIPE_SHADER_x tokens get renumbered (as Marek
wanted to do).

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/gallium/drivers/svga/svga_state_constants.c