tgsi: Gather cylindrical wrap info in tgsi_shader_info struct.
authorMichal Krol <michal@vmware.com>
Wed, 3 Feb 2010 14:29:21 +0000 (15:29 +0100)
committerMichal Krol <michal@vmware.com>
Tue, 9 Feb 2010 14:29:46 +0000 (15:29 +0100)
src/gallium/auxiliary/tgsi/tgsi_scan.c
src/gallium/auxiliary/tgsi/tgsi_scan.h

index b9be8dc0a316a22ca00ded7dffafcc7cf4edbf30..232fc537c1d1dcda2575a23776b9268edbe94b8a 100644 (file)
@@ -131,6 +131,7 @@ tgsi_scan_shader(const struct tgsi_token *tokens,
                   info->input_semantic_name[reg] = (ubyte)fulldecl->Semantic.Name;
                   info->input_semantic_index[reg] = (ubyte)fulldecl->Semantic.Index;
                   info->input_interpolate[reg] = (ubyte)fulldecl->Declaration.Interpolate;
+                  info->input_cylindrical_wrap[reg] = (ubyte)fulldecl->Declaration.CylindricalWrap;
                   info->num_inputs++;
                }
                else if (file == TGSI_FILE_OUTPUT) {
index dae5376c24aae63dbebcab6f9d6d2e36adc75ca7..741aa7d5c42a53d5c17dbfccd0cf7df7fa7a2495 100644 (file)
@@ -45,6 +45,7 @@ struct tgsi_shader_info
    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 input_cylindrical_wrap[PIPE_MAX_SHADER_INPUTS];
    ubyte output_semantic_name[PIPE_MAX_SHADER_OUTPUTS]; /**< TGSI_SEMANTIC_x */
    ubyte output_semantic_index[PIPE_MAX_SHADER_OUTPUTS];