From 4ea35023c5a911fee5eebe8e4c4b7200cf665d9b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Sun, 1 Sep 2013 23:00:28 +0200 Subject: [PATCH] radeon: don't emit streamout state if there are no streamout buffers MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- src/gallium/drivers/radeon/r600_streamout.c | 2 ++ 1 file changed, 2 insertions(+) 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; } } -- 2.30.2