r600g: suballocate memory for fetch shaders from a large buffer
authorMarek Olšák <maraeo@gmail.com>
Sun, 9 Dec 2012 17:51:31 +0000 (18:51 +0100)
committerMarek Olšák <maraeo@gmail.com>
Wed, 12 Dec 2012 12:12:31 +0000 (13:12 +0100)
commitd225d076a9807083ea065462390981b9514b6cfc
treeae80bb230a75ded9f9cb731718c3bea2319f52c6
parent8df3855eed67302e83e4b181c4fa02183ccc185a
r600g: suballocate memory for fetch shaders from a large buffer

Fetch shaders are usually destroyed at the context destruction by the state
tracker, so we can put them all in a large buffer without wasting memory.

This reduces the number of relocations sent to the kernel a little bit.

Tested-by: Aaron Watry <awatry@gmail.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
src/gallium/drivers/r600/evergreen_state.c
src/gallium/drivers/r600/r600_asm.c
src/gallium/drivers/r600/r600_pipe.c
src/gallium/drivers/r600/r600_pipe.h
src/gallium/drivers/r600/r600_state.c
src/gallium/drivers/r600/r600_state_common.c