Lines Matching defs:curProg
77 static void match_pair_inst(struct ati_fragment_shader *curProg, GLuint optype)
79 if (optype == curProg->last_optype) {
80 curProg->last_optype = ATI_FRAGMENT_SHADER_ALPHA_OP;
221 struct ati_fragment_shader *curProg = ctx->ATIFragmentShader.Current;
231 if (curProg->Id == id) {
236 if (curProg->Id != 0) {
237 curProg->RefCount--;
238 if (curProg->RefCount <= 0) {
364 struct ati_fragment_shader *curProg = ctx->ATIFragmentShader.Current;
373 if (curProg->interpinp1 && (ctx->ATIFragmentShader.Current->cur_pass > 1)) {
378 match_pair_inst(curProg, 0);
395 GLuint op = curProg->SetupInst[j][i].Opcode;
397 GLuint src = curProg->SetupInst[j][i].src;
398 GLuint swizzle = curProg->SetupInst[j][i].swizzle;
402 for (i = 0; i < curProg->numArithInstr[j]; i++) {
403 GLuint op0 = curProg->Instructions[j][i].Opcode[0];
404 GLuint op1 = curProg->Instructions[j][i].Opcode[1];
407 GLuint count0 = curProg->Instructions[j][i].ArgCount[0];
408 GLuint count1 = curProg->Instructions[j][i].ArgCount[1];
425 curProg->Program)) {
437 struct ati_fragment_shader *curProg = ctx->ATIFragmentShader.Current;
439 GLubyte new_pass = curProg->cur_pass;
446 if (curProg->cur_pass == 1)
449 ((1 << (dst - GL_REG_0_ATI)) & curProg->regsAssigned[new_pass >> 1])) {
478 if ((((curProg->swizzlerq >> (tmp * 2)) & 3) != 0) &&
479 (((swizzle & 1) + 1) != ((curProg->swizzlerq >> (tmp * 2)) & 3))) {
483 curProg->swizzlerq |= (((swizzle & 1) + 1) << (tmp * 2));
487 if (curProg->cur_pass == 1)
488 match_pair_inst(curProg, 0);
489 curProg->cur_pass = new_pass;
490 curProg->regsAssigned[curProg->cur_pass >> 1] |= 1 << (dst - GL_REG_0_ATI);
493 curI = &curProg->SetupInst[curProg->cur_pass >> 1][dst - GL_REG_0_ATI];
510 struct ati_fragment_shader *curProg = ctx->ATIFragmentShader.Current;
512 GLubyte new_pass = curProg->cur_pass;
519 if (curProg->cur_pass == 1)
522 ((1 << (dst - GL_REG_0_ATI)) & curProg->regsAssigned[new_pass >> 1])) {
552 if ((((curProg->swizzlerq >> (tmp * 2)) & 3) != 0) &&
553 (((swizzle & 1) + 1) != ((curProg->swizzlerq >> (tmp * 2)) & 3))) {
557 curProg->swizzlerq |= (((swizzle & 1) + 1) << (tmp * 2));
561 if (curProg->cur_pass == 1)
562 match_pair_inst(curProg, 0);
563 curProg->cur_pass = new_pass;
564 curProg->regsAssigned[curProg->cur_pass >> 1] |= 1 << (dst - GL_REG_0_ATI);
567 curI = &curProg->SetupInst[curProg->cur_pass >> 1][dst - GL_REG_0_ATI];
588 struct ati_fragment_shader *curProg = ctx->ATIFragmentShader.Current;
592 GLubyte new_pass = curProg->cur_pass;
600 if (curProg->cur_pass == 0)
602 else if (curProg->cur_pass == 2)
605 numArithInstr = curProg->numArithInstr[new_pass >> 1];
612 curProg->last_optype == optype ||
613 curProg->numArithInstr[new_pass >> 1] == 0) {
614 if (curProg->numArithInstr[new_pass >> 1] > 7) {
621 curI = &curProg->Instructions[new_pass >> 1][ci];
685 curProg->interpinp1 |= check_arg_color(new_pass, arg1);
687 curProg->interpinp1 |= check_arg_color(new_pass, arg2);
689 curProg->interpinp1 |= check_arg_color(new_pass, arg3);
691 curProg->numArithInstr[new_pass >> 1] = numArithInstr;
692 curProg->last_optype = optype;
693 curProg->cur_pass = new_pass;
813 struct ati_fragment_shader *curProg = ctx->ATIFragmentShader.Current;
814 COPY_4V(curProg->Constants[dstindex], value);
815 curProg->LocalConstDef |= 1 << dstindex;