vc4: Move bin command list ending commands to vc4_flush()

This commit is contained in:
Eric Anholt 2014-07-31 11:19:41 -07:00
parent 5e062cb2b4
commit fbaac8407a
2 changed files with 4 additions and 4 deletions

View 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;

View 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,