From: Jakob Bornecrantz Date: Sun, 5 Dec 2010 20:20:59 +0000 (+0100) Subject: draw: Don't revalidate pipeline on backend flushes X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=eb65ccbc21670d16813b53e0f8d94cb4e037d39c;p=mesa.git draw: Don't revalidate pipeline on backend flushes Reviewed-by: Stéphane Marchesin Tested-by: Stéphane Marchesin --- diff --git a/src/gallium/auxiliary/draw/draw_pipe.c b/src/gallium/auxiliary/draw/draw_pipe.c index f1b0171f520..d754504f200 100644 --- a/src/gallium/auxiliary/draw/draw_pipe.c +++ b/src/gallium/auxiliary/draw/draw_pipe.c @@ -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; }