From 4ea35023c5a911fee5eebe8e4c4b7200cf665d9b Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Sun, 1 Sep 2013 23:00:28 +0200 Subject: radeon: don't emit streamout state if there are no streamout buffers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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(+) (limited to 'src/gallium') 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; } } -- cgit v1.2.3