summaryrefslogtreecommitdiffstats
path: root/src/amd
diff options
context:
space:
mode:
authorBas Nieuwenhuizen <[email protected]>2019-08-08 02:28:12 +0200
committerBas Nieuwenhuizen <[email protected]>2019-08-08 14:08:21 +0200
commit23a9d20997517dfff7f35e3a6c2b954564f0f6c4 (patch)
tree8fb00b8e98c8f42184099d5a05954a4bf4394f3d /src/amd
parent4a3f987afda6469f274485e9f8b4ecc2308ad815 (diff)
radv: Avoid VEGA/RAVEN scissor bug in binning.
CC: <[email protected]> Reviewed-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/amd')
-rw-r--r--src/amd/vulkan/radv_pipeline.c3
1 files changed, 2 insertions, 1 deletions
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;