radv: Avoid binning RAVEN hangs.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Thu, 8 Aug 2019 00:24:58 +0000 (02:24 +0200)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Thu, 8 Aug 2019 12:08:21 +0000 (14:08 +0200)
Mirroring radeonsi.

CC: <mesa-stable@lists.freedesktop.org>
Reviewed-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/radv_pipeline.c

index 86f0dc11089d0656800fdbdf5192a77e53055404..e82c9b3cc50ab58bfcc22cb07191ffe8241486e2 100644 (file)
@@ -3178,7 +3178,8 @@ radv_pipeline_generate_binning_state(struct radeon_cmdbuf *ctx_cs,
                        fpovs_per_batch = 63;
                } else {
                        context_states_per_bin = 6;
-                       persistent_states_per_bin = 32;
+                       /* 32 causes hangs for RAVEN. */
+                       persistent_states_per_bin = 16;
                        fpovs_per_batch = 63;
                }