• Home
  • Raw
  • Download

Lines Matching refs:curProg

76 static void match_pair_inst(struct ati_fragment_shader *curProg, GLuint optype)  in match_pair_inst()  argument
78 if (optype == curProg->last_optype) { in match_pair_inst()
79 curProg->last_optype = ATI_FRAGMENT_SHADER_ALPHA_OP; in match_pair_inst()
220 struct ati_fragment_shader *curProg = ctx->ATIFragmentShader.Current; in _mesa_BindFragmentShaderATI() local
230 if (curProg->Id == id) { in _mesa_BindFragmentShaderATI()
235 if (curProg->Id != 0) { in _mesa_BindFragmentShaderATI()
236 curProg->RefCount--; in _mesa_BindFragmentShaderATI()
237 if (curProg->RefCount <= 0) { in _mesa_BindFragmentShaderATI()
363 struct ati_fragment_shader *curProg = ctx->ATIFragmentShader.Current; in _mesa_EndFragmentShaderATI() local
372 if (curProg->interpinp1 && (ctx->ATIFragmentShader.Current->cur_pass > 1)) { in _mesa_EndFragmentShaderATI()
377 match_pair_inst(curProg, 0); in _mesa_EndFragmentShaderATI()
394 GLuint op = curProg->SetupInst[j][i].Opcode; in _mesa_EndFragmentShaderATI()
396 GLuint src = curProg->SetupInst[j][i].src; in _mesa_EndFragmentShaderATI()
397 GLuint swizzle = curProg->SetupInst[j][i].swizzle; in _mesa_EndFragmentShaderATI()
401 for (i = 0; i < curProg->numArithInstr[j]; i++) { in _mesa_EndFragmentShaderATI()
402 GLuint op0 = curProg->Instructions[j][i].Opcode[0]; in _mesa_EndFragmentShaderATI()
403 GLuint op1 = curProg->Instructions[j][i].Opcode[1]; in _mesa_EndFragmentShaderATI()
406 GLuint count0 = curProg->Instructions[j][i].ArgCount[0]; in _mesa_EndFragmentShaderATI()
407 GLuint count1 = curProg->Instructions[j][i].ArgCount[1]; in _mesa_EndFragmentShaderATI()
424 curProg->Program)) { in _mesa_EndFragmentShaderATI()
436 struct ati_fragment_shader *curProg = ctx->ATIFragmentShader.Current; in _mesa_PassTexCoordATI() local
438 GLubyte new_pass = curProg->cur_pass; in _mesa_PassTexCoordATI()
445 if (curProg->cur_pass == 1) in _mesa_PassTexCoordATI()
448 ((1 << (dst - GL_REG_0_ATI)) & curProg->regsAssigned[new_pass >> 1])) { in _mesa_PassTexCoordATI()
477 if ((((curProg->swizzlerq >> (tmp * 2)) & 3) != 0) && in _mesa_PassTexCoordATI()
478 (((swizzle & 1) + 1) != ((curProg->swizzlerq >> (tmp * 2)) & 3))) { in _mesa_PassTexCoordATI()
482 curProg->swizzlerq |= (((swizzle & 1) + 1) << (tmp * 2)); in _mesa_PassTexCoordATI()
486 if (curProg->cur_pass == 1) in _mesa_PassTexCoordATI()
487 match_pair_inst(curProg, 0); in _mesa_PassTexCoordATI()
488 curProg->cur_pass = new_pass; in _mesa_PassTexCoordATI()
489 curProg->regsAssigned[curProg->cur_pass >> 1] |= 1 << (dst - GL_REG_0_ATI); in _mesa_PassTexCoordATI()
492 curI = &curProg->SetupInst[curProg->cur_pass >> 1][dst - GL_REG_0_ATI]; in _mesa_PassTexCoordATI()
509 struct ati_fragment_shader *curProg = ctx->ATIFragmentShader.Current; in _mesa_SampleMapATI() local
511 GLubyte new_pass = curProg->cur_pass; in _mesa_SampleMapATI()
518 if (curProg->cur_pass == 1) in _mesa_SampleMapATI()
521 ((1 << (dst - GL_REG_0_ATI)) & curProg->regsAssigned[new_pass >> 1])) { in _mesa_SampleMapATI()
551 if ((((curProg->swizzlerq >> (tmp * 2)) & 3) != 0) && in _mesa_SampleMapATI()
552 (((swizzle & 1) + 1) != ((curProg->swizzlerq >> (tmp * 2)) & 3))) { in _mesa_SampleMapATI()
556 curProg->swizzlerq |= (((swizzle & 1) + 1) << (tmp * 2)); in _mesa_SampleMapATI()
560 if (curProg->cur_pass == 1) in _mesa_SampleMapATI()
561 match_pair_inst(curProg, 0); in _mesa_SampleMapATI()
562 curProg->cur_pass = new_pass; in _mesa_SampleMapATI()
563 curProg->regsAssigned[curProg->cur_pass >> 1] |= 1 << (dst - GL_REG_0_ATI); in _mesa_SampleMapATI()
566 curI = &curProg->SetupInst[curProg->cur_pass >> 1][dst - GL_REG_0_ATI]; in _mesa_SampleMapATI()
587 struct ati_fragment_shader *curProg = ctx->ATIFragmentShader.Current; in _mesa_FragmentOpXATI() local
591 GLubyte new_pass = curProg->cur_pass; in _mesa_FragmentOpXATI()
599 if (curProg->cur_pass == 0) in _mesa_FragmentOpXATI()
601 else if (curProg->cur_pass == 2) in _mesa_FragmentOpXATI()
604 numArithInstr = curProg->numArithInstr[new_pass >> 1]; in _mesa_FragmentOpXATI()
611 curProg->last_optype == optype || in _mesa_FragmentOpXATI()
612 curProg->numArithInstr[new_pass >> 1] == 0) { in _mesa_FragmentOpXATI()
613 if (curProg->numArithInstr[new_pass >> 1] > 7) { in _mesa_FragmentOpXATI()
620 curI = &curProg->Instructions[new_pass >> 1][ci]; in _mesa_FragmentOpXATI()
684 curProg->interpinp1 |= check_arg_color(new_pass, arg1); in _mesa_FragmentOpXATI()
686 curProg->interpinp1 |= check_arg_color(new_pass, arg2); in _mesa_FragmentOpXATI()
688 curProg->interpinp1 |= check_arg_color(new_pass, arg3); in _mesa_FragmentOpXATI()
690 curProg->numArithInstr[new_pass >> 1] = numArithInstr; in _mesa_FragmentOpXATI()
691 curProg->last_optype = optype; in _mesa_FragmentOpXATI()
692 curProg->cur_pass = new_pass; in _mesa_FragmentOpXATI()
797 struct ati_fragment_shader *curProg = ctx->ATIFragmentShader.Current; in _mesa_SetFragmentShaderConstantATI() local
798 COPY_4V(curProg->Constants[dstindex], value); in _mesa_SetFragmentShaderConstantATI()
799 curProg->LocalConstDef |= 1 << dstindex; in _mesa_SetFragmentShaderConstantATI()