Lines Matching refs:index
191 sm1_dump_reg(BYTE file, INT index)
198 DUMP("oC%i", index);
204 DUMP("oRast%i", index);
207 DUMP("iconst[%i]", index);
210 DUMP("bconst[%i]", index);
213 DUMP("%c%i", sm1_file_char[file], index);
643 tx_lconstf(struct shader_translator *tx, struct ureg_src *src, INT index)
647 if (index < 0 || index >= tx->num_constf_allowed) {
652 if (tx->lconstf[i].idx == index) {
660 tx_lconsti(struct shader_translator *tx, struct ureg_src *src, INT index)
664 if (index < 0 || index >= tx->num_consti_allowed) {
669 if (tx->lconsti[i].idx == index) {
677 tx_lconstb(struct shader_translator *tx, struct ureg_src *src, INT index)
681 if (index < 0 || index >= tx->num_constb_allowed) {
686 if (tx->lconstb[i].idx == index) {
695 tx_set_lconstf(struct shader_translator *tx, INT index, float f[4])
699 FAILURE_VOID(index < 0 || index >= tx->num_constf_allowed)
702 if (tx->lconstf[n].idx == index)
713 tx->lconstf[n].idx = index;
719 tx_set_lconsti(struct shader_translator *tx, INT index, int i[4])
723 FAILURE_VOID(index < 0 || index >= tx->num_consti_allowed)
726 if (tx->lconsti[n].idx == index)
738 tx->lconsti[n].idx = index;
744 tx_set_lconstb(struct shader_translator *tx, INT index, BOOL b)
748 FAILURE_VOID(index < 0 || index >= tx->num_constb_allowed)
751 if (tx->lconstb[n].idx == index)
763 tx->lconstb[n].idx = index;
988 nine_ureg_dst_register(unsigned file, int index)
990 return ureg_dst(ureg_src_register(file, index));
2059 BYTE index = dcl->usage_idx;
2062 * we match to a TGSI_SEMANTIC_GENERIC with index.
2064 * The index can be anything UINT16 and usage_idx is BYTE,
2069 * POSITION >= 1: 10 * index + 7
2070 * COLOR >= 2: 10 * (index-1) + 8
2072 * TEXCOORD[0..15]: index
2073 * BLENDWEIGHT: 10 * index + 19
2074 * BLENDINDICES: 10 * index + 20
2075 * NORMAL: 10 * index + 21
2076 * TANGENT: 10 * index + 22
2077 * BINORMAL: 10 * index + 23
2078 * TESSFACTOR: 10 * index + 24
2085 if (index == 0) {
2090 sem->Index = 10 * index + 7;
2094 if (index < 2) {
2096 sem->Index = index;
2099 sem->Index = 10 * (index-1) + 8;
2103 assert(index == 0);
2108 assert(index == 0);
2113 assert(index < 16);
2114 if (index < 8 && tc)
2118 sem->Index = index;
2122 sem->Index = 10 * index + 19;
2126 sem->Index = 10 * index + 20;
2130 sem->Index = 10 * index + 21;
2134 sem->Index = 10 * index + 22;
2138 sem->Index = 10 * index + 23;
2142 sem->Index = 10 * index + 24;