Lines Matching refs:pctx
199 struct pstip_transform_context *pctx =
207 pctx->samplersUsed |= 1u << i;
210 else if (decl->Declaration.File == pctx->wincoordFile) {
211 pctx->maxInput = MAX2(pctx->maxInput, (int) decl->Range.Last);
213 pctx->wincoordInput = (int) decl->Range.First;
218 pctx->tempsUsed |= (1 << i);
230 struct pstip_transform_context *pctx =
232 pctx->numImmed++;
263 struct pstip_transform_context *pctx =
269 STATIC_ASSERT(sizeof(pctx->samplersUsed) * 8 >= PIPE_MAX_SAMPLERS);
272 pctx->freeSampler = free_bit(pctx->samplersUsed);
273 if (pctx->freeSampler < 0 || pctx->freeSampler >= PIPE_MAX_SAMPLERS)
274 pctx->freeSampler = PIPE_MAX_SAMPLERS - 1;
276 if (pctx->wincoordInput < 0)
277 wincoordInput = pctx->maxInput + 1;
279 wincoordInput = pctx->wincoordInput;
281 if (pctx->wincoordInput < 0) {
286 decl.Declaration.File = pctx->wincoordFile;
292 if (pctx->wincoordFile == TGSI_FILE_INPUT) {
300 sampIdx = pctx->hasFixedUnit ? (int)pctx->fixedUnit : pctx->freeSampler;
309 if (pctx->info.file_max[TGSI_FILE_SAMPLER_VIEW] != -1) {
321 if ((pctx->tempsUsed & (1 << texTemp)) == 0) {
326 * The index/position of this immediate will be pctx->numImmed
346 pctx->wincoordFile, wincoordInput,
347 TGSI_FILE_IMMEDIATE, pctx->numImmed, false);