Lines Matching refs:slot
215 unsigned slot = stvp->num_outputs++;
217 stvp->result_to_output[attr] = slot;
221 stvp->output_semantic_name[slot] = TGSI_SEMANTIC_POSITION;
222 stvp->output_semantic_index[slot] = 0;
225 stvp->output_semantic_name[slot] = TGSI_SEMANTIC_COLOR;
226 stvp->output_semantic_index[slot] = 0;
229 stvp->output_semantic_name[slot] = TGSI_SEMANTIC_COLOR;
230 stvp->output_semantic_index[slot] = 1;
233 stvp->output_semantic_name[slot] = TGSI_SEMANTIC_BCOLOR;
234 stvp->output_semantic_index[slot] = 0;
237 stvp->output_semantic_name[slot] = TGSI_SEMANTIC_BCOLOR;
238 stvp->output_semantic_index[slot] = 1;
241 stvp->output_semantic_name[slot] = TGSI_SEMANTIC_FOG;
242 stvp->output_semantic_index[slot] = 0;
245 stvp->output_semantic_name[slot] = TGSI_SEMANTIC_PSIZE;
246 stvp->output_semantic_index[slot] = 0;
249 stvp->output_semantic_name[slot] = TGSI_SEMANTIC_CLIPDIST;
250 stvp->output_semantic_index[slot] = 0;
253 stvp->output_semantic_name[slot] = TGSI_SEMANTIC_CLIPDIST;
254 stvp->output_semantic_index[slot] = 1;
260 stvp->output_semantic_name[slot] = TGSI_SEMANTIC_CLIPVERTEX;
261 stvp->output_semantic_index[slot] = 0;
272 stvp->output_semantic_name[slot] = TGSI_SEMANTIC_GENERIC;
273 stvp->output_semantic_index[slot] = attr - VERT_RESULT_TEX0;
279 stvp->output_semantic_name[slot] = TGSI_SEMANTIC_GENERIC;
280 stvp->output_semantic_index[slot] = (FRAG_ATTRIB_VAR0 -
539 const GLuint slot = fs_num_inputs++;
541 inputMapping[attr] = slot;
542 is_centroid[slot] = (stfp->Base.IsCentroid & BITFIELD64_BIT(attr)) != 0;
546 input_semantic_name[slot] = TGSI_SEMANTIC_POSITION;
547 input_semantic_index[slot] = 0;
548 interpMode[slot] = TGSI_INTERPOLATE_LINEAR;
551 input_semantic_name[slot] = TGSI_SEMANTIC_COLOR;
552 input_semantic_index[slot] = 0;
553 interpMode[slot] = st_translate_interp(stfp->Base.InterpQualifier[attr],
557 input_semantic_name[slot] = TGSI_SEMANTIC_COLOR;
558 input_semantic_index[slot] = 1;
559 interpMode[slot] = st_translate_interp(stfp->Base.InterpQualifier[attr],
563 input_semantic_name[slot] = TGSI_SEMANTIC_FOG;
564 input_semantic_index[slot] = 0;
565 interpMode[slot] = TGSI_INTERPOLATE_PERSPECTIVE;
568 input_semantic_name[slot] = TGSI_SEMANTIC_FACE;
569 input_semantic_index[slot] = 0;
570 interpMode[slot] = TGSI_INTERPOLATE_CONSTANT;
573 input_semantic_name[slot] = TGSI_SEMANTIC_CLIPDIST;
574 input_semantic_index[slot] = 0;
575 interpMode[slot] = TGSI_INTERPOLATE_PERSPECTIVE;
578 input_semantic_name[slot] = TGSI_SEMANTIC_CLIPDIST;
579 input_semantic_index[slot] = 1;
580 interpMode[slot] = TGSI_INTERPOLATE_PERSPECTIVE;
612 input_semantic_index[slot] = (attr - FRAG_ATTRIB_TEX0);
613 input_semantic_name[slot] = TGSI_SEMANTIC_GENERIC;
615 interpMode[slot] = TGSI_INTERPOLATE_LINEAR;
617 interpMode[slot] = st_translate_interp(stfp->Base.InterpQualifier[attr],
855 const GLuint slot = gs_num_inputs;
859 inputMapping[attr] = slot;
861 stgp->input_map[slot + gs_array_offset] = vslot - gs_builtin_inputs;
873 slot + gs_array_offset, stgp->input_map[slot + gs_array_offset]);
878 stgp->input_semantic_name[slot] = TGSI_SEMANTIC_PRIMID;
879 stgp->input_semantic_index[slot] = 0;
882 stgp->input_semantic_name[slot] = TGSI_SEMANTIC_POSITION;
883 stgp->input_semantic_index[slot] = 0;
886 stgp->input_semantic_name[slot] = TGSI_SEMANTIC_COLOR;
887 stgp->input_semantic_index[slot] = 0;
890 stgp->input_semantic_name[slot] = TGSI_SEMANTIC_COLOR;
891 stgp->input_semantic_index[slot] = 1;
894 stgp->input_semantic_name[slot] = TGSI_SEMANTIC_FOG;
895 stgp->input_semantic_index[slot] = 0;
898 stgp->input_semantic_name[slot] = TGSI_SEMANTIC_GENERIC;
899 stgp->input_semantic_index[slot] = num_generic++;
904 stgp->input_semantic_name[slot] = TGSI_SEMANTIC_GENERIC;
905 stgp->input_semantic_index[slot] = num_generic++;
923 GLuint slot;
925 slot = gs_num_outputs;
927 outputMapping[attr] = slot;
931 assert(slot == 0);
932 gs_output_semantic_name[slot] = TGSI_SEMANTIC_POSITION;
933 gs_output_semantic_index[slot] = 0;
936 gs_output_semantic_name[slot] = TGSI_SEMANTIC_COLOR;
937 gs_output_semantic_index[slot] = 0;
940 gs_output_semantic_name[slot] = TGSI_SEMANTIC_COLOR;
941 gs_output_semantic_index[slot] = 1;
944 gs_output_semantic_name[slot] = TGSI_SEMANTIC_BCOLOR;
945 gs_output_semantic_index[slot] = 0;
948 gs_output_semantic_name[slot] = TGSI_SEMANTIC_BCOLOR;
949 gs_output_semantic_index[slot] = 1;
952 gs_output_semantic_name[slot] = TGSI_SEMANTIC_FOG;
953 gs_output_semantic_index[slot] = 0;
956 gs_output_semantic_name[slot] = TGSI_SEMANTIC_PSIZE;
957 gs_output_semantic_index[slot] = 0;
971 assert(slot < Elements(gs_output_semantic_name));
973 gs_output_semantic_name[slot] = TGSI_SEMANTIC_GENERIC;
974 gs_output_semantic_index[slot] = num_generic++;
981 /* find max output slot referenced to compute gs_num_outputs */
993 printf("attr -> slot\n");
998 printf("slot sem_name sem_index\n");