Home | History | Annotate | Download | only in compiler

Lines Matching defs:If

58 	int If;
196 if (index > code->max_temp_idx)
205 if (!src.Used)
208 if (src.File == RC_FILE_CONSTANT) {
210 } else if (src.File == RC_FILE_TEMPORARY || src.File == RC_FILE_INPUT) {
213 } else if (src.File == RC_FILE_INLINE) {
221 * NOP the specified instruction if it is not a texture lookup.
227 if ((code->inst[ip].inst0 & 0x3) != R500_INST_TYPE_TEX) {
240 if (code->inst_end >= c->Base.max_alu_insts-1) {
248 if (inst->RGB.Opcode == RC_OPCODE_DDX || inst->Alpha.Opcode == RC_OPCODE_DDX ||
250 if (ip > 0) {
258 if (inst->RGB.OutputWriteMask || inst->Alpha.OutputWriteMask || inst->Alpha.DepthWriteMask) {
260 if (inst->WriteALUResult) {
272 if (inst->Nop) {
275 if (inst->Alpha.DepthWriteMask) {
285 if (inst->RGB.Saturate)
287 if (inst->Alpha.Saturate)
347 if (inst->WriteALUResult) {
350 if (inst->WriteALUResult == RC_ALURESULT_X)
376 if (code->inst_end >= c->Base.max_alu_insts-1) {
389 if (inst->TexSrcTarget == RC_TEXTURE_RECT)
416 if (inst->Opcode != RC_OPCODE_KIL)
428 if (inst->Opcode == RC_OPCODE_TXD) {
447 if (s->Code->inst_end >= s->C->max_alu_insts-1) {
456 if(!s->Code->int_constants[0]) {
542 if ( s->CurrentBranchDepth >= R500_PFS_MAX_BRANCH_DEPTH_FULL) {
550 branch->If = newip;
554 if (s->CurrentBranchDepth > s->MaxBranchDepth)
561 if (!s->CurrentBranchDepth) {
573 if (!s->CurrentBranchDepth) {
584 | R500_FC_B_OP0_DECR /* decrement branch counter if stay */
585 | R500_FC_B_OP1_NONE /* no branch counter if stay */
589 s->Code->inst[branch->If].inst2 = R500_FC_OP_JUMP
591 | R500_FC_JUMP_FUNC(0x0f) /* jump if ALU result is false */
592 | R500_FC_B_OP0_INCR /* increment branch counter if stay */
596 if (branch->Else >= 0) {
597 /* increment branch counter also if jump */
598 s->Code->inst[branch->If].inst2 |= R500_FC_B_OP1_INCR;
599 s->Code->inst[branch->If].inst3 = R500_FC_JUMP_ADDR(branch->Else + 1);
604 | R500_FC_B_OP0_NONE /* no counter op if stay */
605 | R500_FC_B_OP1_DECR /* decrement branch counter if jump */
611 s->Code->inst[branch->If].inst2 |= R500_FC_B_OP1_NONE;
612 s->Code->inst[branch->If].inst3 = R500_FC_JUMP_ADDR(branch->Endif + 1);
640 if (inst->Type == RC_INSTRUCTION_NORMAL) {
643 if (opcode->IsFlowControl) {
645 } else if (inst->U.I.Opcode == RC_OPCODE_BEGIN_TEX) {
655 if (code->max_temp_idx >= compiler->Base.max_temp_regs)
658 if (compiler->Base.Error)
661 if (code->inst_end == -1 ||
667 if (code->inst_end >= compiler->Base.max_alu_insts-1) {
679 /* Enable full flow control mode if we are using loops or have if
681 if (s.MaxBranchDepth >= 4 || s.LoopsReserved > 0) {
682 if (code->max_temp_idx < 1)