diff options
author | Bas Nieuwenhuizen <[email protected]> | 2019-08-08 02:05:45 +0200 |
---|---|---|
committer | Bas Nieuwenhuizen <[email protected]> | 2019-08-08 14:08:21 +0200 |
commit | 66ecc3eac8213dc8402e8dc645117f84f530181f (patch) | |
tree | 1c64228515c7d0345375db422cbccf8d4f385095 /src/amd/vulkan | |
parent | 207026d29e20223676ea587bb5bdba00b406b354 (diff) |
radv: Fix off by one for S_028C48_MAX_ALLOC_COUNT.
Reviewed-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/amd/vulkan')
-rw-r--r-- | src/amd/vulkan/si_cmd_buffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
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)); |