summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2018-07-25 14:30:47 +0200
committerSamuel Pitoiset <[email protected]>2018-07-26 08:57:38 +0200
commit6465bf0015662a164b71fd950a883e9723eb2b94 (patch)
treee6e97bb0306c648b14b9a96ac715103cf7cb68bb /src
parentce8e6b970b5bb765630bfffce67545b63542b78a (diff)
nir: remove wrong assertion in print_var_decl()
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 <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/compiler/nir/nir_print.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/compiler/nir/nir_print.c b/src/compiler/nir/nir_print.c
index 93d1c02f23d..7cb16abd146 100644
--- a/src/compiler/nir/nir_print.c
+++ b/src/compiler/nir/nir_print.c
@@ -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++)