From: Pierre-Eric Pelloux-Prayer Date: Fri, 2 Aug 2019 10:03:15 +0000 (+0200) Subject: radeonsi: fix S_028C48_MAX_ALLOC_COUNT value X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=90bded140ecc41a6a100b477006c040de8fb2e65;p=mesa.git radeonsi: fix S_028C48_MAX_ALLOC_COUNT value This field uses "value minus 1" encoding. Reviewed-by: Marek Olšák --- diff --git a/src/gallium/drivers/radeonsi/si_state.c b/src/gallium/drivers/radeonsi/si_state.c index 8087d0a8c66..5cdad024694 100644 --- a/src/gallium/drivers/radeonsi/si_state.c +++ b/src/gallium/drivers/radeonsi/si_state.c @@ -5703,7 +5703,7 @@ static void si_init_config(struct si_context *sctx) } si_pm4_set_reg(pm4, R_028C48_PA_SC_BINNER_CNTL_1, - S_028C48_MAX_ALLOC_COUNT(max_alloc_count) | + S_028C48_MAX_ALLOC_COUNT(max_alloc_count - 1) | S_028C48_MAX_PRIM_PER_BATCH(1023)); si_pm4_set_reg(pm4, R_028C4C_PA_SC_CONSERVATIVE_RASTERIZATION_CNTL, S_028C4C_NULL_SQUAD_AA_MASK_ENABLE(1));