From: Marek Olšák Date: Tue, 26 Jun 2012 01:35:25 +0000 (+0200) Subject: r600g: don't disable streamout if it hasn't been started X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cc2cd8b356e137c83600d5e1804fd6162ce687c9;p=mesa.git r600g: don't disable streamout if it hasn't been started --- diff --git a/src/gallium/drivers/r600/r600_state_common.c b/src/gallium/drivers/r600/r600_state_common.c index 00e1bd0cf12..a2ea42f9c5f 100644 --- a/src/gallium/drivers/r600/r600_state_common.c +++ b/src/gallium/drivers/r600/r600_state_common.c @@ -644,7 +644,7 @@ void r600_set_so_targets(struct pipe_context *ctx, unsigned i; /* Stop streamout. */ - if (rctx->num_so_targets) { + if (rctx->num_so_targets && !rctx->streamout_start) { r600_context_streamout_end(rctx); }