mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 18:18:06 +02:00
tgsi: Scan input interpolators, too.
This commit is contained in:
parent
2884c31d94
commit
5f0b49e7a9
2 changed files with 2 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue