Catches the cause of failure in
arb_vertex_buffer_object-mixed-immediate-and-vbo, I've had this class of
failure before, and it probably won't be the last time.
vc4_start_draw(vc4, info->count);
vc4_update_compiled_shaders(vc4, info->mode);
+ uint32_t start_draw_calls_queued = vc4->draw_calls_queued;
vc4_emit_state(pctx);
if ((vc4->dirty & (VC4_DIRTY_VTXBUF |
}
cl_end(&vc4->bcl, bcl);
+ /* No flushes of the job should have happened between when we started
+ * emitting state for our draw and when we just emitted our draw's
+ * primitives.
+ */
+ assert(start_draw_calls_queued == vc4->draw_calls_queued);
+
if (vc4->zsa && vc4->zsa->base.depth.enabled) {
vc4->resolve |= PIPE_CLEAR_DEPTH;
}