svga: remove disable_shader debug variable
authorBrian Paul <brianp@vmware.com>
Mon, 19 Sep 2016 22:34:17 +0000 (16:34 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 21 Sep 2016 18:23:45 +0000 (12:23 -0600)
Never used, AFAIK.

Reviewed-by: Charmaine Lee <charmainel@vmware.com>
src/gallium/drivers/svga/svga_context.c
src/gallium/drivers/svga/svga_context.h
src/gallium/drivers/svga/svga_pipe_draw.c

index 10085102110a34881e1f680d14d3c66ea79b645d..52fc654cf3e3d6e2d7ddeffe52dbe8f3038c1c85 100644 (file)
@@ -50,7 +50,6 @@
 DEBUG_GET_ONCE_BOOL_OPTION(no_swtnl, "SVGA_NO_SWTNL", FALSE)
 DEBUG_GET_ONCE_BOOL_OPTION(force_swtnl, "SVGA_FORCE_SWTNL", FALSE);
 DEBUG_GET_ONCE_BOOL_OPTION(use_min_mipmap, "SVGA_USE_MIN_MIPMAP", FALSE);
-DEBUG_GET_ONCE_NUM_OPTION(disable_shader, "SVGA_DISABLE_SHADER", ~0);
 DEBUG_GET_ONCE_BOOL_OPTION(no_line_width, "SVGA_NO_LINE_WIDTH", FALSE);
 DEBUG_GET_ONCE_BOOL_OPTION(force_hw_line_stipple, "SVGA_FORCE_HW_LINE_STIPPLE", FALSE);
 
@@ -163,7 +162,6 @@ struct pipe_context *svga_context_create(struct pipe_screen *screen,
    svga->debug.no_swtnl = debug_get_option_no_swtnl();
    svga->debug.force_swtnl = debug_get_option_force_swtnl();
    svga->debug.use_min_mipmap = debug_get_option_use_min_mipmap();
-   svga->debug.disable_shader = debug_get_option_disable_shader();
    svga->debug.no_line_width = debug_get_option_no_line_width();
    svga->debug.force_hw_line_stipple = debug_get_option_force_hw_line_stipple();
 
index cbc4a9c86e95bb041fe06d637b4b6d96c3612cd3..5148372753d9aeae3685da4e82ea530deafcb407 100644 (file)
@@ -441,8 +441,6 @@ struct svga_context
       /* incremented for each shader */
       unsigned shader_id;
 
-      unsigned disable_shader;
-
       boolean no_line_width;
       boolean force_hw_line_stipple;
 
index f9d0f0ff1627beedb0718044e46462d5b7b42cb1..d0ceab3e843b3155c1e249edc53727e37fbe19f2 100644 (file)
@@ -222,12 +222,6 @@ svga_draw_vbo(struct pipe_context *pipe, const struct pipe_draw_info *info)
 
    svga_update_state_retry( svga, SVGA_STATE_NEED_SWTNL );
 
-#ifdef DEBUG
-   if (svga->curr.vs->base.id == svga->debug.disable_shader ||
-       svga->curr.fs->base.id == svga->debug.disable_shader)
-      goto done;
-#endif
-
    if (svga->state.sw.need_swtnl) {
       svga->hud.num_fallbacks++;  /* for SVGA_QUERY_NUM_FALLBACKS */
       if (!needed_swtnl) {