mesa/st: set reserved storage for params+values to 16

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 <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7990>
This commit is contained in:
Mike Blumenkrantz 2020-12-05 11:42:54 -05:00 committed by Marge Bot
parent 869a6274a8
commit 9d22c438cb

View file

@ -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