tgsi: Scan input interpolators, too.
authorMichal Krol <michal@vmware.com>
Thu, 17 Sep 2009 15:04:35 +0000 (16:04 +0100)
committerMichal Krol <michal@vmware.com>
Thu, 17 Sep 2009 15:06:09 +0000 (16:06 +0100)
src/gallium/auxiliary/tgsi/tgsi_scan.c
src/gallium/auxiliary/tgsi/tgsi_scan.h

index c535788819f99f068effe3606a8ff59aad767348..0db4481a3d024313fabdd7cc5e1f79ff4e8decc4 100644 (file)
@@ -132,6 +132,7 @@ tgsi_scan_shader(const struct tgsi_token *tokens,
                if (file == TGSI_FILE_INPUT) {
                   info->input_semantic_name[reg] = (ubyte)fulldecl->Semantic.SemanticName;
                   info->input_semantic_index[reg] = (ubyte)fulldecl->Semantic.SemanticIndex;
+                  info->input_interpolate[reg] = (ubyte)fulldecl->Declaration.Interpolate;
                   info->num_inputs++;
                }
                else if (file == TGSI_FILE_OUTPUT) {
index 2c1a75bc812e85a0466a51cd2dab7343338b2b54..8a7ee0c7e4f1f1e2e69f159586f45d0a8cd28018 100644 (file)
@@ -45,6 +45,7 @@ struct tgsi_shader_info
    ubyte num_outputs;
    ubyte input_semantic_name[PIPE_MAX_SHADER_INPUTS]; /**< TGSI_SEMANTIC_x */
    ubyte input_semantic_index[PIPE_MAX_SHADER_INPUTS];
+   ubyte input_interpolate[PIPE_MAX_SHADER_INPUTS];
    ubyte output_semantic_name[PIPE_MAX_SHADER_OUTPUTS]; /**< TGSI_SEMANTIC_x */
    ubyte output_semantic_index[PIPE_MAX_SHADER_OUTPUTS];