tgsi/exec: initialise SysSemanticToIndex array to -1
authorDave Airlie <airlied@redhat.com>
Tue, 26 Apr 2016 04:31:24 +0000 (14:31 +1000)
committerDave Airlie <airlied@redhat.com>
Tue, 26 Apr 2016 23:00:46 +0000 (09:00 +1000)
We want to use the SysSemanticToIndex to tell if we've seen
the semantics at all.

Acked-by: Roland Scheidegger <sroland@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/auxiliary/tgsi/tgsi_exec.c

index 717ead947e7b9eb34049950aa969001c26e42b44..806ba72650a3248818dfbb3a1b14eb37d5651f9e 100644 (file)
@@ -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;