From 9eb3b9dc2bd459af41a277ba8d4661a6d0b5726d Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Sat, 31 Aug 2013 00:13:43 +0200 Subject: radeonsi: initialize the first CS like any other MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit So that the "init" state is always emitted first and not later in draw_vbo. This fixes streamout where the "init" state, which disables streamout, was emitted in draw_vbo after streamout was enabled. Reviewed-by: Michel Dänzer --- src/gallium/drivers/radeonsi/r600.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/gallium/drivers/radeonsi/r600.h') diff --git a/src/gallium/drivers/radeonsi/r600.h b/src/gallium/drivers/radeonsi/r600.h index a914ce2801c..4b4316971d1 100644 --- a/src/gallium/drivers/radeonsi/r600.h +++ b/src/gallium/drivers/radeonsi/r600.h @@ -74,6 +74,7 @@ struct r600_screen; void si_get_backend_mask(struct r600_context *ctx); void si_context_flush(struct r600_context *ctx, unsigned flags); +void si_begin_new_cs(struct r600_context *ctx); struct r600_query *r600_context_query_create(struct r600_context *ctx, unsigned query_type); void r600_context_query_destroy(struct r600_context *ctx, struct r600_query *query); -- cgit v1.2.3