From 9d22c438cba0c54dcca829ae1e17bf5c4b36b43b Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Sat, 5 Dec 2020 11:42:54 -0500 Subject: [PATCH] mesa/st: set reserved storage for params+values to 16 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit zink apparently has a lot of uniform data, and 8x8 isn't enough to avoid realloc fixes mesa/mesa#3930 Fixes: eda37fb2 ("mesa: properly disallow param list reallocation") Reviewed-by: Marek Olšák Part-of: --- src/mesa/state_tracker/st_glsl_to_nir.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/state_tracker/st_glsl_to_nir.cpp b/src/mesa/state_tracker/st_glsl_to_nir.cpp index 60e0603f422..f005bb4346f 100644 --- a/src/mesa/state_tracker/st_glsl_to_nir.cpp +++ b/src/mesa/state_tracker/st_glsl_to_nir.cpp @@ -504,7 +504,7 @@ st_glsl_to_nir_post_opts(struct st_context *st, struct gl_program *prog, * storage is only associated with the original parameter list. * This should be enough for Bitmap and DrawPixels constants. */ - _mesa_reserve_parameter_storage(prog->Parameters, 8, 8); + _mesa_reserve_parameter_storage(prog->Parameters, 16, 16); _mesa_disallow_parameter_storage_realloc(prog->Parameters); /* This has to be done last. Any operation the can cause