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@vmware.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
fbea4e177f
commit
f78bcb7638
|
@ -898,6 +898,9 @@ tgsi_exec_machine_bind_shader(
|
||||||
mach->ImmLimit = 0;
|
mach->ImmLimit = 0;
|
||||||
mach->NumOutputs = 0;
|
mach->NumOutputs = 0;
|
||||||
|
|
||||||
|
for (k = 0; k < TGSI_SEMANTIC_COUNT; k++)
|
||||||
|
mach->SysSemanticToIndex[k] = -1;
|
||||||
|
|
||||||
if (mach->ShaderType == PIPE_SHADER_GEOMETRY &&
|
if (mach->ShaderType == PIPE_SHADER_GEOMETRY &&
|
||||||
!mach->UsedGeometryShader) {
|
!mach->UsedGeometryShader) {
|
||||||
struct tgsi_exec_vector *inputs;
|
struct tgsi_exec_vector *inputs;
|
||||||
|
|
Loading…
Reference in New Issue