gallium/svga: Fix unnecessary swtnl fallbacks
authorThomas Hellstrom <thellstrom@vmware.com>
Fri, 18 Feb 2011 10:36:34 +0000 (11:36 +0100)
committerThomas Hellstrom <thellstrom@vmware.com>
Fri, 18 Feb 2011 12:25:32 +0000 (13:25 +0100)
When we drop the in_swtnl_draw flag, we must force a rerun of
update_need_swtnl to reset the need_swtnl flag to its correct value outside
of a swtnl vbo draw.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
src/gallium/drivers/svga/svga_swtnl_draw.c

index 05d86e1fb16ca85a351e46283b1f1b8e857d09d1..ad29c1b6425232aa6910627b06f1848c9567b2ae 100644 (file)
@@ -124,6 +124,7 @@ svga_swtnl_draw_vbo(struct svga_context *svga,
 
    /* Now safe to remove the need_swtnl flag in any update_state call */
    svga->state.sw.in_swtnl_draw = FALSE;
+   svga->dirty |= SVGA_NEW_NEED_PIPELINE | SVGA_NEW_NEED_SWVFETCH;
 
    return ret;
 }