diff options
author | Marek Olšák <[email protected]> | 2013-08-31 00:13:43 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2013-09-13 01:04:44 +0200 |
commit | 9eb3b9dc2bd459af41a277ba8d4661a6d0b5726d (patch) | |
tree | f56aa292a8a60f4a77d778b6785902cbb31be622 /src/gallium/drivers/radeonsi/radeonsi_pm4.c | |
parent | 2b0a54d6ecbd31a41679d089c4e4abf8687f2fdc (diff) |
radeonsi: initialize the first CS like any other
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 <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/radeonsi_pm4.c')
-rw-r--r-- | src/gallium/drivers/radeonsi/radeonsi_pm4.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeonsi/radeonsi_pm4.c b/src/gallium/drivers/radeonsi/radeonsi_pm4.c index 37a199dc96f..eed0c4756d7 100644 --- a/src/gallium/drivers/radeonsi/radeonsi_pm4.c +++ b/src/gallium/drivers/radeonsi/radeonsi_pm4.c @@ -242,6 +242,7 @@ void si_pm4_emit_dirty(struct r600_context *rctx) if (!state || rctx->emitted.array[i] == state) continue; + assert(state != rctx->queued.named.init); si_pm4_emit(rctx, state); rctx->emitted.array[i] = state; } |