svga: refactor some shader code
authorBrian Paul <brianp@vmware.com>
Sat, 1 Feb 2014 00:23:11 +0000 (17:23 -0700)
committerBrian Paul <brianp@vmware.com>
Mon, 3 Feb 2014 19:40:13 +0000 (12:40 -0700)
commit4686f610b18a04bc6213ccadf7be1176bbda3e34
treef3465d5134ec8c0d4f029f87d894f3ce2d6dff99
parent9bace99d77642f8fbd46b1f0be025ad758f83f5e
svga: refactor some shader code

Put common code in new svga_shader.c file.  Considate separate vertex/
fragment shader ID generation.

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/gallium/drivers/svga/Makefile.sources
src/gallium/drivers/svga/svga_context.c
src/gallium/drivers/svga/svga_context.h
src/gallium/drivers/svga/svga_pipe_fs.c
src/gallium/drivers/svga/svga_pipe_vs.c
src/gallium/drivers/svga/svga_shader.c [new file with mode: 0644]
src/gallium/drivers/svga/svga_shader.h [new file with mode: 0644]
src/gallium/drivers/svga/svga_state_fs.c
src/gallium/drivers/svga/svga_state_vs.c
src/gallium/drivers/svga/svga_tgsi.c
src/gallium/drivers/svga/svga_tgsi.h