diff options
author | Dave Airlie <[email protected]> | 2016-04-26 14:31:24 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2016-04-27 09:00:46 +1000 |
commit | f78bcb7638be3c2612fd1ab0371361a8b53104c7 (patch) | |
tree | 6a64401eb2baaff81fd4c37b169afc5340e2c7e6 | |
parent | fbea4e177f12cd8655a26711af7e61c784bfa267 (diff) |
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 <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
-rw-r--r-- | src/gallium/auxiliary/tgsi/tgsi_exec.c | 3 |
1 files changed, 3 insertions, 0 deletions
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; |