draw: init vsvg draw pointer
authorKeith Whitwell <keith@tungstengraphics.com>
Wed, 4 Jun 2008 14:49:18 +0000 (15:49 +0100)
committerKeith Whitwell <keith@tungstengraphics.com>
Wed, 4 Jun 2008 14:51:17 +0000 (15:51 +0100)
src/gallium/auxiliary/draw/draw_vs_sse.c
src/gallium/auxiliary/draw/draw_vs_varient.c

index 0aa0c9a76b8661337a45dff178e63a6bdc0089b2..c3189c707db968cdc4ebf321f9b308724ddd3c72 100644 (file)
@@ -158,8 +158,10 @@ draw_create_vs_sse(struct draw_context *draw,
    tgsi_scan_shader(templ->tokens, &vs->base.info);
 
    vs->base.draw = draw;
-   vs->base.create_varient = draw_vs_varient_aos_sse;
-//   vs->base.create_varient = draw_vs_varient_generic;
+   if (1)
+      vs->base.create_varient = draw_vs_varient_aos_sse;
+   else
+      vs->base.create_varient = draw_vs_varient_generic;
    vs->base.prepare = vs_sse_prepare;
    vs->base.run_linear = vs_sse_run_linear;
    vs->base.delete = vs_sse_delete;
index 4a155251b53c02c075a20569f54c75e1c32c3326..3ceca5e849c2402b152f04face369fc05000806e 100644 (file)
@@ -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: