diff options
author | Marek Olšák <[email protected]> | 2013-09-01 23:00:28 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2013-09-13 01:04:44 +0200 |
commit | 4ea35023c5a911fee5eebe8e4c4b7200cf665d9b (patch) | |
tree | 3692d9a288d6c7bd0f8d182f97ebcf87fa5c1279 /src/gallium/drivers | |
parent | 60416cb17368ecf8bf6323466384ad6c12c7e31b (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 <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | 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 313d7378c89..18f7d8883b5 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; } } |