From: Marek Olšák Date: Fri, 1 Jun 2018 04:21:49 +0000 (-0400) Subject: radeonsi/gfx9: set POPS_DRAIN_PS_ON_OVERLAP due to a hw bug X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=47b780be21d917eaa6a6a6c9e30ba9fba52d9acd;p=mesa.git radeonsi/gfx9: set POPS_DRAIN_PS_ON_OVERLAP due to a hw bug This may not be needed yet, but let's set it now. Tested-by: Dieter Nützel --- diff --git a/src/gallium/drivers/radeonsi/si_state_binning.c b/src/gallium/drivers/radeonsi/si_state_binning.c index 91e616907ea..6877cc0a62d 100644 --- a/src/gallium/drivers/radeonsi/si_state_binning.c +++ b/src/gallium/drivers/radeonsi/si_state_binning.c @@ -316,7 +316,8 @@ static void si_emit_dpbb_disable(struct si_context *sctx) S_028C44_DISABLE_START_OF_PRIM(1)); radeon_opt_set_context_reg(sctx, R_028060_DB_DFSM_CONTROL, SI_TRACKED_DB_DFSM_CONTROL, - S_028060_PUNCHOUT_MODE(V_028060_FORCE_OFF)); + S_028060_PUNCHOUT_MODE(V_028060_FORCE_OFF) | + S_028060_POPS_DRAIN_PS_ON_OVERLAP(1)); } void si_emit_dpbb_state(struct si_context *sctx) @@ -436,5 +437,6 @@ void si_emit_dpbb_state(struct si_context *sctx) S_028C44_OPTIMAL_BIN_SELECTION(1)); radeon_opt_set_context_reg(sctx, R_028060_DB_DFSM_CONTROL, SI_TRACKED_DB_DFSM_CONTROL, - S_028060_PUNCHOUT_MODE(punchout_mode)); + S_028060_PUNCHOUT_MODE(punchout_mode) | + S_028060_POPS_DRAIN_PS_ON_OVERLAP(1)); }