mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-25 03:40:23 +01:00
radeonsi: use an indirect buffer for init_config
Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Acked-by: Christian König <christian.koenig@amd.com>
This commit is contained in:
parent
df12ddb55d
commit
2d8f7d3c15
2 changed files with 3 additions and 0 deletions
|
|
@ -3392,5 +3392,6 @@ static void si_init_config(struct si_context *sctx)
|
|||
si_pm4_add_bo(pm4, sctx->border_color_buffer, RADEON_USAGE_READ,
|
||||
RADEON_PRIO_SHADER_DATA);
|
||||
|
||||
si_pm4_upload_indirect_buffer(sctx, pm4);
|
||||
sctx->init_config = pm4;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1087,6 +1087,7 @@ static void si_init_gs_rings(struct si_context *sctx)
|
|||
/* Flush the context to re-emit the init_config state.
|
||||
* This is done only once in a lifetime of a context.
|
||||
*/
|
||||
si_pm4_upload_indirect_buffer(sctx, sctx->init_config);
|
||||
sctx->b.initial_gfx_cs_size = 0; /* force flush */
|
||||
si_context_gfx_flush(sctx, RADEON_FLUSH_ASYNC, NULL);
|
||||
|
||||
|
|
@ -1288,6 +1289,7 @@ static void si_init_tess_factor_ring(struct si_context *sctx)
|
|||
/* Flush the context to re-emit the init_config state.
|
||||
* This is done only once in a lifetime of a context.
|
||||
*/
|
||||
si_pm4_upload_indirect_buffer(sctx, sctx->init_config);
|
||||
sctx->b.initial_gfx_cs_size = 0; /* force flush */
|
||||
si_context_gfx_flush(sctx, RADEON_FLUSH_ASYNC, NULL);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue