Ver código fonte

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>
tags/mesa-10.1-devel
Marek Olšák 12 anos atrás
pai
commit
4ea35023c5
1 arquivos alterados com 2 adições e 0 exclusões
  1. 2
    0
      src/gallium/drivers/radeon/r600_streamout.c

+ 2
- 0
src/gallium/drivers/radeon/r600_streamout.c Ver arquivo

@@ -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;
}
}


Carregando…
Cancelar
Salvar