• Home
  • Raw
  • Download

Lines Matching refs:curProg

87 static void match_pair_inst(struct ati_fragment_shader *curProg, GLuint optype)  in match_pair_inst()  argument
89 if (optype == curProg->last_optype) { in match_pair_inst()
90 curProg->last_optype = 1; in match_pair_inst()
158 static int check_arith_arg(struct ati_fragment_shader *curProg, in check_arith_arg() argument
180 if ((curProg->cur_pass == 1) && in check_arith_arg()
182 curProg->interpinp1 = GL_TRUE; in check_arith_arg()
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()
365 struct ati_fragment_shader *curProg = ctx->ATIFragmentShader.Current; in _mesa_EndFragmentShaderATI() local
374 if (curProg->interpinp1 && (ctx->ATIFragmentShader.Current->cur_pass > 1)) { in _mesa_EndFragmentShaderATI()
379 match_pair_inst(curProg, 0); in _mesa_EndFragmentShaderATI()
396 GLuint op = curProg->SetupInst[j][i].Opcode; in _mesa_EndFragmentShaderATI()
398 GLuint src = curProg->SetupInst[j][i].src; in _mesa_EndFragmentShaderATI()
399 GLuint swizzle = curProg->SetupInst[j][i].swizzle; in _mesa_EndFragmentShaderATI()
403 for (i = 0; i < curProg->numArithInstr[j]; i++) { in _mesa_EndFragmentShaderATI()
404 GLuint op0 = curProg->Instructions[j][i].Opcode[0]; in _mesa_EndFragmentShaderATI()
405 GLuint op1 = curProg->Instructions[j][i].Opcode[1]; in _mesa_EndFragmentShaderATI()
408 GLuint count0 = curProg->Instructions[j][i].ArgCount[0]; in _mesa_EndFragmentShaderATI()
409 GLuint count1 = curProg->Instructions[j][i].ArgCount[1]; in _mesa_EndFragmentShaderATI()
423 curProg->Program)) { in _mesa_EndFragmentShaderATI()
435 struct ati_fragment_shader *curProg = ctx->ATIFragmentShader.Current; in _mesa_PassTexCoordATI() local
443 if (curProg->cur_pass == 1) { in _mesa_PassTexCoordATI()
444 match_pair_inst(curProg, 0); in _mesa_PassTexCoordATI()
445 curProg->cur_pass = 2; in _mesa_PassTexCoordATI()
447 if ((curProg->cur_pass > 2) || in _mesa_PassTexCoordATI()
448 ((1 << (dst - GL_REG_0_ATI)) & curProg->regsAssigned[curProg->cur_pass >> 1])) { in _mesa_PassTexCoordATI()
463 if ((curProg->cur_pass == 0) && (coord >= GL_REG_0_ATI)) { 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 curProg->regsAssigned[curProg->cur_pass >> 1] |= 1 << (dst - GL_REG_0_ATI); in _mesa_PassTexCoordATI()
487 new_tex_inst(curProg); in _mesa_PassTexCoordATI()
490 curI = &curProg->SetupInst[curProg->cur_pass >> 1][dst - GL_REG_0_ATI]; in _mesa_PassTexCoordATI()
507 struct ati_fragment_shader *curProg = ctx->ATIFragmentShader.Current; in _mesa_SampleMapATI() local
515 if (curProg->cur_pass == 1) { in _mesa_SampleMapATI()
516 match_pair_inst(curProg, 0); in _mesa_SampleMapATI()
517 curProg->cur_pass = 2; in _mesa_SampleMapATI()
519 if ((curProg->cur_pass > 2) || in _mesa_SampleMapATI()
520 ((1 << (dst - GL_REG_0_ATI)) & curProg->regsAssigned[curProg->cur_pass >> 1])) { in _mesa_SampleMapATI()
536 if ((curProg->cur_pass == 0) && (interp >= GL_REG_0_ATI)) { in _mesa_SampleMapATI()
550 if ((((curProg->swizzlerq >> (tmp * 2)) & 3) != 0) && in _mesa_SampleMapATI()
551 (((swizzle & 1) + 1) != ((curProg->swizzlerq >> (tmp * 2)) & 3))) { in _mesa_SampleMapATI()
555 curProg->swizzlerq |= (((swizzle & 1) + 1) << (tmp * 2)); in _mesa_SampleMapATI()
559 curProg->regsAssigned[curProg->cur_pass >> 1] |= 1 << (dst - GL_REG_0_ATI); in _mesa_SampleMapATI()
560 new_tex_inst(curProg); in _mesa_SampleMapATI()
563 curI = &curProg->SetupInst[curProg->cur_pass >> 1][dst - GL_REG_0_ATI]; in _mesa_SampleMapATI()
584 struct ati_fragment_shader *curProg = ctx->ATIFragmentShader.Current; in _mesa_FragmentOpXATI() local
594 if (curProg->cur_pass==0) in _mesa_FragmentOpXATI()
595 curProg->cur_pass=1; in _mesa_FragmentOpXATI()
597 else if (curProg->cur_pass==2) in _mesa_FragmentOpXATI()
598 curProg->cur_pass=3; in _mesa_FragmentOpXATI()
602 if ((optype == 0) || (curProg->last_optype == optype)) { in _mesa_FragmentOpXATI()
603 if (curProg->numArithInstr[curProg->cur_pass >> 1] > 7) { in _mesa_FragmentOpXATI()
608 match_pair_inst(curProg, optype); in _mesa_FragmentOpXATI()
609 new_arith_inst(curProg); in _mesa_FragmentOpXATI()
611 curProg->last_optype = optype; in _mesa_FragmentOpXATI()
612 ci = curProg->numArithInstr[curProg->cur_pass >> 1] - 1; in _mesa_FragmentOpXATI()
615 curI = &curProg->Instructions[curProg->cur_pass >> 1][ci]; in _mesa_FragmentOpXATI()
649 if (!check_arith_arg(curProg, optype, arg1, arg1Rep)) { in _mesa_FragmentOpXATI()
653 if (!check_arith_arg(curProg, optype, arg2, arg2Rep)) { in _mesa_FragmentOpXATI()
658 if (!check_arith_arg(curProg, optype, arg3, arg3Rep)) { in _mesa_FragmentOpXATI()
775 struct ati_fragment_shader *curProg = ctx->ATIFragmentShader.Current; in _mesa_SetFragmentShaderConstantATI() local
776 COPY_4V(curProg->Constants[dstindex], value); in _mesa_SetFragmentShaderConstantATI()
777 curProg->LocalConstDef |= 1 << dstindex; in _mesa_SetFragmentShaderConstantATI()