From: Bas Nieuwenhuizen Date: Thu, 8 Aug 2019 00:28:12 +0000 (+0200) Subject: radv: Avoid VEGA/RAVEN scissor bug in binning. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=23a9d20997517dfff7f35e3a6c2b954564f0f6c4;p=mesa.git radv: Avoid VEGA/RAVEN scissor bug in binning. CC: Reviewed-by: Dave Airlie --- diff --git a/src/amd/vulkan/radv_pipeline.c b/src/amd/vulkan/radv_pipeline.c index e82c9b3cc50..885805d6c12 100644 --- a/src/amd/vulkan/radv_pipeline.c +++ b/src/amd/vulkan/radv_pipeline.c @@ -3177,7 +3177,8 @@ radv_pipeline_generate_binning_state(struct radeon_cmdbuf *ctx_cs, persistent_states_per_bin = 1; fpovs_per_batch = 63; } else { - context_states_per_bin = 6; + /* The context states are affected by the scissor bug. */ + context_states_per_bin = pipeline->device->physical_device->has_scissor_bug ? 1 : 6; /* 32 causes hangs for RAVEN. */ persistent_states_per_bin = 16; fpovs_per_batch = 63;