mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
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@amd.com>
This commit is contained in:
parent
60416cb173
commit
4ea35023c5
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue