From 66ecc3eac8213dc8402e8dc645117f84f530181f Mon Sep 17 00:00:00 2001 From: Bas Nieuwenhuizen Date: Thu, 8 Aug 2019 02:05:45 +0200 Subject: [PATCH] radv: Fix off by one for S_028C48_MAX_ALLOC_COUNT. Reviewed-by: Dave Airlie --- src/amd/vulkan/si_cmd_buffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); -- 2.30.2