Mesa (master): nir: fix printing of var_decl with more than 4 components.

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Jan 9 10:27:40 UTC 2020


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

Author: Daniel Schürmann <daniel at schuermann.dev>
Date:   Wed Jan  8 16:09:10 2020 +0100

nir: fix printing of var_decl with more than 4 components.

Reviewed-By: Timur Kristóf <timur.kristof at gmail.com>
Fixes: a8ec4082a41830cf67a4fd405402fd2d820722fd ('nir+vtn: vec8+vec16 support')
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3320>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3320>

---

 src/compiler/nir/nir_print.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/compiler/nir/nir_print.c b/src/compiler/nir/nir_print.c
index 12d132f7c61..5d81d3424f7 100644
--- a/src/compiler/nir/nir_print.c
+++ b/src/compiler/nir/nir_print.c
@@ -572,7 +572,7 @@ print_var_decl(nir_variable *var, print_state *state)
       unsigned int num_components =
          glsl_get_components(glsl_without_array(var->type));
       const char *components = NULL;
-      char components_local[6] = {'.' /* the rest is 0-filled */};
+      char components_local[18] = {'.' /* the rest is 0-filled */};
       switch (var->data.mode) {
       case nir_var_shader_in:
       case nir_var_shader_out:




More information about the mesa-commit mailing list