Lines Matching refs:op

257    fs_reg op[2], temp;
276 op[operand] = this->result;
297 emit(BRW_OPCODE_XOR, this->result, op[0], fs_reg(1));
300 op[0].negate = !op[0].negate;
301 this->result = op[0];
304 op[0].abs = true;
305 op[0].negate = false;
306 this->result = op[0];
313 inst = emit(BRW_OPCODE_CMP, reg_null_f, op[0], fs_reg(0.0f));
318 inst = emit(BRW_OPCODE_CMP, reg_null_f, op[0], fs_reg(0.0f));
325 emit_math(SHADER_OPCODE_RCP, this->result, op[0]);
329 emit_math(SHADER_OPCODE_EXP2, this->result, op[0]);
332 emit_math(SHADER_OPCODE_LOG2, this->result, op[0]);
340 emit_math(SHADER_OPCODE_SIN, this->result, op[0]);
344 emit_math(SHADER_OPCODE_COS, this->result, op[0]);
348 emit(FS_OPCODE_DDX, this->result, op[0]);
351 emit(FS_OPCODE_DDY, this->result, op[0]);
355 emit(BRW_OPCODE_ADD, this->result, op[0], op[1]);
376 emit(BRW_OPCODE_MUL, acc, op[0], op[1]);
377 emit(BRW_OPCODE_MACH, reg_null_d, op[0], op[1]);
380 emit(BRW_OPCODE_MUL, this->result, op[0], op[1]);
389 emit_math(SHADER_OPCODE_INT_QUOTIENT, this->result, op[0], op[1]);
397 emit_math(SHADER_OPCODE_INT_REMAINDER, this->result, op[0], op[1]);
411 temp.type = op[0].type;
413 resolve_ud_negate(&op[0]);
414 resolve_ud_negate(&op[1]);
416 resolve_bool_comparison(ir->operands[0], &op[0]);
417 resolve_bool_comparison(ir->operands[1], &op[1]);
419 inst = emit(BRW_OPCODE_CMP, temp, op[0], op[1]);
424 emit(BRW_OPCODE_XOR, this->result, op[0], op[1]);
428 emit(BRW_OPCODE_OR, this->result, op[0], op[1]);
432 emit(BRW_OPCODE_AND, this->result, op[0], op[1]);
449 emit_math(SHADER_OPCODE_SQRT, this->result, op[0]);
453 emit_math(SHADER_OPCODE_RSQ, this->result, op[0]);
458 op[0].type = BRW_REGISTER_TYPE_F;
459 this->result = op[0];
463 op[0].type = BRW_REGISTER_TYPE_UD;
464 this->result = op[0];
468 op[0].type = BRW_REGISTER_TYPE_D;
469 this->result = op[0];
475 emit(BRW_OPCODE_MOV, this->result, op[0]);
479 inst = emit(BRW_OPCODE_AND, this->result, op[0], fs_reg(1));
483 emit(BRW_OPCODE_AND, temp, op[0], fs_reg(1));
488 inst = emit(BRW_OPCODE_CMP, this->result, op[0], fs_reg(0.0f));
493 assert(op[0].type == BRW_REGISTER_TYPE_D);
495 inst = emit(BRW_OPCODE_CMP, this->result, op[0], fs_reg(0));
501 emit(BRW_OPCODE_RNDZ, this->result, op[0]);
504 op[0].negate = !op[0].negate;
505 inst = emit(BRW_OPCODE_RNDD, this->result, op[0]);
509 inst = emit(BRW_OPCODE_RNDD, this->result, op[0]);
512 inst = emit(BRW_OPCODE_FRC, this->result, op[0]);
515 emit(BRW_OPCODE_RNDE, this->result, op[0]);
519 resolve_ud_negate(&op[0]);
520 resolve_ud_negate(&op[1]);
523 inst = emit(BRW_OPCODE_SEL, this->result, op[0], op[1]);
529 inst = emit(BRW_OPCODE_CMP, this->result, op[0], op[1]);
532 inst = emit(BRW_OPCODE_SEL, this->result, op[0], op[1]);
537 resolve_ud_negate(&op[0]);
538 resolve_ud_negate(&op[1]);
541 inst = emit(BRW_OPCODE_SEL, this->result, op[0], op[1]);
547 inst = emit(BRW_OPCODE_CMP, this->result, op[0], op[1]);
550 inst = emit(BRW_OPCODE_SEL, this->result, op[0], op[1]);
556 emit_math(SHADER_OPCODE_POW, this->result, op[0], op[1]);
560 inst = emit(BRW_OPCODE_NOT, this->result, op[0]);
563 inst = emit(BRW_OPCODE_AND, this->result, op[0], op[1]);
566 inst = emit(BRW_OPCODE_XOR, this->result, op[0], op[1]);
569 inst = emit(BRW_OPCODE_OR, this->result, op[0], op[1]);
573 inst = emit(BRW_OPCODE_SHL, this->result, op[0], op[1]);
578 inst = emit(BRW_OPCODE_ASR, this->result, op[0], op[1]);
580 inst = emit(BRW_OPCODE_SHR, this->result, op[0], op[1]);
769 if (ir->op == ir_tex) {
775 } else if (ir->op == ir_txb || ir->op == ir_txl) {
784 } else if (ir->op == ir_tex) {
791 } else if (ir->op == ir_txd) {
826 } else if (ir->op == ir_txs) {
836 assert(ir->op == ir_txb || ir->op == ir_txl || ir->op == ir_txf);
875 switch (ir->op) {
929 if (ir->offset != NULL && ir->op == ir_txf) {
970 switch (ir->op) {
1048 if (ir->offset && ir->op != ir_txf) {
1063 switch (ir->op) {
1134 if (ir->op != ir_txd && ir->op != ir_txs && ir->op != ir_txf) {
1144 switch (ir->op) {
1305 switch (ir->op) {
1346 if (ir->offset != NULL && ir->op != ir_txf)
1366 if (ir->op == ir_txs)
1516 fs_reg op[2];
1524 op[i] = this->result;
1526 resolve_ud_negate(&op[i]);
1531 inst = emit(BRW_OPCODE_AND, reg_null_d, op[0], fs_reg(1));
1542 inst = emit(BRW_OPCODE_CMP, reg_null_d, op[0], fs_reg(0.0f));
1544 inst = emit(BRW_OPCODE_MOV, reg_null_f, op[0]);
1551 inst = emit(BRW_OPCODE_CMP, reg_null_d, op[0], fs_reg(0));
1553 inst = emit(BRW_OPCODE_MOV, reg_null_d, op[0]);
1566 resolve_bool_comparison(expr->operands[0], &op[0]);
1567 resolve_bool_comparison(expr->operands[1], &op[1]);
1569 inst = emit(BRW_OPCODE_CMP, reg_null_cmp, op[0], op[1]);
1599 fs_reg op[2];
1608 op[i] = this->result;
1623 inst = emit(BRW_OPCODE_IF, reg_null_f, op[0], fs_reg(0));
1628 inst = emit(BRW_OPCODE_IF, reg_null_d, op[0], fs_reg(0));
1640 resolve_bool_comparison(expr->operands[0], &op[0]);
1641 resolve_bool_comparison(expr->operands[1], &op[1]);
1643 inst = emit(BRW_OPCODE_IF, reg_null_d, op[0], op[1]);
1649 inst = emit(BRW_OPCODE_IF, reg_null_d, op[0], fs_reg(0));