Lines Matching refs:decl

65     /* Used to shift output decl. indices when inserting new ones. */
80 struct tgsi_full_declaration decl;
82 decl = tgsi_default_full_declaration();
83 decl.Declaration.File = TGSI_FILE_TEMPORARY;
84 decl.Range.First = decl.Range.Last = reg;
85 ctx->emit_declaration(ctx, &decl);
93 struct tgsi_full_declaration decl;
95 decl = tgsi_default_full_declaration();
96 decl.Declaration.File = TGSI_FILE_OUTPUT;
97 decl.Declaration.Interpolate = 1;
98 decl.Declaration.Semantic = TRUE;
99 decl.Semantic.Name = name;
100 decl.Semantic.Index = index;
101 decl.Range.First = decl.Range.Last = reg;
102 decl.Interp.Interpolate = interp;
103 ctx->emit_declaration(ctx, &decl);
146 struct tgsi_full_declaration *decl)
151 if (decl->Declaration.File == TGSI_FILE_OUTPUT) {
152 switch (decl->Semantic.Name) {
154 vsctx->pos_output = decl->Range.First;
158 assert(decl->Semantic.Index < 2);
163 if (decl->Semantic.Index == 1 && !vsctx->color_used[0]) {
164 insert_output_before(ctx, decl, TGSI_SEMANTIC_COLOR, 0,
171 assert(decl->Semantic.Index < 2);
177 insert_output_before(ctx, decl, TGSI_SEMANTIC_COLOR, 0,
182 insert_output_before(ctx, decl, TGSI_SEMANTIC_COLOR, 1,
186 if (decl->Semantic.Index == 1 && !vsctx->bcolor_used[0]) {
187 insert_output_before(ctx, decl, TGSI_SEMANTIC_BCOLOR, 0,
194 vsctx->last_generic = MAX2(vsctx->last_generic, decl->Semantic.Index);
201 decl->Range.First += vsctx->decl_shift;
202 decl->Range.Last += vsctx->decl_shift;
205 } else if (decl->Declaration.File == TGSI_FILE_TEMPORARY) {
206 for (i = decl->Range.First; i <= decl->Range.Last; i++) {
211 ctx->emit_declaration(ctx, decl);
214 if (decl->Declaration.File == TGSI_FILE_OUTPUT &&
215 decl->Semantic.Name == TGSI_SEMANTIC_BCOLOR &&
217 insert_output_after(ctx, decl, TGSI_SEMANTIC_BCOLOR, 1,