summaryrefslogtreecommitdiffstats
path: root/src/glsl/nir/nir.c
diff options
context:
space:
mode:
authorConnor Abbott <[email protected]>2014-08-05 10:54:27 -0700
committerJason Ekstrand <[email protected]>2015-01-15 07:18:58 -0800
commit494790b2a958f964547fb4362929171efffde153 (patch)
tree96681fa76d36cae557b22c70a4f9aa04c7b54a2d /src/glsl/nir/nir.c
parentc2f36cf125f1301760e3653404b60d122bc38102 (diff)
nir: keep track of the number of input, output, and uniform slots
Diffstat (limited to 'src/glsl/nir/nir.c')
-rw-r--r--src/glsl/nir/nir.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/glsl/nir/nir.c b/src/glsl/nir/nir.c
index 27436661d14..be293fb029c 100644
--- a/src/glsl/nir/nir.c
+++ b/src/glsl/nir/nir.c
@@ -49,6 +49,10 @@ nir_shader_create(void *mem_ctx)
exec_list_make_empty(&shader->system_values);
shader->reg_alloc = 0;
+ shader->num_inputs = 0;
+ shader->num_outputs = 0;
+ shader->num_uniforms = 0;
+
return shader;
}