Home
last modified time | relevance | path

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

12

/third_party/mesa3d/src/gallium/drivers/r300/compiler/
H A Dradeon_dataflow.h37 struct rc_instruction;
50 typedef void (*rc_read_write_chan_fn)(void * userdata, struct rc_instruction * inst,
52 void rc_for_all_reads_chan(struct rc_instruction * inst, rc_read_write_chan_fn cb, void * userdata);
53 void rc_for_all_writes_chan(struct rc_instruction * inst, rc_read_write_chan_fn cb, void * userdata);
55 typedef void (*rc_read_write_mask_fn)(void * userdata, struct rc_instruction * inst,
57 void rc_for_all_reads_mask(struct rc_instruction * inst, rc_read_write_mask_fn cb, void * userdata);
58 void rc_for_all_writes_mask(struct rc_instruction * inst, rc_read_write_mask_fn cb, void * userdata);
60 typedef void (*rc_read_src_fn)(void * userdata, struct rc_instruction * inst,
62 void rc_for_all_reads_src(struct rc_instruction * inst, rc_read_src_fn cb,
66 struct rc_instruction * ins
[all...]
H A 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 * ins
[all...]
H A Dradeon_program.h133 struct rc_instruction { struct
134 struct rc_instruction * Prev;
135 struct rc_instruction * Next;
156 struct rc_instruction Instructions;
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 * after);
205 void rc_insert_instruction(struct rc_instruction * after, struct rc_instruction * ins
[all...]
H A 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,
65 struct rc_instruction * inst,
72 struct rc_instruction *inst, void *data);
H A Dradeon_compiler_util.h36 struct rc_instruction;
66 struct rc_instruction * inst,
90 struct rc_instruction * inst,
101 void rc_pair_remove_src(struct rc_instruction * inst,
105 rc_opcode rc_get_flow_control_inst(struct rc_instruction * inst);
107 struct rc_instruction * rc_match_endloop(struct rc_instruction * endloop);
108 struct rc_instruction * rc_match_bgnloop(struct rc_instruction * bgnloop);
H A 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 * ins in allocate_and_insert_proxies()
[all...]
H A Dradeon_program_alu.c43 static struct rc_instruction *emit1( in emit1()
44 struct radeon_compiler * c, struct rc_instruction * after, in emit1()
48 struct rc_instruction *fpi = rc_insert_new_instruction(c, after); in emit1()
60 static struct rc_instruction *emit2( in emit2()
61 struct radeon_compiler * c, struct rc_instruction * after, in emit2()
66 struct rc_instruction *fpi = rc_insert_new_instruction(c, after); in emit2()
79 static struct rc_instruction *emit3( in emit3()
80 struct radeon_compiler * c, struct rc_instruction * after, in emit3()
86 struct rc_instruction *fpi = rc_insert_new_instruction(c, after); in emit3()
198 static int is_dst_safe_to_reuse(struct rc_instruction *ins
[all...]
H A 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 * userdata) 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 * ins
[all...]
H A Dradeon_optimize.c46 typedef void (*rc_presub_replace_fn)(struct rc_instruction *,
47 struct rc_instruction *,
68 static void copy_propagate_scan_read(void * data, struct rc_instruction * inst, in copy_propagate_scan_read()
108 struct rc_instruction * inst, in src_clobbered_reads_cb()
127 struct rc_instruction * inst, in is_src_clobbered_scan_write()
142 static void copy_propagate(struct radeon_compiler * c, struct rc_instruction * inst_mov) in copy_propagate()
165 struct rc_instruction * inst = reader_data.Readers[i].Inst; in copy_propagate()
178 struct rc_instruction * inst = reader_data.Readers[i].Inst; in copy_propagate()
229 static void constant_folding_mad(struct rc_instruction * inst) in constant_folding_mad()
270 static void constant_folding_mul(struct rc_instruction * ins
[all...]
H A Dradeon_compiler_util.c218 struct rc_instruction * inst, in normal_rewrite_writemask_cb()
230 struct rc_instruction * inst, in rc_normal_rewrite_writemask()
401 struct rc_instruction * inst, in can_use_presub_read_cb()
419 struct rc_instruction * inst, in rc_inst_can_use_presub()
522 struct rc_instruction * inst, in max_callback()
543 struct rc_instruction * inst; in rc_get_max_index()
568 struct rc_instruction * inst, in rc_pair_remove_src()
587 rc_opcode rc_get_flow_control_inst(struct rc_instruction * inst) in rc_get_flow_control_inst()
610 struct rc_instruction * rc_match_endloop(struct rc_instruction * endloo
[all...]
H A Dradeon_vert_fc.c60 static void mark_write(void * userdata, struct rc_instruction * inst, in mark_write()
78 struct rc_instruction * inst; in reserve_predicate_reg()
107 struct rc_instruction * inst, in lower_bgnloop()
110 struct rc_instruction * new_inst = in lower_bgnloop()
158 struct rc_instruction * inst, in lower_brk()
176 struct rc_instruction * inst, in lower_endloop()
179 struct rc_instruction * new_inst = in lower_endloop()
190 struct rc_instruction * inst, in lower_if()
224 struct rc_instruction * inst; in rc_vert_fc()
H A Dradeon_compiler.c117 struct rc_instruction *inst; in rc_calculate_inputs_outputs()
145 struct rc_instruction * inst; in rc_copy_output()
146 struct rc_instruction * insert_pos = c->Program.Instructions.Prev; in rc_copy_output()
147 struct rc_instruction * last_write_inst = NULL; in rc_copy_output()
188 struct rc_instruction * prev = inst->Prev; in rc_copy_output()
189 struct rc_instruction * next = inst->Next; in rc_copy_output()
190 memcpy(inst, last_write_inst, sizeof(struct rc_instruction)); in rc_copy_output()
225 struct rc_instruction * inst_rcp; in rc_transform_fragment_wpos()
226 struct rc_instruction * inst_mul; in rc_transform_fragment_wpos()
227 struct rc_instruction * inst_ma in rc_transform_fragment_wpos()
[all...]
H A 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()
H A 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()
157 struct rc_instruction * inst_rcp = NULL; in radeonTransformTEX()
158 struct rc_instruction *inst_mul, *inst_add, *inst_cmp; in radeonTransformTEX()
300 struct rc_instruction *inst_mov; in radeonTransformTEX()
305 struct rc_instruction *inst_frc = rc_insert_new_instruction(c, inst->Prev); in radeonTransformTEX()
324 struct rc_instruction *inst_mu in radeonTransformTEX()
[all...]
H A Dradeon_pair_schedule.c45 struct rc_instruction * Instruction;
123 struct rc_instruction * Inst;
442 static void emit_all_tex(struct schedule_state * s, struct rc_instruction * before) in emit_all_tex()
445 struct rc_instruction * inst_begin; in emit_all_tex()
708 static void presub_nop(struct rc_instruction * emitted) { in presub_nop()
757 struct rc_instruction * inst, in rgb_to_alpha_remap()
810 struct rc_instruction * inst, in is_rgb_to_alpha_possible()
1082 struct rc_instruction * before) in emit_instruction()
1141 static void scan_read(void * data, struct rc_instruction * inst, in scan_read()
1203 static void scan_write(void * data, struct rc_instruction * ins
[all...]
H A Dr3xx_vertprog.c370 struct rc_instruction *rci; in translate_vertex_program()
590 struct rc_instruction * LastRead;
614 struct rc_instruction *inst; in allocate_temporary_registers()
615 struct rc_instruction *end_loop = NULL; in allocate_temporary_registers()
697 struct rc_instruction *inst, in transform_nonnative_modifiers()
706 struct rc_instruction *new_inst; in transform_nonnative_modifiers()
737 struct rc_instruction* inst, in transform_source_conflicts()
746 struct rc_instruction * inst_mov = rc_insert_new_instruction(c, inst->Prev); in transform_source_conflicts()
764 struct rc_instruction * inst_mov = rc_insert_new_instruction(c, inst->Prev); in transform_source_conflicts()
790 struct rc_instruction * ins in rc_vs_add_artificial_outputs()
[all...]
H A Dradeon_opcodes.h260 struct rc_instruction;
263 const struct rc_instruction *inst,
H A Dradeon_variable.c139 struct rc_instruction * inst; in rc_variable_compute_live_intervals()
150 struct rc_instruction * bgnloop = in rc_variable_compute_live_intervals()
180 struct rc_instruction * bgnloop = in rc_variable_compute_live_intervals()
186 struct rc_instruction * endloop = in rc_variable_compute_live_intervals()
296 struct rc_instruction * inst, in get_variable_pair_helper()
363 struct rc_instruction * inst; in rc_get_variables()
H A Dradeon_pair_dead_sources.c46 struct rc_instruction * inst, in mark_used()
69 struct rc_instruction * inst; in rc_pair_remove_dead_sources()
H A Dradeon_dataflow_deadcode.c144 static void update_instruction(struct deadcode_state * s, struct rc_instruction * inst) in update_instruction()
212 for(struct rc_instruction * inst = c->Program.Instructions.Prev; in rc_dataflow_deadcode()
232 struct rc_instruction *ptr; in rc_dataflow_deadcode()
305 for(struct rc_instruction * inst = c->Program.Instructions.Next; in rc_dataflow_deadcode()
327 struct rc_instruction * todelete = inst; in rc_dataflow_deadcode()
H A Dradeon_pair_regalloc.c212 static void scan_read_callback(void * data, struct rc_instruction * inst, in scan_read_callback()
236 static void remap_register(void * data, struct rc_instruction * inst, in remap_register()
314 struct rc_instruction * inst, in variable_get_class_read_cb()
520 struct rc_instruction * inst; in do_advanced_regalloc()
549 struct rc_instruction * endloop = in do_advanced_regalloc()
782 for (struct rc_instruction *inst = s.C->Program.Instructions.Next; in rc_pair_regalloc()
H A Dradeon_dataflow_swizzles.c41 struct rc_instruction * inst, unsigned src) in rewrite_source()
56 struct rc_instruction * mov = rc_insert_new_instruction(c, inst->Prev); in rewrite_source()
424 struct rc_instruction * inst; in rc_dataflow_swizzles()
/third_party/mesa3d/src/gallium/drivers/r300/compiler/tests/
H A Drc_test_helpers.h40 struct rc_instruction * inst,
45 struct rc_instruction * inst,
49 struct rc_instruction * inst,
55 struct rc_instruction * inst,
H A 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()
H A Drc_test_helpers.c50 /* This file contains some helper functions for filling out the rc_instruction
136 struct rc_instruction * inst, in init_rc_normal_src()
266 struct rc_instruction * inst, in init_rc_normal_dst()
371 struct rc_instruction * inst, in parse_rc_normal_instruction()
450 struct rc_instruction * inst, in init_rc_normal_instruction()
454 memset(inst, 0, sizeof(struct rc_instruction)); in init_rc_normal_instruction()
461 struct rc_instruction * new_inst = in add_instruction()

Completed in 18 milliseconds

12