mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-23 22:00:13 +01:00
radeonsi: use BREAK_BATCH instead of FLUSH_DFSM when CB_TARGET_MASK changes
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Acked-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
605900d7dd
commit
1f53a3e766
1 changed files with 2 additions and 2 deletions
|
|
@ -102,12 +102,12 @@ static void si_emit_cb_render_state(struct si_context *sctx)
|
||||||
/* GFX9: Flush DFSM when CB_TARGET_MASK changes.
|
/* GFX9: Flush DFSM when CB_TARGET_MASK changes.
|
||||||
* I think we don't have to do anything between IBs.
|
* I think we don't have to do anything between IBs.
|
||||||
*/
|
*/
|
||||||
if (sctx->screen->dfsm_allowed &&
|
if (sctx->screen->dpbb_allowed &&
|
||||||
sctx->last_cb_target_mask != cb_target_mask) {
|
sctx->last_cb_target_mask != cb_target_mask) {
|
||||||
sctx->last_cb_target_mask = cb_target_mask;
|
sctx->last_cb_target_mask = cb_target_mask;
|
||||||
|
|
||||||
radeon_emit(cs, PKT3(PKT3_EVENT_WRITE, 0, 0));
|
radeon_emit(cs, PKT3(PKT3_EVENT_WRITE, 0, 0));
|
||||||
radeon_emit(cs, EVENT_TYPE(V_028A90_FLUSH_DFSM) | EVENT_INDEX(0));
|
radeon_emit(cs, EVENT_TYPE(V_028A90_BREAK_BATCH) | EVENT_INDEX(0));
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned initial_cdw = cs->current.cdw;
|
unsigned initial_cdw = cs->current.cdw;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue