From 408f9a1584c164076a1bbd8aecde9d305b7e21eb Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Thu, 26 Jan 2017 02:56:15 +0100 Subject: radeonsi: atomize the scratch buffer state MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- src/gallium/drivers/radeonsi/si_state.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/gallium/drivers/radeonsi/si_state.h') diff --git a/src/gallium/drivers/radeonsi/si_state.h b/src/gallium/drivers/radeonsi/si_state.h index 19880c5cfdd..6bb067333f3 100644 --- a/src/gallium/drivers/radeonsi/si_state.h +++ b/src/gallium/drivers/radeonsi/si_state.h @@ -152,6 +152,7 @@ union si_state_atoms { struct r600_atom *viewports; struct r600_atom *stencil_ref; struct r600_atom *spi_map; + struct r600_atom *scratch_state; } s; struct r600_atom *array[0]; }; -- cgit v1.2.3