From 9e764596163a598a7b0b2082ff79d5cacd9e650c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Fri, 10 Nov 2023 19:27:37 -0500 Subject: [PATCH] radeonsi: execute streamout_begin after cache flushes so that si_emit_streamout_begin can assume that cache flushes have finished. Reviewed-by: Pierre-Eric Pelloux-Prayer Part-of: --- src/gallium/drivers/radeonsi/si_state.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/radeonsi/si_state.h b/src/gallium/drivers/radeonsi/si_state.h index 6f2f146462f..9441459cf2c 100644 --- a/src/gallium/drivers/radeonsi/si_state.h +++ b/src/gallium/drivers/radeonsi/si_state.h @@ -185,8 +185,7 @@ union si_state_atoms { /* This must be first. */ struct si_atom pm4_states[SI_NUM_STATES]; struct si_atom gfx_add_all_to_bo_list; - struct si_atom streamout_begin; - struct si_atom streamout_enable; /* must be after streamout_begin */ + struct si_atom streamout_enable; struct si_atom framebuffer; struct si_atom sample_locations; struct si_atom db_render_state; @@ -210,6 +209,7 @@ union si_state_atoms { struct si_atom vgt_pipeline_state; struct si_atom tess_io_layout; struct si_atom cache_flush; + struct si_atom streamout_begin; /* this must be done after cache_flush */ struct si_atom render_cond; /* this must be after cache_flush */ } s; struct si_atom array[sizeof(struct si_atoms_s) / sizeof(struct si_atom)];