draw: Don't revalidate pipeline on backend flushes
authorJakob Bornecrantz <wallbraker@gmail.com>
Sun, 5 Dec 2010 20:20:59 +0000 (21:20 +0100)
committerStéphane Marchesin <marcheu@chromium.org>
Thu, 26 Jan 2012 09:38:40 +0000 (01:38 -0800)
Reviewed-by: Stéphane Marchesin <marcheu@chromium.org>
Tested-by: Stéphane Marchesin <marcheu@chromium.org>
src/gallium/auxiliary/draw/draw_pipe.c

index f1b0171f5200ec386b7285c7a7c52e07cd1058ee..d754504f200c398fcd2c24e8f2807ca46d93177d 100644 (file)
@@ -344,5 +344,6 @@ void draw_pipeline_flush( struct draw_context *draw,
                           unsigned flags )
 {
    draw->pipeline.first->flush( draw->pipeline.first, flags );
-   draw->pipeline.first = draw->pipeline.validate;
+   if (!(flags & DRAW_FLUSH_BACKEND))
+      draw->pipeline.first = draw->pipeline.validate;
 }