Mesa (master): draw: Don't revalidate pipeline on backend flushes

Stephane Marchesin marcheu at kemper.freedesktop.org
Thu Jan 26 09:51:45 UTC 2012


Module: Mesa
Branch: master
Commit: eb65ccbc21670d16813b53e0f8d94cb4e037d39c
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=eb65ccbc21670d16813b53e0f8d94cb4e037d39c

Author: Jakob Bornecrantz <wallbraker at gmail.com>
Date:   Sun Dec  5 21:20:59 2010 +0100

draw: Don't revalidate pipeline on backend flushes

Reviewed-by: Stéphane Marchesin <marcheu at chromium.org>
Tested-by: Stéphane Marchesin <marcheu at chromium.org>

---

 src/gallium/auxiliary/draw/draw_pipe.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/gallium/auxiliary/draw/draw_pipe.c b/src/gallium/auxiliary/draw/draw_pipe.c
index f1b0171..d754504 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;
 }




More information about the mesa-commit mailing list