From: Dave Airlie Date: Tue, 26 Apr 2016 04:31:24 +0000 (+1000) Subject: tgsi/exec: initialise SysSemanticToIndex array to -1 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f78bcb7638be3c2612fd1ab0371361a8b53104c7;p=mesa.git tgsi/exec: initialise SysSemanticToIndex array to -1 We want to use the SysSemanticToIndex to tell if we've seen the semantics at all. Acked-by: Roland Scheidegger Signed-off-by: Dave Airlie --- diff --git a/src/gallium/auxiliary/tgsi/tgsi_exec.c b/src/gallium/auxiliary/tgsi/tgsi_exec.c index 717ead947e7..806ba72650a 100644 --- a/src/gallium/auxiliary/tgsi/tgsi_exec.c +++ b/src/gallium/auxiliary/tgsi/tgsi_exec.c @@ -898,6 +898,9 @@ tgsi_exec_machine_bind_shader( mach->ImmLimit = 0; mach->NumOutputs = 0; + for (k = 0; k < TGSI_SEMANTIC_COUNT; k++) + mach->SysSemanticToIndex[k] = -1; + if (mach->ShaderType == PIPE_SHADER_GEOMETRY && !mach->UsedGeometryShader) { struct tgsi_exec_vector *inputs;