r600g: don't disable streamout if it hasn't been started
authorMarek Olšák <maraeo@gmail.com>
Tue, 26 Jun 2012 01:35:25 +0000 (03:35 +0200)
committerMarek Olšák <maraeo@gmail.com>
Tue, 26 Jun 2012 01:37:24 +0000 (03:37 +0200)
src/gallium/drivers/r600/r600_state_common.c

index 00e1bd0cf1247e139dc5e85e970f329a944cc8ed..a2ea42f9c5f07f5452ebd4ee992a94c0bef7fccd 100644 (file)
@@ -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);
        }