freedreno: per-generation OUT_IB packet
[mesa.git] / src / gallium / drivers / freedreno / a2xx / fd2_emit.c
index cc0ed59f3008f1e8ffea6786ceddc4dbf34e9968..4f667ab7d5706a6e612f274a79e10659e7f801d4 100644 (file)
@@ -446,3 +446,17 @@ fd2_emit_setup(struct fd_context *ctx)
        fd_ringbuffer_flush(ring);
        fd_ringmarker_mark(ctx->draw_start);
 }
+
+static void
+fd2_emit_ib(struct fd_ringbuffer *ring, struct fd_ringmarker *start,
+               struct fd_ringmarker *end)
+{
+       __OUT_IB(ring, false, start, end);
+}
+
+void
+fd2_emit_init(struct pipe_context *pctx)
+{
+       struct fd_context *ctx = fd_context(pctx);
+       ctx->emit_ib = fd2_emit_ib;
+}