summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/draw/draw_vs_varient.c
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2008-06-04 15:49:18 +0100
committerKeith Whitwell <keith@tungstengraphics.com>2008-06-04 15:51:17 +0100
commitb98ac1d47257bf7b2661ae7c1a8904b7bc5d623c (patch)
treec30cf4914f41055d9715f8b909d73ab70a63a80c /src/gallium/auxiliary/draw/draw_vs_varient.c
parent43b92a6424a4d4f4f29b47c35092264c60822f1b (diff)
draw: init vsvg draw pointer
Diffstat (limited to 'src/gallium/auxiliary/draw/draw_vs_varient.c')
-rw-r--r--src/gallium/auxiliary/draw/draw_vs_varient.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/draw/draw_vs_varient.c b/src/gallium/auxiliary/draw/draw_vs_varient.c
index 4a155251b5..3ceca5e849 100644
--- a/src/gallium/auxiliary/draw/draw_vs_varient.c
+++ b/src/gallium/auxiliary/draw/draw_vs_varient.c
@@ -124,6 +124,8 @@ static void PIPE_CDECL vsvg_run_elts( struct draw_vs_varient *varient,
void *output_buffer)
{
struct draw_vs_varient_generic *vsvg = (struct draw_vs_varient_generic *)varient;
+
+ if (0) debug_printf("%s %d \n", __FUNCTION__, count);
/* Want to do this in small batches for cache locality?
*/
@@ -181,7 +183,7 @@ static void PIPE_CDECL vsvg_run_linear( struct draw_vs_varient *varient,
{
struct draw_vs_varient_generic *vsvg = (struct draw_vs_varient_generic *)varient;
- //debug_printf("%s %d %d\n", __FUNCTION__, start, count);
+ if (0) debug_printf("%s %d %d\n", __FUNCTION__, start, count);
vsvg->fetch->run( vsvg->fetch,
@@ -257,6 +259,7 @@ struct draw_vs_varient *draw_vs_varient_generic( struct draw_vertex_shader *vs,
vsvg->base.run_linear = vsvg_run_linear;
vsvg->base.destroy = vsvg_destroy;
+ vsvg->draw = vs->draw;
/* Build free-standing fetch and emit functions: