Lines Matching defs:opcode
52 fs_inst::init(enum opcode opcode, uint8_t exec_size, const fs_reg &dst,
61 this->opcode = opcode;
98 fs_inst::fs_inst(enum opcode opcode, uint8_t exec_size)
100 init(opcode, exec_size, reg_undef, NULL, 0);
103 fs_inst::fs_inst(enum opcode opcode, uint8_t exec_size, const fs_reg &dst)
105 init(opcode, exec_size, dst, NULL, 0);
108 fs_inst::fs_inst(enum opcode opcode, uint8_t exec_size, const fs_reg &dst,
112 init(opcode, exec_size, dst, src, 1);
115 fs_inst::fs_inst(enum opcode opcode, uint8_t exec_size, const fs_reg &dst,
119 init(opcode, exec_size, dst, src, 2);
122 fs_inst::fs_inst(enum opcode opcode, uint8_t exec_size, const fs_reg &dst,
126 init(opcode, exec_size, dst, src, 3);
129 fs_inst::fs_inst(enum opcode opcode, uint8_t exec_width, const fs_reg &dst,
132 init(opcode, exec_width, dst, src, sources);
222 switch (opcode) {
247 switch (opcode) {
293 switch (opcode) {
345 switch (opcode) {
434 if (devinfo->ver >= 12 && (opcode == BRW_OPCODE_MUL ||
435 opcode == BRW_OPCODE_MAD)) {
437 const unsigned min_type_sz = opcode == BRW_OPCODE_MAD ?
477 (opcode == BRW_OPCODE_MOV ||
478 (opcode == BRW_OPCODE_SEL &&
645 return ((this->predicate && this->opcode != BRW_OPCODE_SEL) ||
658 switch (opcode) {
704 opcode == SHADER_OPCODE_TXD_LOGICAL)
711 if (opcode == SHADER_OPCODE_TXF_CMS_W_LOGICAL)
713 else if (opcode == SHADER_OPCODE_TXF_CMS_W_GFX12_LOGICAL)
882 switch (opcode) {
1044 if ((conditional_mod && ((opcode != BRW_OPCODE_SEL || devinfo->ver <= 5) &&
1045 opcode != BRW_OPCODE_CSEL &&
1046 opcode != BRW_OPCODE_IF &&
1047 opcode != BRW_OPCODE_WHILE)) ||
1048 opcode == FS_OPCODE_FB_WRITE) {
1050 } else if (opcode == SHADER_OPCODE_FIND_LIVE_CHANNEL ||
1051 opcode == SHADER_OPCODE_FIND_LAST_LIVE_CHANNEL ||
1052 opcode == FS_OPCODE_LOAD_LIVE_CHANNELS) {
1060 * Returns how many MRFs an FS opcode will write over.
1074 switch (opcode) {
1534 if (prev->opcode == SHADER_OPCODE_URB_WRITE_LOGICAL) {
2174 if (inst->opcode == SHADER_OPCODE_UNDEF) {
2250 if (inst->opcode == SHADER_OPCODE_UNDEF) {
2491 if (inst->opcode == SHADER_OPCODE_MOV_INDIRECT && i == 0)
2514 if (inst->opcode == SHADER_OPCODE_MOV_INDIRECT &&
2536 switch (inst->opcode) {
2616 inst->opcode = BRW_OPCODE_MOV;
2624 inst->opcode = BRW_OPCODE_MOV;
2638 inst->opcode = BRW_OPCODE_MOV;
2646 inst->opcode = BRW_OPCODE_MOV;
2661 inst->opcode = BRW_OPCODE_NOT;
2664 inst->opcode = BRW_OPCODE_MOV;
2707 inst->opcode = BRW_OPCODE_MOV;
2719 inst->opcode = BRW_OPCODE_MOV;
2734 inst->opcode = BRW_OPCODE_MOV;
2754 inst->opcode = BRW_OPCODE_ADD;
2759 inst->opcode = BRW_OPCODE_ADD;
2766 inst->opcode = BRW_OPCODE_MOV;
2771 inst->opcode = BRW_OPCODE_MOV;
2791 inst->opcode = BRW_OPCODE_MOV;
2795 inst->opcode = BRW_OPCODE_MOV;
2835 /* Gfx4 infers the texturing opcode based on the message length so we can't
2852 load_payload->opcode != SHADER_OPCODE_LOAD_PAYLOAD)
2909 if (send->opcode != SHADER_OPCODE_SEND ||
2920 if (lp->is_head_sentinel() || lp->opcode != SHADER_OPCODE_LOAD_PAYLOAD)
2979 if (inst->opcode == BRW_OPCODE_IF || inst->opcode == BRW_OPCODE_DO) {
2981 } else if (inst->opcode == BRW_OPCODE_ENDIF ||
2982 inst->opcode == BRW_OPCODE_WHILE) {
3049 if (inst->opcode == BRW_OPCODE_HALT)
3052 if (inst->opcode == SHADER_OPCODE_HALT_TARGET) {
3066 !prev->is_head_sentinel() && prev->opcode == BRW_OPCODE_HALT;
3116 if (inst->opcode != BRW_OPCODE_MOV ||
3298 switch (inst->opcode) {
3317 inst->opcode = BRW_OPCODE_MOV;
3431 if (inst->opcode == BRW_OPCODE_MOV &&
3434 if (prev_inst && prev_inst->opcode == BRW_OPCODE_MOV &&
3471 if (inst->opcode == BRW_OPCODE_MOV &&
3515 if (inst->opcode == SHADER_OPCODE_RND_MODE) {
3733 if (inst->opcode != FS_OPCODE_UNIFORM_PULL_CONSTANT_LOAD)
3771 inst->opcode = SHADER_OPCODE_SEND;
3795 inst->opcode = FS_OPCODE_UNIFORM_PULL_CONSTANT_LOAD_GFX7;
3819 if (inst->opcode != SHADER_OPCODE_LOAD_PAYLOAD)
4198 if (inst->opcode == BRW_OPCODE_MUL) {
4228 } else if (inst->opcode == SHADER_OPCODE_MULH) {
4252 if (inst->opcode == BRW_OPCODE_SEL &&
4288 if (inst->opcode == SHADER_OPCODE_USUB_SAT ||
4289 inst->opcode == SHADER_OPCODE_ISUB_SAT) {
4325 } else if (inst->opcode == SHADER_OPCODE_ISUB_SAT) {
4398 if (inst->opcode == FS_OPCODE_REP_FB_WRITE) {
4493 /* This opcode sometimes uses :W type on the source even if the operand is
4496 if (inst->opcode == BRW_OPCODE_F16TO32)
4513 /* This opcode sometimes uses :W type on the destination even if the
4517 if (inst->opcode == BRW_OPCODE_F32TO16 &&
4754 if (inst->opcode != SHADER_OPCODE_TEX &&
4767 (devinfo->ver >= 5 && inst->opcode != SHADER_OPCODE_TXF_LOGICAL &&
4768 inst->opcode != SHADER_OPCODE_TXF_CMS_LOGICAL) ? 4 :
4775 (inst->opcode == SHADER_OPCODE_TXL ||
4776 inst->opcode == SHADER_OPCODE_TXF) &&
4789 (inst->opcode == SHADER_OPCODE_TG4_OFFSET_LOGICAL ?
4813 switch (inst->opcode) {
4941 /* The implementation of this virtual opcode may require emitting
5424 switch (inst->opcode) {
5491 inst->opcode = BRW_OPCODE_ADD;
5509 if (inst->opcode == FS_OPCODE_DDX_COARSE)
5513 else if (inst->opcode == FS_OPCODE_DDX_FINE)
5517 else if (inst->opcode == FS_OPCODE_DDY_COARSE)
5521 else if (inst->opcode == FS_OPCODE_DDY_FINE)
5547 if (inst->opcode != SHADER_OPCODE_FIND_LIVE_CHANNEL &&
5548 inst->opcode != SHADER_OPCODE_FIND_LAST_LIVE_CHANNEL)
5551 bool first = inst->opcode == SHADER_OPCODE_FIND_LIVE_CHANNEL;
5660 fprintf(file, "%s", brw_instruction_name(&compiler->isa, inst->opcode));
5666 (devinfo->ver < 5 || (inst->opcode != BRW_OPCODE_SEL &&
5667 inst->opcode != BRW_OPCODE_CSEL &&
5668 inst->opcode != BRW_OPCODE_IF &&
5669 inst->opcode != BRW_OPCODE_WHILE))) {
6216 if (inst->opcode == SHADER_OPCODE_SEND && inst->ex_mlen > 0 &&
6349 if (inst->opcode == BRW_OPCODE_HALT ||
6350 inst->opcode == SHADER_OPCODE_HALT_TARGET)
6396 switch (inst->opcode) {