[Mesa-dev] [PATCH 02/11] radeon: don't emit streamout state if there are no streamout buffers

Marek Olšák maraeo at gmail.com
Tue Sep 3 06:22:54 PDT 2013


This could happen if set_stream_output_targets is called twice
in a row without a draw call in between.
---
 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 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;
 	}
 }
 
-- 
1.8.1.2



More information about the mesa-dev mailing list