/external/mesa3d/src/compiler/nir/ |
nir_lower_to_source_mods.c | 32 * ALU operations to make things nicer for the backend. It's just much 43 nir_alu_instr *alu = nir_instr_as_alu(instr); local 45 for (unsigned i = 0; i < nir_op_infos[alu->op].num_inputs; i++) { 46 if (!alu->src[i].src.is_ssa) 49 if (alu->src[i].src.ssa->parent_instr->type != nir_instr_type_alu) 52 nir_alu_instr *parent = nir_instr_as_alu(alu->src[i].src.ssa->parent_instr); 57 switch (nir_alu_type_get_base_type(nir_op_infos[alu->op].input_types[i])) { 77 nir_instr_rewrite_src(instr, &alu->src[i].src, parent->src[0].src); 78 if (alu->src[i].abs) { 81 alu->src[i].negate = (alu->src[i].negate != parent->src[0].negate) [all...] |
nir_opt_move_comparisons.c | 29 * This pass moves ALU comparison operations just before their first use. 149 /* Walk ALU instruction sources backwards so that bcsel's boolean 152 nir_alu_instr *alu = nir_instr_as_alu(instr); local 153 for (int i = nir_op_infos[alu->op].num_inputs - 1; i >= 0; i--) { 154 progress |= move_comparison_source(&alu->src[i].src,
|
nir_opt_undef.c | 78 opt_undef_vecN(nir_builder *b, nir_alu_instr *alu) 80 if (alu->op != nir_op_vec2 && 81 alu->op != nir_op_vec3 && 82 alu->op != nir_op_vec4 && 83 alu->op != nir_op_fmov && 84 alu->op != nir_op_imov) 87 assert(alu->dest.dest.is_ssa); 89 for (unsigned i = 0; i < nir_op_infos[alu->op].num_inputs; i++) { 90 if (!alu->src[i].src.is_ssa || 91 alu->src[i].src.ssa->parent_instr->type != nir_instr_type_ssa_undef 142 nir_alu_instr *alu = nir_instr_as_alu(instr); local [all...] |
nir_propagate_invariant.c | 82 nir_alu_instr *alu = nir_instr_as_alu(instr); local 83 if (!dest_is_invariant(&alu->dest.dest, invariants)) 86 alu->exact = true;
|
nir_lower_wpos_ytransform.c | 319 nir_alu_instr *alu = nir_instr_as_alu(instr); local 320 if (alu->op == nir_op_fddy || 321 alu->op == nir_op_fddy_fine || 322 alu->op == nir_op_fddy_coarse) 323 lower_fddy(state, alu);
|
nir_search.c | 236 unreachable("Invalid alu source type"); 451 nir_alu_instr *alu = nir_alu_instr_create(mem_ctx, expr->opcode); local 452 nir_ssa_dest_init(&alu->instr, &alu->dest.dest, num_components, 454 alu->dest.write_mask = (1 << num_components) - 1; 455 alu->dest.saturate = false; 462 alu->exact = state->has_exact_alu; 468 if (nir_op_infos[alu->op].input_sizes[i] != 0) 469 num_components = nir_op_infos[alu->op].input_sizes[i]; 471 alu->src[i] = construct_value(expr->srcs[i] [all...] |
nir_loop_analyze.c | 58 nir_op alu_op; /* The type of alu-operation */ 59 nir_loop_variable *alu_def; /* The def of the alu-operation */ 60 nir_loop_variable *invariant; /* The invariant alu-operand */ 166 nir_alu_instr *alu = nir_instr_as_alu(def->parent_instr); local 168 for (unsigned i = 0; i < nir_op_infos[alu->op].num_inputs; i++) { 169 if (!mark_invariant(alu->src[i].src.ssa, state)) { 243 nir_alu_instr *alu = nir_instr_as_alu(src_var->def->parent_instr); local 245 if (nir_op_infos[alu->op].num_inputs == 2) { 247 biv->alu_op = alu->op; 251 if (alu->src[i].src.ssa->parent_instr->type == nir_instr_type_load_const & 455 nir_alu_instr *alu = nir_instr_as_alu(alu_def->def->parent_instr); local 551 nir_alu_instr *alu = nir_instr_as_alu(terminator->conditional_instr); local [all...] |
nir_validate.c | 336 nir_alu_instr *alu = nir_instr_as_alu(state->instr); local 338 (nir_alu_type_get_base_type(nir_op_infos[alu->op].output_type) == 611 validate_assert(state, !"Invalid ALU instruction type"); [all...] |
nir.c | 1608 nir_alu_instr *alu = nir_instr_as_alu(use->parent_instr); local [all...] |
/external/mesa3d/src/gallium/drivers/r600/ |
eg_asm.c | 41 if (cfop->flags & CF_ALU) { /* ALU clauses */ 150 struct r600_bytecode_alu alu; local 160 memset(&alu, 0, sizeof(alu)); 161 alu.op = ALU_OP1_MOVA_INT; 162 alu.src[0].sel = bc->index_reg[id]; 163 alu.src[0].chan = 0; 165 alu.dst.sel = id == 0 ? CM_V_SQ_MOVA_DST_CF_IDX0 : CM_V_SQ_MOVA_DST_CF_IDX1; 167 alu.last = 1; 168 r = r600_bytecode_add_alu(bc, &alu); [all...] |
r600_asm.h | 179 struct list_head alu; member in struct:r600_bytecode_cf 259 struct r600_bytecode_alu *alu, unsigned id); 267 const struct r600_bytecode_alu *alu); 281 const struct r600_bytecode_alu *alu, unsigned type); 286 struct r600_bytecode_alu *alu, uint32_t word0, uint32_t word1); 298 struct r600_bytecode_alu *alu, unsigned id); 300 struct r600_bytecode_alu *alu, uint32_t word0, uint32_t word1);
|
r600_asm.c | 41 static inline bool alu_writes(struct r600_bytecode_alu *alu) 43 return alu->dst.write || alu->is_op3; 47 struct r600_bytecode *bc, struct r600_bytecode_alu *alu) 49 return r600_isa_alu(alu->op)->src_count; 53 struct r600_bytecode_alu *alu, unsigned id); 62 LIST_INITHEAD(&cf->alu); 71 struct r600_bytecode_alu *alu = CALLOC_STRUCT(r600_bytecode_alu); local 73 if (!alu) 75 LIST_INITHEAD(&alu->list) 323 struct r600_bytecode_alu *alu; local 637 struct r600_bytecode_alu *alu = slots[i]; local 786 struct r600_bytecode_alu *alu; local 1102 struct r600_bytecode_alu alu; local 1121 struct r600_bytecode_alu alu; local 1149 struct r600_bytecode_alu alu; local 1682 struct r600_bytecode_alu *alu; local 1801 struct r600_bytecode_alu *alu = NULL, *next_alu; local 2010 struct r600_bytecode_alu *alu = NULL; local 2515 struct r600_bytecode_alu alu; local 2532 struct r600_bytecode_alu alu; local [all...] |
r600_shader.c | 482 struct r600_bytecode_alu alu; local 491 memset(&alu, 0, sizeof(struct r600_bytecode_alu)); 494 alu.op = ALU_OP2_INTERP_ZW; 496 alu.op = ALU_OP2_INTERP_XY; 499 alu.dst.sel = ctx->shader->input[input].gpr; 500 alu.dst.write = 1; 503 alu.dst.chan = i % 4; 505 alu.src[0].sel = gpr; 506 alu.src[0].chan = (base_chan - (i % 2)); 508 alu.src[1].sel = V_SQ_ALU_SRC_PARAM_BASE + ctx->shader->input[input].lds_pos 523 struct r600_bytecode_alu alu; local 670 struct r600_bytecode_alu alu; local 703 struct r600_bytecode_alu alu; local 760 struct r600_bytecode_alu alu; local 840 struct r600_bytecode_alu alu; local 980 struct r600_bytecode_alu alu; local 1024 struct r600_bytecode_alu alu; local 1037 struct r600_bytecode_alu alu; local 1253 struct r600_bytecode_alu alu; local 1416 struct r600_bytecode_alu alu; local 1484 struct r600_bytecode_alu alu; local 1733 struct r600_bytecode_alu alu; local 1882 struct r600_bytecode_alu alu; local 1938 struct r600_bytecode_alu alu; local 2022 struct r600_bytecode_alu alu; local 2108 struct r600_bytecode_alu alu; local 2143 struct r600_bytecode_alu alu; local 2446 struct r600_bytecode_alu alu; local 2629 struct r600_bytecode_alu alu; local 2677 struct r600_bytecode_alu alu; local 2788 struct r600_bytecode_alu alu; local 3215 struct r600_bytecode_alu alu; local 3229 struct r600_bytecode_alu alu; local 3245 struct r600_bytecode_alu alu; local 3351 struct r600_bytecode_alu alu; local 3749 struct r600_bytecode_alu alu; local 3871 struct r600_bytecode_alu alu; local 3904 struct r600_bytecode_alu alu; local 3978 struct r600_bytecode_alu alu; local 4009 struct r600_bytecode_alu alu; local 4040 struct r600_bytecode_alu alu; local 4102 struct r600_bytecode_alu alu; local 4149 struct r600_bytecode_alu alu; local 4194 struct r600_bytecode_alu alu; local 4227 struct r600_bytecode_alu alu; local 4268 struct r600_bytecode_alu alu; local 4298 struct r600_bytecode_alu alu; local 4347 struct r600_bytecode_alu alu; local 4400 struct r600_bytecode_alu alu; local 4458 struct r600_bytecode_alu alu; local 4529 struct r600_bytecode_alu alu; local 4560 struct r600_bytecode_alu alu; local 4603 struct r600_bytecode_alu alu; local 4724 struct r600_bytecode_alu alu; local 4758 struct r600_bytecode_alu alu; local 4908 struct r600_bytecode_alu alu; local 4936 struct r600_bytecode_alu alu; local 4958 struct r600_bytecode_alu alu; local 4980 struct r600_bytecode_alu alu; local 5028 struct r600_bytecode_alu alu; local 5068 struct r600_bytecode_alu alu; local 5933 struct r600_bytecode_alu alu; local 5982 struct r600_bytecode_alu alu; local 6038 struct r600_bytecode_alu alu; local 6101 struct r600_bytecode_alu alu; local 6153 struct r600_bytecode_alu alu; local 6233 struct r600_bytecode_alu alu; local 6319 struct r600_bytecode_alu alu; local 6483 struct r600_bytecode_alu alu; local 6512 struct r600_bytecode_alu alu; local 6542 struct r600_bytecode_alu alu; local 6581 struct r600_bytecode_alu alu; local 6649 struct r600_bytecode_alu alu; local 6744 struct r600_bytecode_alu alu; local 6773 struct r600_bytecode_alu alu; local 7656 struct r600_bytecode_alu alu; local 7768 struct r600_bytecode_alu alu; local 7819 struct r600_bytecode_alu alu; local 7850 struct r600_bytecode_alu alu; local 7920 struct r600_bytecode_alu alu; local 8049 struct r600_bytecode_alu alu; local 8309 struct r600_bytecode_alu alu; local 8355 struct r600_bytecode_alu alu; local 8432 struct r600_bytecode_alu alu; local 8463 struct r600_bytecode_alu alu; local 8887 struct r600_bytecode_alu alu; local 8959 struct r600_bytecode_alu alu; local 9007 struct r600_bytecode_alu alu; local [all...] |
/external/mesa3d/src/mesa/drivers/dri/i965/ |
brw_nir_analyze_boolean_resolves.c | 92 /* For ALU instructions, the resolve status is handled in a 110 nir_alu_instr *alu = nir_instr_as_alu(instr); local 111 switch (alu->op) { 137 resolve_status = get_resolve_status_for_src(&alu->src[0].src); 143 uint8_t src0_status = get_resolve_status_for_src(&alu->src[0].src); 144 uint8_t src1_status = get_resolve_status_for_src(&alu->src[1].src); 168 if (nir_alu_type_get_base_type(nir_op_infos[alu->op].output_type) == nir_type_bool) { 189 if (!alu->dest.dest.is_ssa &&
|
/external/mesa3d/src/gallium/drivers/freedreno/ir3/ |
ir3_nir_lower_if_else.c | 50 * Possibly what constitutes an ALU vs SFU differs between hw 139 nir_alu_instr *alu = nir_instr_as_alu(instr); local 140 if (!valid_dest(block, &alu->dest.dest))
|
/external/mesa3d/src/gallium/drivers/freedreno/a2xx/ |
disasm-a2xx.c | 57 * ALU instructions: 217 instr_alu_t *alu = (instr_alu_t *)dwords; local 227 printf("%s", vector_instructions[alu->vector_opc].name); 229 if (alu->pred_select & 0x2) { 233 printf((alu->pred_select & 0x1) ? "EQ" : "NE"); 238 print_dstreg(alu->vector_dest, alu->vector_write_mask, alu->export_data); 240 if (vector_instructions[alu->vector_opc].num_srcs == 3) { 241 print_srcreg(alu->src3_reg, alu->src3_sel, alu->src3_swiz [all...] |
ir-a2xx.c | 168 /* third pass, emit ALU/FETCH: */ 359 * ALU instructions: 366 instr_alu_t *alu = (instr_alu_t *)dwords; local 372 memset(alu, 0, sizeof(*alu)); 375 switch (instr->alu.vector_opc) { 406 if (instr->alu.vector_opc == (instr_vector_opc_t)~0) { 407 alu->vector_opc = MAXv; 408 alu->vector_write_mask = 0; 410 alu->vector_opc = instr->alu.vector_opc [all...] |
ir-a2xx.h | 85 /* ALU specific: */ 91 } alu; member in union:ir2_instruction::__anon29496 153 instr->alu.vector_opc = vop; 154 instr->alu.scalar_opc = sop;
|
fd2_compiler.c | 316 add_dst_reg(struct fd2_compile_context *ctx, struct ir2_instruction *alu, 354 return ir2_reg_create(alu, num, swiz, flags); 358 add_src_reg(struct fd2_compile_context *ctx, struct ir2_instruction *alu, 407 alu->sync = true; 411 return ir2_reg_create(alu, num, swiz, flags); 415 add_vector_clamp(struct tgsi_full_instruction *inst, struct ir2_instruction *alu) 418 alu->alu.vector_clamp = true; 423 add_scalar_clamp(struct tgsi_full_instruction *inst, struct ir2_instruction *alu) 426 alu->alu.scalar_clamp = true 567 struct ir2_instruction *alu; local 619 struct ir2_instruction *alu; local 692 struct ir2_instruction *alu; local [all...] |
/external/mesa3d/src/gallium/drivers/r600/sb/ |
sb_sched.h | 250 container_node ready, ready_copies; // alu only 253 val_set live; // values live at the end of the alu clause 255 alu_clause_tracker alu; member in class:r600_sb::post_scheduler 267 live(), ucm(), alu(sh), regmap(), cleared_interf() {}
|
sb_bc.h | 592 unsigned alu; member in struct:r600_sb::shader_stats 600 shader_stats() : ndw(), ngpr(), nstack(), cf(), alu(), alu_clauses(),
|
/external/mesa3d/src/gallium/drivers/r300/compiler/ |
radeon_code.h | 188 int alu_offset; /**< first ALU instruction */ 189 int alu_end; /**< last ALU instruction, relative to alu_offset */ 203 unsigned int length; /**< total # of ALU instructions used */ 211 } alu; member in struct:r300_fragment_program_code
|
/external/mesa3d/src/intel/vulkan/ |
genX_cmd_buffer.c | 2593 #define alu macro [all...] |
/external/valgrind/VEX/priv/ |
host_s390_defs.h | 167 /* The kind of ALU instructions */ 414 } alu; member in union:__anon41880::__anon41881
|
/external/mesa3d/prebuilt-intermediates/nir/ |
nir_opt_algebraic.c | 19781 nir_alu_instr *alu = nir_instr_as_alu(instr); local 21668 nir_alu_instr *alu = nir_instr_as_alu(instr); local [all...] |