Lines Matching refs:semantic
80 * Returns a unique index for a per-patch semantic name and index. The index
84 unsigned si_shader_io_get_unique_index_patch(unsigned semantic)
86 switch (semantic) {
92 if (semantic >= VARYING_SLOT_PATCH0 && semantic < VARYING_SLOT_PATCH0 + 30)
93 return 2 + (semantic - VARYING_SLOT_PATCH0);
95 assert(!"invalid semantic");
101 * Returns a unique index for a semantic name and index. The index must be
105 unsigned si_shader_io_get_unique_index(unsigned semantic, bool is_varying)
107 switch (semantic) {
116 if (semantic >= VARYING_SLOT_VAR0 && semantic <= VARYING_SLOT_VAR31)
117 return 1 + (semantic - VARYING_SLOT_VAR0); /* 1..32 */
122 if (semantic >= VARYING_SLOT_VAR0_16BIT && semantic <= VARYING_SLOT_VAR15_16BIT)
123 return 33 + (semantic - VARYING_SLOT_VAR0_16BIT); /* 33..48 */
154 return 38 + (semantic - VARYING_SLOT_TEX0);
1505 static unsigned si_map_io_driver_location(unsigned semantic)
1507 if ((semantic >= VARYING_SLOT_PATCH0 && semantic < VARYING_SLOT_TESS_MAX) ||
1508 semantic == VARYING_SLOT_TESS_LEVEL_INNER ||
1509 semantic == VARYING_SLOT_TESS_LEVEL_OUTER)
1510 return si_shader_io_get_unique_index_patch(semantic);
1512 return si_shader_io_get_unique_index(semantic, false);
1759 /* The semantic and the base should be the same as in si_shader_info. */
1903 unsigned semantic = sel->info.output_semantic[i];
1904 unsigned offset = vs_output_param_offset[semantic];
1921 shader->info.vs_output_ps_input_cntl[semantic] = ps_input_cntl;