From: Marek Olšák Date: Sun, 1 Sep 2013 21:00:28 +0000 (+0200) Subject: radeon: don't emit streamout state if there are no streamout buffers X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4ea35023c5a911fee5eebe8e4c4b7200cf665d9b;p=mesa.git radeon: don't emit streamout state if there are no streamout buffers This could happen if set_stream_output_targets is called twice in a row without a draw call in between. Reviewed-by: Michel Dänzer --- diff --git a/src/gallium/drivers/radeon/r600_streamout.c b/src/gallium/drivers/radeon/r600_streamout.c index 313d7378c89..18f7d8883b5 100644 --- a/src/gallium/drivers/radeon/r600_streamout.c +++ b/src/gallium/drivers/radeon/r600_streamout.c @@ -137,6 +137,8 @@ void r600_set_streamout_targets(struct pipe_context *ctx, if (num_targets) { r600_streamout_buffers_dirty(rctx); + } else { + rctx->streamout.begin_atom.dirty = false; } }