| /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/etnaviv/ |
| etnaviv_asm.c | 36 check_uniforms(const struct etna_inst *inst) 43 const struct etna_inst_src *src = &inst->src[i]; 62 etna_assemble(uint32_t *out, const struct etna_inst *inst) 65 if (inst->imm && inst->src[2].use) 68 if (!inst->halti5 && !check_uniforms(inst)) 71 assert(!(inst->opcode&~0x7f)); 73 out[0] = VIV_ISA_WORD_0_OPCODE(inst->opcode & 0x3f) | 74 VIV_ISA_WORD_0_COND(inst->cond) [all...] |
| /xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/etnaviv/ |
| etnaviv_asm.c | 36 check_uniforms(const struct etna_inst *inst) 43 const struct etna_inst_src *src = &inst->src[i]; 62 etna_assemble(uint32_t *out, const struct etna_inst *inst) 65 if (inst->imm && inst->src[2].use) 68 if (!check_uniforms(inst)) 71 assert(!(inst->opcode&~0x7f)); 73 out[0] = VIV_ISA_WORD_0_OPCODE(inst->opcode & 0x3f) | 74 VIV_ISA_WORD_0_COND(inst->cond) | 75 COND(inst->sat, VIV_ISA_WORD_0_SAT) [all...] |
| /xsrc/external/mit/MesaLib/dist/src/intel/compiler/ |
| brw_fs_lower_pack.cpp | 35 foreach_block_and_inst_safe(block, fs_inst, inst, cfg) { 36 if (inst->opcode != FS_OPCODE_PACK) 39 assert(inst->dst.file == VGRF); 40 assert(inst->saturate == false); 41 fs_reg dst = inst->dst; 43 const fs_builder ibld(this, block, inst); 44 for (unsigned i = 0; i < inst->sources; i++) 45 ibld.MOV(subscript(dst, inst->src[i].type, i), inst->src[i]); 47 inst->remove(block) [all...] |
| brw_fs_dead_code_eliminate.cpp | 43 can_eliminate(const intel_device_info *devinfo, const fs_inst *inst, 46 return !inst->is_control_flow() && 47 !inst->has_side_effects() && 48 !(flag_live[0] & inst->flags_written(devinfo)) && 49 !inst->writes_accumulator; 56 can_omit_write(const fs_inst *inst) 58 switch (inst->opcode) { 67 if (inst->opcode < 128 && inst->mlen == 0) 91 foreach_inst_in_block_reverse_safe(fs_inst, inst, block) [all...] |
| brw_fs_lower_regioning.cpp | 39 is_byte_raw_mov(const fs_inst *inst) 41 return type_sz(inst->dst.type) == 1 && 42 inst->opcode == BRW_OPCODE_MOV && 43 inst->src[0].type == inst->dst.type && 44 !inst->saturate && 45 !inst->src[0].negate && 46 !inst->src[0].abs; 54 required_dst_byte_stride(const fs_inst *inst) 56 if (inst->dst.is_accumulator()) [all...] |
| brw_fs_cmod_propagation.cpp | 55 fs_inst *inst) 58 const unsigned flags_written = inst->flags_written(devinfo); 60 foreach_inst_in_block_reverse_starting_from(fs_inst, scan_inst, inst) { 63 scan_inst->exec_size == inst->exec_size) { 71 if ((inst->src[0].equals(scan_inst->src[0]) && 72 inst->src[1].negative_equals(scan_inst->src[1])) || 73 (inst->src[0].equals(scan_inst->src[1]) && 74 inst->src[1].negative_equals(scan_inst->src[0]))) { 76 } else if ((inst->src[0].negative_equals(scan_inst->src[0]) && 77 inst->src[1].equals(scan_inst->src[1])) | [all...] |
| brw_fs_validate.cpp | 36 dump_instruction(inst, stderr); \ 45 foreach_block_and_inst (block, fs_inst, inst, cfg) { 46 if (inst->dst.file == VGRF) { 47 fsv_assert(inst->dst.offset / REG_SIZE + regs_written(inst) <= 48 alloc.sizes[inst->dst.nr]); 51 for (unsigned i = 0; i < inst->sources; i++) { 52 if (inst->src[i].file == VGRF) { 53 fsv_assert(inst->src[i].offset / REG_SIZE + regs_read(inst, i) < [all...] |
| brw_vec4_cmod_propagation.cpp | 55 foreach_inst_in_block_reverse_safe(vec4_instruction, inst, block) { 58 if ((inst->opcode != BRW_OPCODE_AND && 59 inst->opcode != BRW_OPCODE_CMP && 60 inst->opcode != BRW_OPCODE_MOV) || 61 inst->predicate != BRW_PREDICATE_NONE || 62 !inst->dst.is_null() || 63 (inst->src[0].file != VGRF && inst->src[0].file != ATTR && 64 inst->src[0].file != UNIFORM)) 70 if (inst->src[0].abs & [all...] |
| /xsrc/external/mit/MesaLib.old/dist/src/intel/compiler/ |
| brw_fs_lower_pack.cpp | 35 foreach_block_and_inst_safe(block, fs_inst, inst, cfg) { 36 if (inst->opcode != FS_OPCODE_PACK) 39 assert(inst->dst.file == VGRF); 40 assert(inst->saturate == false); 41 fs_reg dst = inst->dst; 43 const fs_builder ibld(this, block, inst); 44 for (unsigned i = 0; i < inst->sources; i++) 45 ibld.MOV(subscript(dst, inst->src[i].type, i), inst->src[i]); 47 inst->remove(block) [all...] |
| brw_fs_lower_regioning.cpp | 39 is_byte_raw_mov(const fs_inst *inst) 41 return type_sz(inst->dst.type) == 1 && 42 inst->opcode == BRW_OPCODE_MOV && 43 inst->src[0].type == inst->dst.type && 44 !inst->saturate && 45 !inst->src[0].negate && 46 !inst->src[0].abs; 54 required_dst_byte_stride(const fs_inst *inst) 56 if (inst->dst.is_accumulator()) [all...] |
| brw_fs_dead_code_eliminate.cpp | 41 can_eliminate(const fs_inst *inst, BITSET_WORD *flag_live) 43 return !inst->is_control_flow() && 44 !inst->has_side_effects() && 45 !(flag_live[0] & inst->flags_written()) && 46 !inst->writes_accumulator; 53 can_omit_write(const fs_inst *inst) 55 switch (inst->opcode) { 64 if (inst->opcode < 128 && inst->mlen == 0) 89 foreach_inst_in_block_reverse_safe(fs_inst, inst, block) [all...] |
| brw_fs_cmod_propagation.cpp | 53 fs_inst *inst) 57 foreach_inst_in_block_reverse_starting_from(fs_inst, scan_inst, inst) { 60 scan_inst->exec_size == inst->exec_size) { 68 if ((inst->src[0].equals(scan_inst->src[0]) && 69 inst->src[1].negative_equals(scan_inst->src[1])) || 70 (inst->src[0].equals(scan_inst->src[1]) && 71 inst->src[1].negative_equals(scan_inst->src[0]))) { 73 } else if ((inst->src[0].negative_equals(scan_inst->src[0]) && 74 inst->src[1].equals(scan_inst->src[1])) || 75 (inst->src[0].negative_equals(scan_inst->src[1]) & [all...] |
| brw_fs_validate.cpp | 36 dump_instruction(inst, stderr); \ 45 foreach_block_and_inst (block, fs_inst, inst, cfg) { 46 if (inst->dst.file == VGRF) { 47 fsv_assert(inst->dst.offset / REG_SIZE + regs_written(inst) <= 48 alloc.sizes[inst->dst.nr]); 51 for (unsigned i = 0; i < inst->sources; i++) { 52 if (inst->src[i].file == VGRF) { 53 fsv_assert(inst->src[i].offset / REG_SIZE + regs_read(inst, i) < [all...] |
| brw_vec4_cmod_propagation.cpp | 55 foreach_inst_in_block_reverse_safe(vec4_instruction, inst, block) { 58 if ((inst->opcode != BRW_OPCODE_AND && 59 inst->opcode != BRW_OPCODE_CMP && 60 inst->opcode != BRW_OPCODE_MOV) || 61 inst->predicate != BRW_PREDICATE_NONE || 62 !inst->dst.is_null() || 63 (inst->src[0].file != VGRF && inst->src[0].file != ATTR && 64 inst->src[0].file != UNIFORM)) 70 if (inst->src[0].abs & [all...] |
| /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/vc4/ |
| vc4_opt_algebraic.c | 41 dump_from(struct vc4_compile *c, struct qinst *inst) 47 qir_dump_inst(c, inst); 52 dump_to(struct vc4_compile *c, struct qinst *inst) 58 qir_dump_inst(c, inst); 94 replace_with_mov(struct vc4_compile *c, struct qinst *inst, struct qreg arg) 96 dump_from(c, inst); 98 inst->src[0] = arg; 99 if (qir_has_implicit_tex_uniform(inst)) 100 inst->src[1] = inst->src[qir_get_tex_uniform_src(inst)] [all...] |
| vc4_qpu_validate.c | 30 fail_instr(uint64_t inst, const char *msg) 33 vc4_qpu_disasm(&inst, 1); 39 writes_reg(uint64_t inst, uint32_t w) 41 return (QPU_GET_FIELD(inst, QPU_WADDR_ADD) == w || 42 QPU_GET_FIELD(inst, QPU_WADDR_MUL) == w); 46 _reads_reg(uint64_t inst, uint32_t r, bool ignore_a, bool ignore_b) 51 { QPU_GET_FIELD(inst, QPU_ADD_A) }, 52 { QPU_GET_FIELD(inst, QPU_ADD_B) }, 53 { QPU_GET_FIELD(inst, QPU_MUL_A) }, 54 { QPU_GET_FIELD(inst, QPU_MUL_B) } 129 uint64_t inst = insts[i]; local 202 uint64_t inst = insts[i]; local 215 uint64_t inst = insts[i]; local 231 uint64_t inst = insts[i]; local 259 uint64_t inst = insts[i]; local 275 uint64_t inst = insts[i]; local 332 uint64_t inst = insts[i]; local 348 uint64_t inst = insts[i]; local 361 uint64_t inst = insts[i]; local 384 uint64_t inst = insts[i]; local [all...] |
| vc4_opt_dead_code.c | 43 dce(struct vc4_compile *c, struct qinst *inst) 47 qir_dump_inst(c, inst); 50 assert(!inst->sf); 51 qir_remove_instruction(c, inst); 55 has_nonremovable_reads(struct vc4_compile *c, struct qinst *inst) 57 for (int i = 0; i < qir_get_nsrc(inst); i++) { 58 if (inst->src[i].file == QFILE_VPM) { 59 uint32_t attr = inst->src[i].index / 4; 60 uint32_t offset = (inst->src[i].index % 4) * 4; 75 if (inst->src[i].file == QFILE_VARY & [all...] |
| /xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/vc4/ |
| vc4_opt_algebraic.c | 41 dump_from(struct vc4_compile *c, struct qinst *inst) 47 qir_dump_inst(c, inst); 52 dump_to(struct vc4_compile *c, struct qinst *inst) 58 qir_dump_inst(c, inst); 94 replace_with_mov(struct vc4_compile *c, struct qinst *inst, struct qreg arg) 96 dump_from(c, inst); 98 inst->src[0] = arg; 99 if (qir_has_implicit_tex_uniform(inst)) 100 inst->src[1] = inst->src[qir_get_tex_uniform_src(inst)] [all...] |
| vc4_qpu_validate.c | 28 fail_instr(uint64_t inst, const char *msg) 31 vc4_qpu_disasm(&inst, 1); 37 writes_reg(uint64_t inst, uint32_t w) 39 return (QPU_GET_FIELD(inst, QPU_WADDR_ADD) == w || 40 QPU_GET_FIELD(inst, QPU_WADDR_MUL) == w); 44 _reads_reg(uint64_t inst, uint32_t r, bool ignore_a, bool ignore_b) 49 { QPU_GET_FIELD(inst, QPU_ADD_A) }, 50 { QPU_GET_FIELD(inst, QPU_ADD_B) }, 51 { QPU_GET_FIELD(inst, QPU_MUL_A) }, 52 { QPU_GET_FIELD(inst, QPU_MUL_B) } 127 uint64_t inst = insts[i]; local 200 uint64_t inst = insts[i]; local 213 uint64_t inst = insts[i]; local 229 uint64_t inst = insts[i]; local 257 uint64_t inst = insts[i]; local 273 uint64_t inst = insts[i]; local 330 uint64_t inst = insts[i]; local 346 uint64_t inst = insts[i]; local 359 uint64_t inst = insts[i]; local 382 uint64_t inst = insts[i]; local [all...] |
| vc4_opt_dead_code.c | 43 dce(struct vc4_compile *c, struct qinst *inst) 47 qir_dump_inst(c, inst); 50 assert(!inst->sf); 51 qir_remove_instruction(c, inst); 55 has_nonremovable_reads(struct vc4_compile *c, struct qinst *inst) 57 for (int i = 0; i < qir_get_nsrc(inst); i++) { 58 if (inst->src[i].file == QFILE_VPM) { 59 uint32_t attr = inst->src[i].index / 4; 60 uint32_t offset = (inst->src[i].index % 4) * 4; 75 if (inst->src[i].file == QFILE_VARY & [all...] |
| /xsrc/external/mit/MesaLib.old/dist/src/broadcom/compiler/ |
| vir_opt_dead_code.c | 43 dce(struct v3d_compile *c, struct qinst *inst) 47 vir_dump_inst(c, inst); 50 assert(!v3d_qpu_writes_flags(&inst->qpu)); 51 vir_remove_instruction(c, inst); 55 has_nonremovable_reads(struct v3d_compile *c, struct qinst *inst) 57 for (int i = 0; i < vir_get_nsrc(inst); i++) { 58 if (inst->src[i].file == QFILE_VPM) 66 can_write_to_null(struct v3d_compile *c, struct qinst *inst) 69 if (c->devinfo->ver >= 41 && v3d_qpu_uses_sfu(&inst->qpu)) 76 vir_dce_flags(struct v3d_compile *c, struct qinst *inst) [all...] |
| vir_opt_copy_propagate.c | 38 is_copy_mov(struct qinst *inst) 40 if (!inst) 43 if (inst->qpu.type != V3D_QPU_INSTR_TYPE_ALU || 44 (inst->qpu.alu.mul.op != V3D_QPU_M_FMOV && 45 inst->qpu.alu.mul.op != V3D_QPU_M_MOV)) { 49 if (inst->dst.file != QFILE_TEMP) 52 if (inst->src[0].file != QFILE_TEMP) 55 if (inst->qpu.alu.add.output_pack != V3D_QPU_PACK_NONE || 56 inst->qpu.alu.mul.output_pack != V3D_QPU_PACK_NONE) { 60 if (inst->qpu.flags.ac != V3D_QPU_COND_NONE | [all...] |
| /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/r300/compiler/ |
| r500_fragprog.c | 66 struct rc_instruction * inst; local 77 if (writer->ReaderCount > 1 || writer->Inst->IP < inst_if->IP) { 86 for (inst = writer->Inst; inst != inst_if; inst = inst->Next) { 88 rc_get_opcode_info(inst->U.I.Opcode); 133 switch(writer->Inst->U.I.Opcode) { 158 writer->Inst->U.I.Opcode = RC_OPCODE_SUB 373 uint32_t inst; local [all...] |
| /xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/r300/compiler/ |
| r500_fragprog.c | 65 struct rc_instruction * inst; local 76 if (writer->ReaderCount > 1 || writer->Inst->IP < inst_if->IP) { 85 for (inst = writer->Inst; inst != inst_if; inst = inst->Next) { 87 rc_get_opcode_info(inst->U.I.Opcode); 132 switch(writer->Inst->U.I.Opcode) { 157 writer->Inst->U.I.Opcode = RC_OPCODE_SUB 374 uint32_t inst; local [all...] |
| /xsrc/external/mit/MesaLib/dist/src/broadcom/compiler/ |
| vir_opt_copy_propagate.c | 38 is_copy_mov(struct qinst *inst) 40 if (!inst) 43 if (inst->qpu.type != V3D_QPU_INSTR_TYPE_ALU || 44 (inst->qpu.alu.mul.op != V3D_QPU_M_FMOV && 45 inst->qpu.alu.mul.op != V3D_QPU_M_MOV)) { 49 if (inst->dst.file != QFILE_TEMP) 52 if (inst->src[0].file != QFILE_TEMP) 55 if (inst->qpu.alu.add.output_pack != V3D_QPU_PACK_NONE || 56 inst->qpu.alu.mul.output_pack != V3D_QPU_PACK_NONE) { 60 if (inst->qpu.flags.ac != V3D_QPU_COND_NONE | [all...] |