Home
last modified time | relevance | path

Searched refs:rc_instruction (Results 1 – 25 of 42) 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.h36 struct rc_instruction;
66 struct rc_instruction * inst,
90 struct rc_instruction * inst,
102 struct rc_instruction * inst,
107 rc_opcode rc_get_flow_control_inst(struct rc_instruction * inst);
109 struct rc_instruction * rc_match_endloop(struct rc_instruction * endloop);
110 struct rc_instruction * rc_match_bgnloop(struct rc_instruction * bgnloop);
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,
67 struct rc_instruction *inst, void *data);
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.h36 struct rc_instruction * BeginLoop;
37 struct rc_instruction * Cond;
38 struct rc_instruction * If;
39 struct rc_instruction * Brk;
40 struct rc_instruction * EndIf;
41 struct rc_instruction * EndLoop;
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()
163 struct rc_instruction * inst = reader_data.Readers[i].Inst; in copy_propagate()
176 struct rc_instruction * inst = reader_data.Readers[i].Inst; in copy_propagate()
227 static void constant_folding_mad(struct rc_instruction * inst) in constant_folding_mad()
268 static void constant_folding_mul(struct rc_instruction * inst) in constant_folding_mul()
[all …]
Dradeon_vert_fc.c61 static void mark_write(void * userdata, struct rc_instruction * inst, in mark_write()
79 struct rc_instruction * inst; in reserve_predicate_reg()
108 struct rc_instruction * inst, in lower_bgnloop()
111 struct rc_instruction * new_inst = in lower_bgnloop()
159 struct rc_instruction * inst, in lower_brk()
177 struct rc_instruction * inst, in lower_endloop()
180 struct rc_instruction * new_inst = in lower_endloop()
191 struct rc_instruction * inst, in lower_if()
234 struct rc_instruction * inst; in rc_vert_fc()
278 struct rc_instruction * to_delete = inst; in rc_vert_fc()
Dradeon_emulate_loops.c72 struct rc_instruction * ptr; in unroll_loop()
73 struct rc_instruction * first = loop->BeginLoop->Next; in unroll_loop()
74 struct rc_instruction * last = loop->EndLoop->Prev; in unroll_loop()
75 struct rc_instruction * append_to = last; in unroll_loop()
80 struct rc_instruction *new = rc_alloc_instruction(c); in unroll_loop()
81 memcpy(new, ptr, sizeof(struct rc_instruction)); in unroll_loop()
89 static void update_const_value(void * data, struct rc_instruction * inst, in update_const_value()
114 static void get_incr_amount(void * data, struct rc_instruction * inst, in get_incr_amount()
196 struct rc_instruction * inst; in try_unroll_loop()
328 struct rc_instruction * inst) in build_loop_info()
[all …]
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.c37 static void remap_regs(void * userdata, struct rc_instruction * inst, in remap_regs()
47 static void mark_used(void * userdata, struct rc_instruction * inst, in mark_used()
86 for (struct rc_instruction *inst = c->Program.Instructions.Next; in rc_remove_unused_constants()
128 for (struct rc_instruction *inst = c->Program.Instructions.Next; in rc_remove_unused_constants()
Dradeon_compiler.c114 struct rc_instruction *inst; in rc_calculate_inputs_outputs()
142 struct rc_instruction * inst; in rc_move_input()
174 struct rc_instruction * inst; in rc_move_output()
199 struct rc_instruction * inst; in rc_copy_output()
241 struct rc_instruction * inst_rcp; in rc_transform_fragment_wpos()
242 struct rc_instruction * inst_mul; in rc_transform_fragment_wpos()
243 struct rc_instruction * inst_mad; in rc_transform_fragment_wpos()
244 struct rc_instruction * inst; in rc_transform_fragment_wpos()
326 struct rc_instruction *inst_add; in rc_transform_fragment_face()
327 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.c368 struct rc_instruction *rci; in translate_vertex_program()
557 struct rc_instruction * LastRead;
563 struct rc_instruction *inst; in allocate_temporary_registers()
564 struct rc_instruction *end_loop = NULL; in allocate_temporary_registers()
604 struct rc_instruction * ptr; in allocate_temporary_registers()
672 struct rc_instruction *inst, in transform_nonnative_modifiers()
681 struct rc_instruction *new_inst; in transform_nonnative_modifiers()
711 struct rc_instruction* inst, in transform_source_conflicts()
720 struct rc_instruction * inst_mov = rc_insert_new_instruction(c, inst->Prev); in transform_source_conflicts()
735 struct rc_instruction * inst_mov = rc_insert_new_instruction(c, inst->Prev); in transform_source_conflicts()
[all …]
Dradeon_opcodes.h281 struct rc_instruction;
284 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.c46 struct rc_instruction * inst, in mark_used()
69 struct rc_instruction * inst; in rc_pair_remove_dead_sources()
Dradeon_variable.c158 struct rc_instruction * inst; in rc_variable_compute_live_intervals()
169 struct rc_instruction * bgnloop = in rc_variable_compute_live_intervals()
199 struct rc_instruction * bgnloop = in rc_variable_compute_live_intervals()
205 struct rc_instruction * endloop = in rc_variable_compute_live_intervals()
315 struct rc_instruction * inst, in get_variable_pair_helper()
357 struct rc_instruction * inst; in rc_get_variables()
/external/mesa3d/src/gallium/drivers/r300/compiler/tests/
Drc_test_helpers.h40 struct rc_instruction * inst,
45 struct rc_instruction * inst,
49 struct rc_instruction * inst,
55 struct rc_instruction * inst,
Dradeon_compiler_optimize_tests.c56 struct rc_instruction *inst; in test_runner_rc_optimize()
57 struct rc_instruction *inst_list[3]; in test_runner_rc_optimize()
Drc_test_helpers.c135 struct rc_instruction * inst, in init_rc_normal_src()
265 struct rc_instruction * inst, in init_rc_normal_dst()
370 struct rc_instruction * inst, in parse_rc_normal_instruction()
449 struct rc_instruction * inst, in init_rc_normal_instruction()
453 memset(inst, 0, sizeof(struct rc_instruction)); in init_rc_normal_instruction()
460 struct rc_instruction * new_inst = in add_instruction()

12