Home
last modified time | relevance | path

Searched refs:rc_instruction (Results 1 – 25 of 40) sorted by relevance

12

/external/mesa3d/src/gallium/drivers/r300/compiler/
Dradeon_dataflow.h35 struct rc_instruction;
48 typedef void (*rc_read_write_chan_fn)(void * userdata, struct rc_instruction * inst,
50 void rc_for_all_reads_chan(struct rc_instruction * inst, rc_read_write_chan_fn cb, void * userdata);
51 void rc_for_all_writes_chan(struct rc_instruction * inst, rc_read_write_chan_fn cb, void * userdata…
53 typedef void (*rc_read_write_mask_fn)(void * userdata, struct rc_instruction * inst,
55 void rc_for_all_reads_mask(struct rc_instruction * inst, rc_read_write_mask_fn cb, void * userdata);
56 void rc_for_all_writes_mask(struct rc_instruction * inst, rc_read_write_mask_fn cb, void * userdata…
58 typedef void (*rc_read_src_fn)(void * userdata, struct rc_instruction * inst,
60 void rc_for_all_reads_src(struct rc_instruction * inst, rc_read_src_fn cb,
64 struct rc_instruction * inst, struct rc_pair_instruction_arg * arg,
[all …]
Dradeon_program.h133 struct rc_instruction { struct
134 struct rc_instruction * Prev; argument
135 struct rc_instruction * Next; argument
156 struct rc_instruction Instructions; argument
181 struct rc_instruction*,
203 struct rc_instruction *rc_alloc_instruction(struct radeon_compiler * c);
204 struct rc_instruction *rc_insert_new_instruction(struct radeon_compiler * c, struct rc_instruction
205 void rc_insert_instruction(struct rc_instruction * after, struct rc_instruction * inst);
206 void rc_remove_instruction(struct rc_instruction * inst);
Dradeon_program.c57 struct rc_instruction * inst = c->Program.Instructions.Next; in rc_local_transform()
60 struct rc_instruction * current = inst; in rc_local_transform()
81 struct rc_instruction * inst, in get_used_temporaries_cb()
109 struct rc_instruction * inst; in rc_get_used_temporaries()
169 struct rc_instruction *rc_alloc_instruction(struct radeon_compiler * c) in rc_alloc_instruction()
171 struct rc_instruction * inst = memory_pool_malloc(&c->Pool, sizeof(struct rc_instruction)); in rc_alloc_instruction()
173 memset(inst, 0, sizeof(struct rc_instruction)); in rc_alloc_instruction()
184 void rc_insert_instruction(struct rc_instruction * after, struct rc_instruction * inst) in rc_insert_instruction()
193 struct rc_instruction *rc_insert_new_instruction(struct radeon_compiler * c, struct rc_instruction in rc_insert_new_instruction()
195 struct rc_instruction * inst = rc_alloc_instruction(c); in rc_insert_new_instruction()
[all …]
Dradeon_compiler_util.h9 struct rc_instruction;
39 struct rc_instruction * inst,
63 struct rc_instruction * inst,
75 struct rc_instruction * inst,
80 rc_opcode rc_get_flow_control_inst(struct rc_instruction * inst);
82 struct rc_instruction * rc_match_endloop(struct rc_instruction * endloop);
83 struct rc_instruction * rc_match_bgnloop(struct rc_instruction * bgnloop);
Dradeon_emulate_branches.c45 struct rc_instruction * If;
46 struct rc_instruction * Else;
58 static void handle_if(struct emulate_branch_state * s, struct rc_instruction * inst) in handle_if()
61 struct rc_instruction * inst_mov; in handle_if()
88 static void handle_else(struct emulate_branch_state * s, struct rc_instruction * inst) in handle_else()
119 static void scan_write(void * userdata, struct rc_instruction * inst, in scan_write()
131 static void remap_proxy_function(void * userdata, struct rc_instruction * inst, in remap_proxy_function()
149 struct rc_instruction * begin, in allocate_and_insert_proxies()
150 struct rc_instruction * end) in allocate_and_insert_proxies()
157 for(struct rc_instruction * inst = begin; inst != end; inst = inst->Next) { in allocate_and_insert_proxies()
[all …]
Dradeon_emulate_loops.h11 struct rc_instruction * BeginLoop;
12 struct rc_instruction * Cond;
13 struct rc_instruction * If;
14 struct rc_instruction * Brk;
15 struct rc_instruction * EndIf;
16 struct rc_instruction * EndLoop;
Dradeon_program_alu.h35 struct rc_instruction * inst,
40 struct rc_instruction * inst,
45 struct rc_instruction * inst,
50 struct rc_instruction * inst,
55 struct rc_instruction *inst,
60 struct rc_instruction * inst,
Dradeon_program_alu.c42 static struct rc_instruction *emit1( in emit1()
43 struct radeon_compiler * c, struct rc_instruction * after, in emit1()
47 struct rc_instruction *fpi = rc_insert_new_instruction(c, after); in emit1()
59 static struct rc_instruction *emit2( in emit2()
60 struct radeon_compiler * c, struct rc_instruction * after, in emit2()
65 struct rc_instruction *fpi = rc_insert_new_instruction(c, after); in emit2()
78 static struct rc_instruction *emit3( in emit3()
79 struct radeon_compiler * c, struct rc_instruction * after, in emit3()
85 struct rc_instruction *fpi = rc_insert_new_instruction(c, after); in emit3()
197 static int is_dst_safe_to_reuse(struct rc_instruction *inst) in is_dst_safe_to_reuse()
[all …]
Dradeon_dataflow.c42 struct rc_instruction * fullinst, in reads_normal_callback()
101 static void reads_pair(struct rc_instruction * fullinst, rc_read_write_mask_fn cb, void * userdata) in reads_pair()
133 struct rc_instruction * fullinst, in pair_sub_for_all_args()
184 struct rc_instruction * inst, in rc_for_all_reads_src()
220 struct rc_instruction * inst, in rc_pair_for_all_reads_arg()
241 void rc_for_all_reads_mask(struct rc_instruction * inst, rc_read_write_mask_fn cb, void * userdata) in rc_for_all_reads_mask()
256 static void writes_normal(struct rc_instruction * fullinst, rc_read_write_mask_fn cb, void * userda… in writes_normal()
268 static void writes_pair(struct rc_instruction * fullinst, rc_read_write_mask_fn cb, void * userdata) in writes_pair()
288 void rc_for_all_writes_mask(struct rc_instruction * inst, rc_read_write_mask_fn cb, void * userdata) in rc_for_all_writes_mask()
303 static void mask_to_chan_cb(void * data, struct rc_instruction * inst, in mask_to_chan_cb()
[all …]
Dradeon_optimize.c44 typedef void (*rc_presub_replace_fn)(struct rc_instruction *,
45 struct rc_instruction *,
66 static void copy_propagate_scan_read(void * data, struct rc_instruction * inst, in copy_propagate_scan_read()
106 struct rc_instruction * inst, in src_clobbered_reads_cb()
125 struct rc_instruction * inst, in is_src_clobbered_scan_write()
140 static void copy_propagate(struct radeon_compiler * c, struct rc_instruction * inst_mov) in copy_propagate()
161 struct rc_instruction * inst = reader_data.Readers[i].Inst; in copy_propagate()
210 static void constant_folding_mad(struct rc_instruction * inst) in constant_folding_mad()
251 static void constant_folding_mul(struct rc_instruction * inst) in constant_folding_mul()
284 static void constant_folding_add(struct rc_instruction * inst) in constant_folding_add()
[all …]
Dradeon_emulate_loops.c71 struct rc_instruction * ptr; in unroll_loop()
72 struct rc_instruction * first = loop->BeginLoop->Next; in unroll_loop()
73 struct rc_instruction * last = loop->EndLoop->Prev; in unroll_loop()
74 struct rc_instruction * append_to = last; in unroll_loop()
79 struct rc_instruction *new = rc_alloc_instruction(c); in unroll_loop()
80 memcpy(new, ptr, sizeof(struct rc_instruction)); in unroll_loop()
88 static void update_const_value(void * data, struct rc_instruction * inst, in update_const_value()
113 static void get_incr_amount(void * data, struct rc_instruction * inst, in get_incr_amount()
195 struct rc_instruction * inst; in try_unroll_loop()
327 struct rc_instruction * inst) in build_loop_info()
[all …]
Dradeon_vert_fc.c37 static void mark_write(void * userdata, struct rc_instruction * inst, in mark_write()
55 struct rc_instruction * inst; in reserve_predicate_reg()
84 struct rc_instruction * inst, in lower_bgnloop()
87 struct rc_instruction * new_inst = in lower_bgnloop()
135 struct rc_instruction * inst, in lower_brk()
153 struct rc_instruction * inst, in lower_endloop()
156 struct rc_instruction * new_inst = in lower_endloop()
167 struct rc_instruction * inst, in lower_if()
210 struct rc_instruction * inst; in rc_vert_fc()
254 struct rc_instruction * to_delete = inst; in rc_vert_fc()
Dradeon_compiler_util.c211 struct rc_instruction * inst, in normal_rewrite_writemask_cb()
223 struct rc_instruction * inst, in rc_normal_rewrite_writemask()
394 struct rc_instruction * inst, in can_use_presub_read_cb()
412 struct rc_instruction * inst, in rc_inst_can_use_presub()
515 struct rc_instruction * inst, in max_callback()
536 struct rc_instruction * inst; in rc_get_max_index()
584 struct rc_instruction * inst, in rc_pair_remove_src()
614 rc_opcode rc_get_flow_control_inst(struct rc_instruction * inst) in rc_get_flow_control_inst()
637 struct rc_instruction * rc_match_endloop(struct rc_instruction * endloop) in rc_match_endloop()
640 struct rc_instruction * inst; in rc_match_endloop()
[all …]
Dradeon_remove_constants.c36 static void remap_regs(void * userdata, struct rc_instruction * inst, in remap_regs()
46 static void mark_used(void * userdata, struct rc_instruction * inst, in mark_used()
85 for (struct rc_instruction *inst = c->Program.Instructions.Next; in rc_remove_unused_constants()
127 for (struct rc_instruction *inst = c->Program.Instructions.Next; in rc_remove_unused_constants()
Dradeon_compiler.c112 struct rc_instruction *inst; in rc_calculate_inputs_outputs()
140 struct rc_instruction * inst; in rc_move_input()
172 struct rc_instruction * inst; in rc_move_output()
197 struct rc_instruction * inst; in rc_copy_output()
239 struct rc_instruction * inst_rcp; in rc_transform_fragment_wpos()
240 struct rc_instruction * inst_mul; in rc_transform_fragment_wpos()
241 struct rc_instruction * inst_mad; in rc_transform_fragment_wpos()
242 struct rc_instruction * inst; in rc_transform_fragment_wpos()
324 struct rc_instruction *inst_add; in rc_transform_fragment_face()
325 struct rc_instruction *inst; in rc_transform_fragment_face()
[all …]
Dradeon_program_tex.c58 struct rc_instruction *inst, in scale_texcoords()
61 struct rc_instruction *inst_mov; in scale_texcoords()
82 struct rc_instruction *inst) in projective_divide()
84 struct rc_instruction *inst_mul, *inst_rcp; in projective_divide()
124 struct rc_instruction * inst, in radeonTransformTEX()
158 struct rc_instruction * inst_rcp = NULL; in radeonTransformTEX()
159 struct rc_instruction *inst_mul, *inst_add, *inst_cmp; in radeonTransformTEX()
301 struct rc_instruction *inst_mov; in radeonTransformTEX()
306 struct rc_instruction *inst_frc = rc_insert_new_instruction(c, inst->Prev); in radeonTransformTEX()
325 struct rc_instruction *inst_mul, *inst_frc, *inst_mad, *inst_add; in radeonTransformTEX()
[all …]
Dradeon_pair_schedule.c45 struct rc_instruction * Instruction;
446 static void emit_all_tex(struct schedule_state * s, struct rc_instruction * before) in emit_all_tex()
449 struct rc_instruction * inst_begin; in emit_all_tex()
712 static void presub_nop(struct rc_instruction * emitted) { in presub_nop()
760 struct rc_instruction * inst, in rgb_to_alpha_remap()
814 struct rc_instruction * inst, in is_rgb_to_alpha_possible()
1086 struct rc_instruction * before) in emit_instruction()
1145 static void scan_read(void * data, struct rc_instruction * inst, in scan_read()
1207 static void scan_write(void * data, struct rc_instruction * inst, in scan_write()
1243 struct rc_instruction * inst, in is_rgb_to_alpha_possible_normal()
[all …]
Dr3xx_vertprog.c361 struct rc_instruction *rci; in translate_vertex_program()
549 struct rc_instruction * LastRead;
555 struct rc_instruction *inst; in allocate_temporary_registers()
556 struct rc_instruction *end_loop = NULL; in allocate_temporary_registers()
596 struct rc_instruction * ptr; in allocate_temporary_registers()
664 struct rc_instruction *inst, in transform_nonnative_modifiers()
673 struct rc_instruction *new_inst; in transform_nonnative_modifiers()
703 struct rc_instruction* inst, in transform_source_conflicts()
712 struct rc_instruction * inst_mov = rc_insert_new_instruction(c, inst->Prev); in transform_source_conflicts()
727 struct rc_instruction * inst_mov = rc_insert_new_instruction(c, inst->Prev); in transform_source_conflicts()
[all …]
Dradeon_dataflow_swizzles.c35 struct rc_instruction * inst, unsigned src) in rewrite_source()
50 struct rc_instruction * mov = rc_insert_new_instruction(c, inst->Prev); in rewrite_source()
92 struct rc_instruction * inst; in rc_dataflow_swizzles()
Dradeon_opcodes.h277 struct rc_instruction;
280 const struct rc_instruction *inst,
Dradeon_dataflow_deadcode.c152 static void update_instruction(struct deadcode_state * s, struct rc_instruction * inst) in update_instruction()
230 for(struct rc_instruction * inst = c->Program.Instructions.Prev; in rc_dataflow_deadcode()
242 struct rc_instruction *ptr; in rc_dataflow_deadcode()
313 for(struct rc_instruction * inst = c->Program.Instructions.Next; in rc_dataflow_deadcode()
335 struct rc_instruction * todelete = inst; in rc_dataflow_deadcode()
Dradeon_pair_dead_sources.c20 struct rc_instruction * inst, in mark_used()
43 struct rc_instruction * inst; in rc_pair_remove_dead_sources()
Dradeon_variable.c157 struct rc_instruction * inst; in rc_variable_compute_live_intervals()
168 struct rc_instruction * bgnloop = in rc_variable_compute_live_intervals()
198 struct rc_instruction * bgnloop = in rc_variable_compute_live_intervals()
204 struct rc_instruction * endloop = in rc_variable_compute_live_intervals()
314 struct rc_instruction * inst, in get_variable_pair_helper()
356 struct rc_instruction * inst; in rc_get_variables()
/external/mesa3d/src/gallium/drivers/r300/compiler/tests/
Drc_test_helpers.h3 struct rc_instruction * inst,
8 struct rc_instruction * inst,
12 struct rc_instruction * inst,
Drc_test_helpers.c89 struct rc_instruction * inst, in init_rc_normal_src()
217 struct rc_instruction * inst, in init_rc_normal_dst()
315 struct rc_instruction * inst, in init_rc_normal_instruction()
324 memset(inst, 0, sizeof(struct rc_instruction)); in init_rc_normal_instruction()

12