nir: remove wrong assertion in print_var_decl()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 25 Jul 2018 12:30:47 +0000 (14:30 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 26 Jul 2018 06:57:38 +0000 (08:57 +0200)
This breaks printing input/output variables with more than
4 components like mat4.

Fixes: 1beef89ad8 ("nir: prepare for bumping up max components to 16")
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/compiler/nir/nir_print.c

index 93d1c02f23d9d38f2d3a0ff38a113add4d29c636..7cb16abd1462fe7bc7e396ad42d829c395a02730 100644 (file)
@@ -491,7 +491,6 @@ print_var_decl(nir_variable *var, print_state *state)
       switch (var->data.mode) {
       case nir_var_shader_in:
       case nir_var_shader_out:
-         assert(num_components <= 4);
          if (num_components < 4 && num_components != 0) {
             const char *xyzw = "xyzw";
             for (int i = 0; i < num_components; i++)