Mesa (master): radeon: don' t emit streamout state if there are no streamout buffers

Marek Olšák mareko at kemper.freedesktop.org
Thu Sep 12 23:22:14 UTC 2013


Module: Mesa
Branch: master
Commit: 4ea35023c5a911fee5eebe8e4c4b7200cf665d9b
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=4ea35023c5a911fee5eebe8e4c4b7200cf665d9b

Author: Marek Olšák <marek.olsak at amd.com>
Date:   Sun Sep  1 23:00:28 2013 +0200

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 at amd.com>

---

 src/gallium/drivers/radeon/r600_streamout.c |    2 ++
 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 313d737..18f7d88 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;
 	}
 }
 




More information about the mesa-commit mailing list