vc4: Move bin command list ending commands to vc4_flush()
authorEric Anholt <eric@anholt.net>
Thu, 31 Jul 2014 18:19:41 +0000 (11:19 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 11 Aug 2014 21:45:29 +0000 (14:45 -0700)
src/gallium/drivers/vc4/vc4_context.c
src/gallium/drivers/vc4/vc4_draw.c

index c9129e7b457e0e15eee976183ad1ab0b7b100299..c75cea2fcb48ba4ed0a63336b4e2ef7f455ec670 100644 (file)
@@ -92,6 +92,10 @@ vc4_flush(struct pipe_context *pctx)
         if (!vc4->needs_flush)
                 return;
 
+        cl_u8(&vc4->bcl, VC4_PACKET_FLUSH_ALL);
+        cl_u8(&vc4->bcl, VC4_PACKET_NOP);
+        cl_u8(&vc4->bcl, VC4_PACKET_HALT);
+
         struct vc4_surface *csurf = vc4_surface(vc4->framebuffer.cbufs[0]);
         struct vc4_resource *ctex = vc4_resource(csurf->base.texture);
         struct drm_vc4_submit_cl submit;
index 8559bf3b2fe0ba6c77c9fb3e100277452cc0a261..d4382c6a415062713f62d3bdcaee2a76d73b1c21 100644 (file)
@@ -156,10 +156,6 @@ vc4_draw_vbo(struct pipe_context *pctx, const struct pipe_draw_info *info)
                 cl_u32(&vc4->bcl, info->start);
         }
 
-        cl_u8(&vc4->bcl, VC4_PACKET_FLUSH_ALL);
-        cl_u8(&vc4->bcl, VC4_PACKET_NOP);
-        cl_u8(&vc4->bcl, VC4_PACKET_HALT);
-
 // Shader Record
 
         vc4_write_uniforms(vc4, vc4->prog.fs,