gallium/radeon: move unrelated code from dma_emit_wait_idle to need_dma_space
authorMarek Olšák <marek.olsak@amd.com>
Tue, 27 Dec 2016 15:27:21 +0000 (16:27 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Thu, 5 Jan 2017 17:43:24 +0000 (18:43 +0100)
commit3be83364405da8d5b7085512fcd80c0d910dffd9
treec90f0f3616f3553d3af800fde3c676e94418389c
parent973d7cd90aa806d78422584f3a31bad0f9dafcee
gallium/radeon: move unrelated code from dma_emit_wait_idle to need_dma_space

r600_dma_emit_wait_idle is going away in its current form.
The only difference is that the moved code is executed before DMA calls
instead of after them.

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/drivers/radeon/r600_pipe_common.c