summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Olšák <marek.olsak@amd.com>2013-09-01 23:00:28 +0200
committerMarek Olšák <marek.olsak@amd.com>2013-09-13 01:04:44 +0200
commit4ea35023c5a911fee5eebe8e4c4b7200cf665d9b (patch)
tree3692d9a288d6c7bd0f8d182f97ebcf87fa5c1279
parent60416cb17368ecf8bf6323466384ad6c12c7e31b (diff)
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 <michel.daenzer@amd.com>
-rw-r--r--src/gallium/drivers/radeon/r600_streamout.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeon/r600_streamout.c b/src/gallium/drivers/radeon/r600_streamout.c
index 313d7378c8..18f7d8883b 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;
}
}