xa: let ddx handle flush
authorJerome Glisse <jglisse@redhat.com>
Wed, 6 Mar 2013 22:39:29 +0000 (17:39 -0500)
committerRob Clark <robclark@freedesktop.org>
Thu, 25 Jul 2013 17:59:55 +0000 (13:59 -0400)
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
src/gallium/state_trackers/xa/xa_composite.c
src/gallium/state_trackers/xa/xa_context.c

index a6bfa11a2f114d3f77ffd6d356d797bedbcc334f..abe5be241f1b1eb9c3d88087fd76bd5bb60db9fd 100644 (file)
@@ -527,7 +527,6 @@ XA_EXPORT void
 xa_composite_done(struct xa_context *ctx)
 {
     renderer_draw_flush(ctx);
-    xa_context_flush(ctx);
 
     ctx->comp = NULL;
     ctx->has_solid_color = FALSE;
index badd47cd3fc00902ee5a7fc79a1dcb922b9fd828..50ef469ed6d0ce1f28f7b0c840d34e73c665f7cc 100644 (file)
@@ -123,8 +123,6 @@ xa_surface_dma(struct xa_context *ctx,
                           0);
        }
        pipe->transfer_unmap(pipe, transfer);
-       if (to_surface)
-           xa_context_flush(ctx);
     }
     return XA_ERR_NONE;
 }
@@ -248,10 +246,8 @@ XA_EXPORT void
 xa_copy_done(struct xa_context *ctx)
 {
     if (!ctx->simple_copy) {
-          renderer_draw_flush(ctx);
-          xa_context_flush(ctx);
-    } else
-       xa_context_flush(ctx);
+       renderer_draw_flush(ctx);
+    }
 }
 
 static void
@@ -330,8 +326,6 @@ XA_EXPORT void
 xa_solid_done(struct xa_context *ctx)
 {
     renderer_draw_flush(ctx);
-    xa_context_flush(ctx);
-
     ctx->comp = NULL;
     ctx->has_solid_color = FALSE;
     ctx->num_bound_samplers = 0;