From: Pierre-Eric Pelloux-Prayer Date: Fri, 2 Aug 2019 10:05:15 +0000 (+0200) Subject: radeonsi: fix typo in DPBB register field X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6bda9ca062748f61ff0ab57e4d68aae5cf98308a;p=mesa.git radeonsi: fix typo in DPBB register field Also only set FLUSH_ON_BINNING_TRANSITION for GPU families that needs it (matches what si_emit_dpbb_disable is doing). Reviewed-by: Marek Olšák --- diff --git a/src/gallium/drivers/radeonsi/si_state_binning.c b/src/gallium/drivers/radeonsi/si_state_binning.c index ba599e055e2..731950cd605 100644 --- a/src/gallium/drivers/radeonsi/si_state_binning.c +++ b/src/gallium/drivers/radeonsi/si_state_binning.c @@ -589,7 +589,10 @@ void si_emit_dpbb_state(struct si_context *sctx) S_028C44_DISABLE_START_OF_PRIM(disable_start_of_prim) | S_028C44_FPOVS_PER_BATCH(fpovs_per_batch) | S_028C44_OPTIMAL_BIN_SELECTION(1) | - G_028C44_FLUSH_ON_BINNING_TRANSITION(sctx->last_binning_enabled != 1)); + S_028C44_FLUSH_ON_BINNING_TRANSITION((sctx->family == CHIP_VEGA12 || + sctx->family == CHIP_VEGA20 || + sctx->family >= CHIP_RAVEN2) && + sctx->last_binning_enabled != 1)); unsigned db_dfsm_control = sctx->chip_class >= GFX10 ? R_028038_DB_DFSM_CONTROL : R_028060_DB_DFSM_CONTROL;