draw: switch over to draw_pt paths, will remove old code shortly
authorKeith Whitwell <keith@tungstengraphics.com>
Fri, 18 Apr 2008 19:11:16 +0000 (20:11 +0100)
committerKeith Whitwell <keith@tungstengraphics.com>
Fri, 18 Apr 2008 19:11:16 +0000 (20:11 +0100)
src/gallium/auxiliary/draw/draw_context.c
src/gallium/auxiliary/draw/draw_private.h
src/gallium/auxiliary/draw/draw_pt.c

index 4838b68ed17b8405bd37b7501300736b8fd88180..5dc3358bd1da083f58f90d665dc7e197a26a87fa 100644 (file)
@@ -49,8 +49,6 @@ struct draw_context *draw_create( void )
    draw->use_sse = FALSE;
 #endif
 
-   draw->use_pt_shaders = GETENV( "GALLIUM_PT_SHADERS" ) != NULL;
-
    /* create pipeline stages */
    draw->pipeline.wide_line  = draw_wide_line_stage( draw );
    draw->pipeline.wide_point = draw_wide_point_stage( draw );
index da94e69781140a4432e1633c8a59702bd4b9bb9e..18ce6c0ec59fcdd7d3091ea801f026ce04e2852e 100644 (file)
@@ -258,7 +258,6 @@ struct draw_context
    boolean line_stipple;       /**< do line stipple? */
    boolean point_sprite;       /**< convert points to quads for sprites? */
    boolean use_sse;
-   boolean use_pt_shaders;     /* temporary flag to switch on pt shader paths */
 
    /* If a prim stage introduces new vertex attributes, they'll be stored here
     */
index b48d0cae9fbb929d90160a6e2ab4ac9001b55c7f..941f6efbe48af4ddf734ce85e3e17f5052009fb9 100644 (file)
@@ -68,9 +68,6 @@ draw_pt_arrays(struct draw_context *draw,
 
    if (!draw->rasterizer->bypass_vs) {
       opt |= PT_SHADE;
-
-      if (!draw->use_pt_shaders)
-        return FALSE;
    }