Home | History | Annotate | Download | only in util

Lines Matching defs:pctx

200    struct pstip_transform_context *pctx =
208 pctx->samplersUsed |= 1 << i;
212 pctx->maxInput = MAX2(pctx->maxInput, (int) decl->Range.Last);
214 pctx->wincoordInput = (int) decl->Range.First;
219 pctx->tempsUsed |= (1 << i);
231 struct pstip_transform_context *pctx =
233 pctx->numImmed++;
264 struct pstip_transform_context *pctx =
267 if (pctx->firstInstruction) {
276 pctx->freeSampler = free_bit(pctx->samplersUsed);
277 if (pctx->freeSampler >= PIPE_MAX_SAMPLERS)
278 pctx->freeSampler = PIPE_MAX_SAMPLERS - 1;
280 if (pctx->wincoordInput < 0)
281 wincoordInput = pctx->maxInput + 1;
283 wincoordInput = pctx->wincoordInput;
287 if ((pctx->tempsUsed & (1 << i)) == 0) {
289 if (pctx->texTemp < 0)
290 pctx->texTemp = i;
295 assert(pctx->texTemp >= 0);
297 if (pctx->wincoordInput < 0) {
315 decl.Range.Last = pctx->freeSampler;
322 decl.Range.Last = pctx->texTemp;
326 * The index/position of this immediate will be pctx->numImmed
341 pctx->firstInstruction = FALSE;
361 newInst.Dst[0].Register.Index = pctx->texTemp;
366 newInst.Src[1].Register.Index = pctx->numImmed;
374 newInst.Dst[0].Register.Index = pctx->texTemp;
379 newInst.Src[0].Register.Index = pctx->texTemp;
381 newInst.Src[1].Register.Index = pctx->freeSampler;
390 newInst.Src[0].Register.Index = pctx->texTemp;