diff options
author | Marek Olšák <[email protected]> | 2017-01-26 02:56:15 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2017-01-30 17:29:36 +0100 |
commit | 408f9a1584c164076a1bbd8aecde9d305b7e21eb (patch) | |
tree | 5013a9a8e02389aec3deeba6a509803440902f76 /src/gallium/drivers/radeonsi/si_state.h | |
parent | a41f2527ae8ae5432b99c88863fbdf2f0b5f04ad (diff) |
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 <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_state.h')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_state.h | 1 |
1 files changed, 1 insertions, 0 deletions
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]; }; |