| /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/etnaviv/ |
| H A D | etnaviv_asm.c | 36 check_uniforms(const struct etna_inst *inst) argument 43 const struct etna_inst_src *src = &inst->src[i]; 62 etna_assemble(uint32_t *out, const struct etna_inst *inst) argument 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 [all...] |
| /xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/etnaviv/ |
| H A D | etnaviv_asm.c | 36 check_uniforms(const struct etna_inst *inst) argument 43 const struct etna_inst_src *src = &inst->src[i]; 62 etna_assemble(uint32_t *out, const struct etna_inst *inst) argument 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 [all...] |
| /xsrc/external/mit/MesaLib.old/dist/src/intel/compiler/ |
| H A D | 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 [all...] |
| H A D | brw_fs_lower_regioning.cpp | 39 is_byte_raw_mov(const fs_inst *inst) argument 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) argument 56 if (inst 110 required_dst_byte_offset(const fs_inst * inst) argument 127 has_invalid_src_region(const gen_device_info * devinfo,const fs_inst * inst,unsigned i) argument 168 has_invalid_dst_region(const gen_device_info * devinfo,const fs_inst * inst) argument 193 has_invalid_src_modifiers(const gen_device_info * devinfo,const fs_inst * inst,unsigned i) argument 205 has_invalid_conversion(const gen_device_info * devinfo,const fs_inst * inst) argument 236 has_inconsistent_cmod(const fs_inst * inst) argument 256 lower_src_modifiers(fs_visitor * v,bblock_t * block,fs_inst * inst,unsigned i) argument 278 lower_dst_modifiers(fs_visitor * v,bblock_t * block,fs_inst * inst) argument 325 lower_src_region(fs_visitor * v,bblock_t * block,fs_inst * inst,unsigned i) argument 366 lower_dst_region(fs_visitor * v,bblock_t * block,fs_inst * inst) argument 421 lower_instruction(fs_visitor * v,bblock_t * block,fs_inst * inst) argument [all...] |
| H A D | brw_fs_dead_code_eliminate.cpp | 41 can_eliminate(const fs_inst *inst, BITSET_WORD *flag_live) argument 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) argument 55 switch (inst->opcode) { 64 if (inst->opcode < 128 && inst->mlen == 0) 89 foreach_inst_in_block_reverse_safe(fs_inst, inst, bloc [all...] |
| H A D | 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 52 cmod_propagate_cmp_to_add(const gen_device_info * devinfo,bblock_t * block,fs_inst * inst) argument 128 cmod_propagate_not(const gen_device_info * devinfo,bblock_t * block,fs_inst * inst) argument [all...] |
| H A D | 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, [all...] |
| H A D | 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 [all...] |
| /xsrc/external/mit/MesaLib/dist/src/intel/compiler/ |
| H A D | 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 [all...] |
| H A D | brw_fs_dead_code_eliminate.cpp | 43 can_eliminate(const intel_device_info *devinfo, const fs_inst *inst, argument 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) argument 58 switch (inst->opcode) { 67 if (inst->opcode < 128 && inst->mlen == 0) 91 foreach_inst_in_block_reverse_safe(fs_inst, inst, bloc [all...] |
| H A D | brw_fs_lower_regioning.cpp | 39 is_byte_raw_mov(const fs_inst *inst) argument 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) argument 56 if (inst 110 required_dst_byte_offset(const fs_inst * inst) argument 127 has_invalid_src_region(const intel_device_info * devinfo,const fs_inst * inst,unsigned i) argument 168 has_invalid_dst_region(const intel_device_info * devinfo,const fs_inst * inst) argument 195 has_invalid_exec_type(const intel_device_info * devinfo,const fs_inst * inst) argument 222 has_invalid_src_modifiers(const intel_device_info * devinfo,const fs_inst * inst,unsigned i) argument 237 has_invalid_conversion(const intel_device_info * devinfo,const fs_inst * inst) argument 258 has_invalid_dst_modifiers(const intel_device_info * devinfo,const fs_inst * inst) argument 271 has_inconsistent_cmod(const fs_inst * inst) argument 291 lower_src_modifiers(fs_visitor * v,bblock_t * block,fs_inst * inst,unsigned i) argument 319 lower_dst_modifiers(fs_visitor * v,bblock_t * block,fs_inst * inst) argument 368 lower_src_region(fs_visitor * v,bblock_t * block,fs_inst * inst,unsigned i) argument 410 lower_dst_region(fs_visitor * v,bblock_t * block,fs_inst * inst) argument 467 lower_exec_type(fs_visitor * v,bblock_t * block,fs_inst * inst) argument 490 lower_instruction(fs_visitor * v,bblock_t * block,fs_inst * inst) argument [all...] |
| H A D | 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 54 cmod_propagate_cmp_to_add(const intel_device_info * devinfo,bblock_t * block,fs_inst * inst) argument 170 cmod_propagate_not(const intel_device_info * devinfo,bblock_t * block,fs_inst * inst) argument [all...] |
| H A D | 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, [all...] |
| H A D | 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 [all...] |
| /xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/vc4/ |
| H A D | vc4_opt_algebraic.c | 41 dump_from(struct vc4_compile *c, struct qinst *inst) argument 47 qir_dump_inst(c, inst); 52 dump_to(struct vc4_compile *c, struct qinst *inst) argument 58 qir_dump_inst(c, inst); 94 replace_with_mov(struct vc4_compile *c, struct qinst *inst, struct qreg arg) argument 96 dump_from(c, inst); 98 inst->src[0] = arg; 99 if (qir_has_implicit_tex_uniform(inst)) 100 inst->src[1] = inst 112 replace_x_0_with_x(struct vc4_compile * c,struct qinst * inst,int arg) argument 123 replace_x_0_with_0(struct vc4_compile * c,struct qinst * inst,int arg) argument 134 fmul_replace_one(struct vc4_compile * c,struct qinst * inst,int arg) argument [all...] |
| H A D | vc4_qpu_validate.c | 28 fail_instr(uint64_t inst, const char *msg) argument 31 vc4_qpu_disasm(&inst, 1); 37 writes_reg(uint64_t inst, uint32_t w) argument 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) argument 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_ 82 reads_reg(uint64_t inst,uint32_t r) argument 88 reads_a_reg(uint64_t inst,uint32_t r) argument 94 reads_b_reg(uint64_t inst,uint32_t r) argument 100 writes_sfu(uint64_t inst) argument 127 uint64_t inst = insts[i]; local in function:vc4_qpu_validate 200 uint64_t inst = insts[i]; local in function:vc4_qpu_validate 213 uint64_t inst = insts[i]; local in function:vc4_qpu_validate 229 uint64_t inst = insts[i]; local in function:vc4_qpu_validate 257 uint64_t inst = insts[i]; local in function:vc4_qpu_validate 273 uint64_t inst = insts[i]; local in function:vc4_qpu_validate 330 uint64_t inst = insts[i]; local in function:vc4_qpu_validate 346 uint64_t inst = insts[i]; local in function:vc4_qpu_validate 359 uint64_t inst = insts[i]; local in function:vc4_qpu_validate 382 uint64_t inst = insts[i]; local in function:vc4_qpu_validate [all...] |
| H A D | vc4_opt_dead_code.c | 43 dce(struct vc4_compile *c, struct qinst *inst) argument 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) argument 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 [all...] |
| /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/vc4/ |
| H A D | vc4_opt_algebraic.c | 41 dump_from(struct vc4_compile *c, struct qinst *inst) argument 47 qir_dump_inst(c, inst); 52 dump_to(struct vc4_compile *c, struct qinst *inst) argument 58 qir_dump_inst(c, inst); 94 replace_with_mov(struct vc4_compile *c, struct qinst *inst, struct qreg arg) argument 96 dump_from(c, inst); 98 inst->src[0] = arg; 99 if (qir_has_implicit_tex_uniform(inst)) 100 inst->src[1] = inst 112 replace_x_0_with_x(struct vc4_compile * c,struct qinst * inst,int arg) argument 123 replace_x_0_with_0(struct vc4_compile * c,struct qinst * inst,int arg) argument 134 fmul_replace_one(struct vc4_compile * c,struct qinst * inst,int arg) argument [all...] |
| H A D | vc4_qpu_validate.c | 30 fail_instr(uint64_t inst, const char *msg) argument 33 vc4_qpu_disasm(&inst, 1); 39 writes_reg(uint64_t inst, uint32_t w) argument 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) argument 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_ 84 reads_reg(uint64_t inst,uint32_t r) argument 90 reads_a_reg(uint64_t inst,uint32_t r) argument 96 reads_b_reg(uint64_t inst,uint32_t r) argument 102 writes_sfu(uint64_t inst) argument 129 uint64_t inst = insts[i]; local in function:vc4_qpu_validate 202 uint64_t inst = insts[i]; local in function:vc4_qpu_validate 215 uint64_t inst = insts[i]; local in function:vc4_qpu_validate 231 uint64_t inst = insts[i]; local in function:vc4_qpu_validate 259 uint64_t inst = insts[i]; local in function:vc4_qpu_validate 275 uint64_t inst = insts[i]; local in function:vc4_qpu_validate 332 uint64_t inst = insts[i]; local in function:vc4_qpu_validate 348 uint64_t inst = insts[i]; local in function:vc4_qpu_validate 361 uint64_t inst = insts[i]; local in function:vc4_qpu_validate 384 uint64_t inst = insts[i]; local in function:vc4_qpu_validate [all...] |
| H A D | vc4_opt_dead_code.c | 43 dce(struct vc4_compile *c, struct qinst *inst) argument 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) argument 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 [all...] |
| /xsrc/external/mit/MesaLib.old/dist/src/broadcom/compiler/ |
| H A D | vir_opt_dead_code.c | 43 dce(struct v3d_compile *c, struct qinst *inst) argument 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) argument 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) argument 69 if (c->devinfo->ver >= 41 && v3d_qpu_uses_sfu(&inst->qpu)) 76 vir_dce_flags(struct v3d_compile *c, struct qinst *inst) argument [all...] |
| H A D | vir_opt_copy_propagate.c | 38 is_copy_mov(struct qinst *inst) argument 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 101 vir_has_unpack(struct qinst * inst,int chan) argument 119 try_copy_prop(struct v3d_compile * c,struct qinst * inst,struct qinst ** movs) argument 210 apply_kills(struct v3d_compile * c,struct qinst ** movs,struct qinst * inst) argument [all...] |
| /xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/r300/compiler/ |
| H A D | r500_fragprog.c | 65 struct rc_instruction * inst; local in function:r500_transform_IF 85 for (inst = writer->Inst; inst != inst_if; inst = inst->Next) { 87 rc_get_opcode_info(inst->U.I.Opcode); 374 uint32_t inst; local in function:r500FragmentProgramDump 380 inst0 = inst = code->inst[n].inst0; 381 fprintf(stderr,"%d\t0:CMN_INST 0x%08x:", n, inst); [all...] |
| /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/r300/compiler/ |
| H A D | r500_fragprog.c | 66 struct rc_instruction * inst; local in function:r500_transform_IF 86 for (inst = writer->Inst; inst != inst_if; inst = inst->Next) { 88 rc_get_opcode_info(inst->U.I.Opcode); 373 uint32_t inst; local in function:r500FragmentProgramDump 379 inst0 = inst = code->inst[n].inst0; 380 fprintf(stderr,"%d\t0:CMN_INST 0x%08x:", n, inst); [all...] |
| /xsrc/external/mit/MesaLib/dist/src/broadcom/compiler/ |
| H A D | vir_opt_copy_propagate.c | 38 is_copy_mov(struct qinst *inst) argument 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 101 vir_has_unpack(struct qinst * inst,int chan) argument 119 try_copy_prop(struct v3d_compile * c,struct qinst * inst,struct qinst ** movs) argument 210 apply_kills(struct v3d_compile * c,struct qinst ** movs,struct qinst * inst) argument [all...] |