mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 07:08:04 +02:00
tgsi: add scanner support for centroid inputs
This commit is contained in:
parent
3322fbaf3b
commit
07a30e3d18
2 changed files with 2 additions and 0 deletions
|
|
@ -147,6 +147,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_centroid[reg] = (ubyte)fulldecl->Declaration.Centroid;
|
||||
info->input_cylindrical_wrap[reg] = (ubyte)fulldecl->Declaration.CylindricalWrap;
|
||||
info->num_inputs++;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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_centroid[PIPE_MAX_SHADER_INPUTS];
|
||||
ubyte input_usage_mask[PIPE_MAX_SHADER_INPUTS];
|
||||
ubyte input_cylindrical_wrap[PIPE_MAX_SHADER_INPUTS];
|
||||
ubyte output_semantic_name[PIPE_MAX_SHADER_OUTPUTS]; /**< TGSI_SEMANTIC_x */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue