r600/sfn: Reduce array limit for scratch usage
authorGert Wollny <gert.wollny@collabora.com>
Wed, 15 Apr 2020 15:00:54 +0000 (17:00 +0200)
committerMarge Bot <eric+marge@anholt.net>
Tue, 21 Apr 2020 15:10:43 +0000 (15:10 +0000)
Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4609>

src/gallium/drivers/r600/sfn/sfn_nir.cpp

index bdecf75..856c386 100644 (file)
@@ -625,7 +625,7 @@ int r600_shader_from_nir(struct r600_context *rctx,
 
    NIR_PASS_V(sel->nir, nir_lower_vars_to_scratch,
               nir_var_function_temp,
-              100,
+              40,
               r600_get_natural_size_align_bytes);
 
    while (optimize && optimize_once(sel->nir));