From 460a4444e8a11a33340a979c7e0721f76e63a990 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Tue, 19 Mar 2013 13:49:42 -0600 Subject: tgsi: fix uninitialized declaration array fields MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes a few regressions since the TGSI array changes. Reviewed-by: José Fonseca --- src/gallium/auxiliary/tgsi/tgsi_build.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/gallium/auxiliary') 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; } -- cgit v1.2.3