Lines Matching defs:curProg

75 static void match_pair_inst(struct ati_fragment_shader *curProg, GLuint optype)
77 if (optype == curProg->last_optype) {
78 curProg->last_optype = ATI_FRAGMENT_SHADER_ALPHA_OP;
219 struct ati_fragment_shader *curProg = ctx->ATIFragmentShader.Current;
229 if (curProg->Id == id) {
234 if (curProg->Id != 0) {
235 curProg->RefCount--;
236 if (curProg->RefCount <= 0) {
360 struct ati_fragment_shader *curProg = ctx->ATIFragmentShader.Current;
369 if (curProg->interpinp1 && (ctx->ATIFragmentShader.Current->cur_pass > 1)) {
374 match_pair_inst(curProg, 0);
391 GLuint op = curProg->SetupInst[j][i].Opcode;
393 GLuint src = curProg->SetupInst[j][i].src;
394 GLuint swizzle = curProg->SetupInst[j][i].swizzle;
398 for (i = 0; i < curProg->numArithInstr[j]; i++) {
399 GLuint op0 = curProg->Instructions[j][i].Opcode[0];
400 GLuint op1 = curProg->Instructions[j][i].Opcode[1];
403 GLuint count0 = curProg->Instructions[j][i].ArgCount[0];
404 GLuint count1 = curProg->Instructions[j][i].ArgCount[1];
418 curProg->Program)) {
430 struct ati_fragment_shader *curProg = ctx->ATIFragmentShader.Current;
432 GLubyte new_pass = curProg->cur_pass;
439 if (curProg->cur_pass == 1)
442 ((1 << (dst - GL_REG_0_ATI)) & curProg->regsAssigned[new_pass >> 1])) {
471 if ((((curProg->swizzlerq >> (tmp * 2)) & 3) != 0) &&
472 (((swizzle & 1) + 1) != ((curProg->swizzlerq >> (tmp * 2)) & 3))) {
476 curProg->swizzlerq |= (((swizzle & 1) + 1) << (tmp * 2));
480 if (curProg->cur_pass == 1)
481 match_pair_inst(curProg, 0);
482 curProg->cur_pass = new_pass;
483 curProg->regsAssigned[curProg->cur_pass >> 1] |= 1 << (dst - GL_REG_0_ATI);
486 curI = &curProg->SetupInst[curProg->cur_pass >> 1][dst - GL_REG_0_ATI];
503 struct ati_fragment_shader *curProg = ctx->ATIFragmentShader.Current;
505 GLubyte new_pass = curProg->cur_pass;
512 if (curProg->cur_pass == 1)
515 ((1 << (dst - GL_REG_0_ATI)) & curProg->regsAssigned[new_pass >> 1])) {
545 if ((((curProg->swizzlerq >> (tmp * 2)) & 3) != 0) &&
546 (((swizzle & 1) + 1) != ((curProg->swizzlerq >> (tmp * 2)) & 3))) {
550 curProg->swizzlerq |= (((swizzle & 1) + 1) << (tmp * 2));
554 if (curProg->cur_pass == 1)
555 match_pair_inst(curProg, 0);
556 curProg->cur_pass = new_pass;
557 curProg->regsAssigned[curProg->cur_pass >> 1] |= 1 << (dst - GL_REG_0_ATI);
560 curI = &curProg->SetupInst[curProg->cur_pass >> 1][dst - GL_REG_0_ATI];
581 struct ati_fragment_shader *curProg = ctx->ATIFragmentShader.Current;
585 GLubyte new_pass = curProg->cur_pass;
593 if (curProg->cur_pass == 0)
595 else if (curProg->cur_pass == 2)
598 numArithInstr = curProg->numArithInstr[new_pass >> 1];
605 curProg->last_optype == optype ||
606 curProg->numArithInstr[new_pass >> 1] == 0) {
607 if (curProg->numArithInstr[new_pass >> 1] > 7) {
614 curI = &curProg->Instructions[new_pass >> 1][ci];
678 curProg->interpinp1 |= check_arg_color(new_pass, arg1);
680 curProg->interpinp1 |= check_arg_color(new_pass, arg2);
682 curProg->interpinp1 |= check_arg_color(new_pass, arg3);
684 curProg->numArithInstr[new_pass >> 1] = numArithInstr;
685 curProg->last_optype = optype;
686 curProg->cur_pass = new_pass;
791 struct ati_fragment_shader *curProg = ctx->ATIFragmentShader.Current;
792 COPY_4V(curProg->Constants[dstindex], value);
793 curProg->LocalConstDef |= 1 << dstindex;