Mesa (master): tgsi/exec: initialise SysSemanticToIndex array to -1

Dave Airlie airlied at kemper.freedesktop.org
Tue Apr 26 23:01:37 UTC 2016


Module: Mesa
Branch: master
Commit: f78bcb7638be3c2612fd1ab0371361a8b53104c7
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=f78bcb7638be3c2612fd1ab0371361a8b53104c7

Author: Dave Airlie <airlied at redhat.com>
Date:   Tue Apr 26 14:31:24 2016 +1000

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 <sroland at vmware.com>
Signed-off-by: Dave Airlie <airlied at redhat.com>

---

 src/gallium/auxiliary/tgsi/tgsi_exec.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/gallium/auxiliary/tgsi/tgsi_exec.c b/src/gallium/auxiliary/tgsi/tgsi_exec.c
index 717ead9..806ba72 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;




More information about the mesa-commit mailing list