Fix problems with vertex shaders and the private draw module.
authorBrian <brian.paul@tungstengraphics.com>
Tue, 15 Jan 2008 02:12:46 +0000 (19:12 -0700)
committerBrian <brian.paul@tungstengraphics.com>
Tue, 15 Jan 2008 02:13:34 +0000 (19:13 -0700)
commitac95fee4fffee77bb7bd798d094ed2e3a7c4019b
treedb6569f204ba1414d11c7bf4be8b47dafb7c2b0c
parentb4e4fafb4157d416077e985c03204ed5bbe0f2e1
Fix problems with vertex shaders and the private draw module.

The CSO returned by pipe->create_vs_state() can't be passed to the
private draw module.  That was causing glRasterPos to blow up.
Add a 'draw_shader' field to st_vertex_program for use with the private
draw module.
Change st_context->state.vs type from cso_vertex_shader to st_vertex_program.
src/mesa/state_tracker/st_atom_shader.c
src/mesa/state_tracker/st_cb_clear.c
src/mesa/state_tracker/st_cb_drawpixels.c
src/mesa/state_tracker/st_cb_program.c
src/mesa/state_tracker/st_context.h
src/mesa/state_tracker/st_debug.c
src/mesa/state_tracker/st_draw.c
src/mesa/state_tracker/st_program.c
src/mesa/state_tracker/st_program.h