[Mesa-dev] [PATCH 6/7] nir: fix missing increments of num_inputs/num_outputs
Rob Clark
robdclark at gmail.com
Fri Nov 6 08:35:24 PST 2015
From: Rob Clark <robclark at freedesktop.org>
Signed-off-by: Rob Clark <robclark at freedesktop.org>
---
src/glsl/nir/nir_lower_clip.c | 2 ++
src/glsl/nir/nir_lower_two_sided_color.c | 2 ++
2 files changed, 4 insertions(+)
diff --git a/src/glsl/nir/nir_lower_clip.c b/src/glsl/nir/nir_lower_clip.c
index 31ccfb2..4a91527 100644
--- a/src/glsl/nir/nir_lower_clip.c
+++ b/src/glsl/nir/nir_lower_clip.c
@@ -55,9 +55,11 @@ create_clipdist_var(nir_shader *shader, unsigned drvloc,
if (output) {
exec_list_push_tail(&shader->outputs, &var->node);
+ shader->num_outputs++;
}
else {
exec_list_push_tail(&shader->inputs, &var->node);
+ shader->num_inputs++;
}
return var;
}
diff --git a/src/glsl/nir/nir_lower_two_sided_color.c b/src/glsl/nir/nir_lower_two_sided_color.c
index db519bf..269e252 100644
--- a/src/glsl/nir/nir_lower_two_sided_color.c
+++ b/src/glsl/nir/nir_lower_two_sided_color.c
@@ -60,6 +60,8 @@ create_input(nir_shader *shader, unsigned drvloc, gl_varying_slot slot)
exec_list_push_tail(&shader->inputs, &var->node);
+ shader->num_inputs++;
+
return var;
}
--
2.5.0
More information about the mesa-dev
mailing list