Lines Matching refs:decl
197 struct tgsi_full_declaration *decl)
204 if (decl->Declaration.File == TGSI_FILE_SAMPLER) {
206 for (i = decl->Range.First; i <= decl->Range.Last; i++) {
210 else if (decl->Declaration.File == pctx->wincoordFile) {
211 pctx->maxInput = MAX2(pctx->maxInput, (int) decl->Range.Last);
212 if (decl->Semantic.Name == TGSI_SEMANTIC_POSITION)
213 pctx->wincoordInput = (int) decl->Range.First;
215 else if (decl->Declaration.File == TGSI_FILE_TEMPORARY) {
217 for (i = decl->Range.First; i <= decl->Range.Last; i++) {
222 ctx->emit_declaration(ctx, decl);
282 struct tgsi_full_declaration decl;
284 decl = tgsi_default_full_declaration();
286 decl.Declaration.File = pctx->wincoordFile;
287 decl.Declaration.Semantic = 1;
288 decl.Semantic.Name = TGSI_SEMANTIC_POSITION;
289 decl.Range.First =
290 decl.Range.Last = wincoordInput;
293 decl.Declaration.Interpolate = 1;
294 decl.Interp.Interpolate = TGSI_INTERPOLATE_LINEAR;
297 ctx->emit_declaration(ctx, &decl);
305 /* if the src shader has SVIEW decl's for each SAMP decl, we