gallium/radeon: move GFX/DMA flushing from add_to_buffer_list to need_cs_space
authorMarek Olšák <marek.olsak@amd.com>
Sat, 7 Nov 2015 12:31:03 +0000 (13:31 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Fri, 13 Nov 2015 18:54:41 +0000 (19:54 +0100)
commit81d412e02ce7db644774202b175f1f24b1f262c7
tree6842c5b03a88f0d7abbd5a939e80b169584df57c
parentc6012a6650c894e57dba51f8e336f134aad13d61
gallium/radeon: move GFX/DMA flushing from add_to_buffer_list to need_cs_space

need_cs_space isn't invoked so often and is called before all commands too.
This is a lot cleaner. The code in radeon_add_to_buffer_list always seemed
dodgy to me.

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/drivers/r600/r600_hw_context.c
src/gallium/drivers/radeon/r600_cs.h
src/gallium/drivers/radeon/r600_pipe_common.c
src/gallium/drivers/radeonsi/si_hw_context.c