From 74e7b442f21db806a296876b84a332d212cef77b Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Wed, 11 Mar 2020 08:57:37 +0100 Subject: [PATCH] radv: tune primitive binning for small chips Based on PAL and RadeonSI. Signed-off-by: Samuel Pitoiset Reviewed-by: Bas Nieuwenhuizen Part-of: --- src/amd/vulkan/radv_pipeline.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/amd/vulkan/radv_pipeline.c b/src/amd/vulkan/radv_pipeline.c index da83aa562bb..7f32e135c63 100644 --- a/src/amd/vulkan/radv_pipeline.c +++ b/src/amd/vulkan/radv_pipeline.c @@ -3477,8 +3477,13 @@ radv_get_binning_settings(const struct radv_physical_device *pdev) { struct radv_binning_settings settings; if (pdev->rad_info.has_dedicated_vram) { - settings.context_states_per_bin = 1; - settings.persistent_states_per_bin = 1; + if (pdev->rad_info.num_render_backends > 4) { + settings.context_states_per_bin = 1; + settings.persistent_states_per_bin = 1; + } else { + settings.context_states_per_bin = 3; + settings.persistent_states_per_bin = 8; + } settings.fpovs_per_batch = 63; } else { /* The context states are affected by the scissor bug. */ -- 2.30.2