summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2013-03-19 13:49:42 -0600
committerBrian Paul <[email protected]>2013-03-19 15:15:37 -0600
commit460a4444e8a11a33340a979c7e0721f76e63a990 (patch)
treec47a1459e36c74e817195491b0c80be1fcb0d2de /src
parent1670737436adc5eea6af860bff5035b52dc6c303 (diff)
tgsi: fix uninitialized declaration array fields
Fixes a few regressions since the TGSI array changes. Reviewed-by: José Fonseca <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/auxiliary/tgsi/tgsi_build.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/tgsi/tgsi_build.c b/src/gallium/auxiliary/tgsi/tgsi_build.c
index 435d94a2103..509bc5c1241 100644
--- a/src/gallium/auxiliary/tgsi/tgsi_build.c
+++ b/src/gallium/auxiliary/tgsi/tgsi_build.c
@@ -109,6 +109,7 @@ tgsi_default_declaration( void )
declaration.Semantic = 0;
declaration.Invariant = 0;
declaration.Local = 0;
+ declaration.Array = 0;
declaration.Padding = 0;
return declaration;
@@ -327,6 +328,17 @@ tgsi_build_declaration_sampler_view(unsigned texture,
}
+static struct tgsi_declaration_array
+tgsi_default_declaration_array( void )
+{
+ struct tgsi_declaration_array a;
+
+ a.ArrayID = 0;
+ a.Padding = 0;
+
+ return a;
+}
+
struct tgsi_full_declaration
tgsi_default_full_declaration( void )
{
@@ -338,6 +350,7 @@ tgsi_default_full_declaration( void )
full_declaration.Interp = tgsi_default_declaration_interp();
full_declaration.Resource = tgsi_default_declaration_resource();
full_declaration.SamplerView = tgsi_default_declaration_sampler_view();
+ full_declaration.Array = tgsi_default_declaration_array();
return full_declaration;
}