radeonsi: atomize the scratch buffer state
authorMarek Olšák <marek.olsak@amd.com>
Thu, 26 Jan 2017 01:56:15 +0000 (02:56 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Mon, 30 Jan 2017 16:29:36 +0000 (17:29 +0100)
commit408f9a1584c164076a1bbd8aecde9d305b7e21eb
tree5013a9a8e02389aec3deeba6a509803440902f76
parenta41f2527ae8ae5432b99c88863fbdf2f0b5f04ad
radeonsi: atomize the scratch buffer state

The update frequency is very low.

Difference: Only account for the size when allocating a new one and when
            starting a new IB, and check for NULL. (v3)

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/drivers/radeonsi/si_cp_dma.c
src/gallium/drivers/radeonsi/si_hw_context.c
src/gallium/drivers/radeonsi/si_pipe.h
src/gallium/drivers/radeonsi/si_state.h
src/gallium/drivers/radeonsi/si_state_draw.c
src/gallium/drivers/radeonsi/si_state_shaders.c