vc4: Drop the flush at the end of the draw
authorEric Anholt <eric@anholt.net>
Thu, 31 Jul 2014 05:17:56 +0000 (22:17 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 11 Aug 2014 21:45:31 +0000 (14:45 -0700)
Now we actally get multiple draw calls per submit.

src/gallium/drivers/vc4/vc4_draw.c
src/gallium/drivers/vc4/vc4_resource.c

index af5954663795c2ae36c5cdcca2745381c1b95057..3b8a5d9b91e8dbff5c4bc1a3657d9704b46ec773 100644 (file)
@@ -187,8 +187,6 @@ vc4_draw_vbo(struct pipe_context *pctx, const struct pipe_draw_info *info)
         vc4->resolve |= PIPE_CLEAR_COLOR0;
 
         vc4->shader_rec_count++;
-
-        vc4_flush(pctx);
 }
 
 static uint32_t
index 67ddfebf513fe58d051572130940d40700ab672c..9df2aae435bdf7267890792d7ef5dc5d39e8e60c 100644 (file)
@@ -57,6 +57,8 @@ vc4_resource_transfer_map(struct pipe_context *pctx,
         enum pipe_format format = prsc->format;
         char *buf;
 
+        vc4_flush(pctx);
+
         ptrans = util_slab_alloc(&vc4->transfer_pool);
         if (!ptrans)
                 return NULL;