Mesa (master): mesa/st: set reserved storage for params+values to 16

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Dec 8 21:40:08 UTC 2020


Module: Mesa
Branch: master
Commit: 9d22c438cba0c54dcca829ae1e17bf5c4b36b43b
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=9d22c438cba0c54dcca829ae1e17bf5c4b36b43b

Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Date:   Sat Dec  5 11:42:54 2020 -0500

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 at amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7990>

---

 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



More information about the mesa-commit mailing list