From: Bas Nieuwenhuizen Date: Thu, 8 Aug 2019 00:05:45 +0000 (+0200) Subject: radv: Fix off by one for S_028C48_MAX_ALLOC_COUNT. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=66ecc3eac8213dc8402e8dc645117f84f530181f;p=mesa.git radv: Fix off by one for S_028C48_MAX_ALLOC_COUNT. Reviewed-by: Dave Airlie --- diff --git a/src/amd/vulkan/si_cmd_buffer.c b/src/amd/vulkan/si_cmd_buffer.c index d48ed804e63..701b2398b50 100644 --- a/src/amd/vulkan/si_cmd_buffer.c +++ b/src/amd/vulkan/si_cmd_buffer.c @@ -454,7 +454,7 @@ si_emit_graphics(struct radv_physical_device *physical_device, } radeon_set_context_reg(cs, 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)); radeon_set_context_reg(cs, R_028C4C_PA_SC_CONSERVATIVE_RASTERIZATION_CNTL, S_028C4C_NULL_SQUAD_AA_MASK_ENABLE(1));