Home
last modified time | relevance | path

Searched refs:block_idx (Results 1 – 25 of 30) sorted by relevance

12

/third_party/mesa3d/src/gallium/drivers/freedreno/a2xx/
Dir2.c105 insert(struct ir2_context *ctx, unsigned block_idx, unsigned reg_idx, in insert() argument
115 if (s->instr && s->instr->block_idx != block_idx) in insert()
117 if (s->instr_s && s->instr_s->block_idx != block_idx) in insert()
190 sched = insert(ctx, instr->block_idx, reg->idx, src1, &comp); in scalarize_case1()
207 ins->block_idx = instr->block_idx; in scalarize_case1()
224 int block_idx = -1; in sched_next() local
242 if (block_idx < 0) in sched_next()
243 block_idx = instr->block_idx; in sched_next()
244 else if (block_idx != instr->block_idx || /* must be same block */ in sched_next()
295 assert(block_idx == -1); in sched_next()
[all …]
Dir2_assemble.c375 unsigned block_idx = 0; in assemble() local
403 .address = instr->cf.block_idx, /* will be fixed later */ in assemble()
406 .direction = instr->cf.block_idx > instr->block_idx, in assemble()
427 block = ctx->instr_sched[j].instr->block_idx; in assemble()
429 block = ctx->instr_sched[j].instr_s->block_idx; in assemble()
431 assert(block_idx <= block); in assemble()
452 (exec.count && (need_sync || block != block_idx))) { in assemble()
459 while (block_idx < block) in assemble()
460 block_addr[++block_idx] = num_cf; in assemble()
Dir2_cp.c68 if (p->block_idx != instr->block_idx) in cp_src()
188 redirect &= (c[i]->block_idx == instr->block_idx); in cp_export()
Dir2_private.h79 unsigned block_idx; member
137 uint8_t block_idx; member
150 unsigned block_idx, pred_idx; member
Dir2_nir.c285 instr->block_idx = ctx->block_idx; in ir2_instr_create()
824 ctx->block_has_jump[ctx->block_idx] = true; in emit_instr()
904 ctx->block_idx = block->index; in emit_block()
923 instr->cf.block_idx = succs->index; in emit_block()
/third_party/mesa3d/src/amd/compiler/
Daco_spill.cpp176 next_uses_per_block(spill_ctx& ctx, unsigned block_idx, uint32_t& worklist) in next_uses_per_block() argument
178 Block* block = &ctx.program->blocks[block_idx]; in next_uses_per_block()
179 ctx.next_use_distances_start[block_idx] = ctx.next_use_distances_end[block_idx]; in next_uses_per_block()
180 auto& next_use_distances_start = ctx.next_use_distances_start[block_idx]; in next_uses_per_block()
208 next_use_distances_start[op.getTemp()] = {block_idx, idx}; in next_uses_per_block()
213 assert(block_idx != 0 || next_use_distances_start.empty()); in next_uses_per_block()
219 std::pair<uint32_t, uint32_t> distance{block_idx, 0}; in next_uses_per_block()
281 unsigned block_idx = --worklist; in compute_global_next_uses() local
282 next_uses_per_block(ctx, block_idx, worklist); in compute_global_next_uses()
440 get_demand_before(spill_ctx& ctx, unsigned block_idx, unsigned idx) in get_demand_before() argument
[all …]
Daco_lower_phis.cpp54 get_ssa(Program* program, unsigned block_idx, ssa_state* state, bool input) in get_ssa() argument
57 if (state->visited[block_idx]) in get_ssa()
58 return state->outputs[block_idx]; in get_ssa()
61 Operand output = get_ssa(program, block_idx, state, true); in get_ssa()
62 state->visited[block_idx] = true; in get_ssa()
63 state->outputs[block_idx] = output; in get_ssa()
68 if (state->any_pred_defined[block_idx] == pred_defined::undef) in get_ssa()
71 Block& block = program->blocks[block_idx]; in get_ssa()
82 bool previously_visited = state->visited[block_idx]; in get_ssa()
87 state->visited[block_idx] = true; in get_ssa()
[all …]
Daco_ssa_elimination.cpp87 for (unsigned block_idx = 0; block_idx < ctx.program->blocks.size(); ++block_idx) { in insert_parallelcopies() local
88 auto& logical_phi_info = ctx.logical_phi_info[block_idx]; in insert_parallelcopies()
92 Block& block = ctx.program->blocks[block_idx]; in insert_parallelcopies()
115 for (unsigned block_idx = 0; block_idx < ctx.program->blocks.size(); ++block_idx) { in insert_parallelcopies() local
116 auto& linear_phi_info = ctx.linear_phi_info[block_idx]; in insert_parallelcopies()
120 Block& block = ctx.program->blocks[block_idx]; in insert_parallelcopies()
Daco_lower_to_cssa.cpp187 uint32_t block_idx = node_var.defined_at; in intersects() local
190 bool parent_live = ctx.live_out[block_idx].count(parent.id()); in intersects()
198 ? ctx.program->blocks[block_idx].logical_preds in intersects()
199 : ctx.program->blocks[block_idx].linear_preds; in intersects()
206 for (const copy& cp : ctx.parallelcopies[block_idx]) { in intersects()
218 const Block& block = ctx.program->blocks[block_idx]; in intersects()
338 try_coalesce_copy(cssa_ctx& ctx, copy copy, uint32_t block_idx) in try_coalesce_copy() argument
348 uint32_t pred = block_idx; in try_coalesce_copy()
350 block_idx = pred; in try_coalesce_copy()
353 } while (block_idx != pred && ctx.live_out[pred].count(copy.op.tempId())); in try_coalesce_copy()
[all …]
Daco_live_var_analysis.cpp449 unsigned block_idx = --worklist; in live_var_analysis() local
450 process_live_temps_per_block(program, result, &program->blocks[block_idx], worklist, in live_var_analysis()
452 new_demand.update(program->blocks[block_idx].register_demand); in live_var_analysis()
Daco_insert_exec_mask.cpp111 mark_block_wqm(wqm_ctx& ctx, unsigned block_idx) in mark_block_wqm() argument
113 if (ctx.branch_wqm[block_idx]) in mark_block_wqm()
117 if (block.index >= block_idx && block.kind & block_kind_top_level) in mark_block_wqm()
496 handle_atomic_data(exec_ctx& ctx, Builder& bld, unsigned block_idx, aco_ptr<Instruction>& instr) in handle_atomic_data() argument
509 transition_to_WQM(ctx, bld, block_idx); in handle_atomic_data()
/third_party/ffmpeg/libavfilter/
Dqp_table.c38 unsigned int block_idx; in ff_qp_table_extract() local
65 for (block_idx = 0; block_idx < nb_mb; block_idx++) { in ff_qp_table_extract()
66 AVVideoBlockParams *b = av_video_enc_params_block(par, block_idx); in ff_qp_table_extract()
67 (*table)[block_idx] = par->qp + b->delta_qp; in ff_qp_table_extract()
Dvf_qp.c136 #define BLOCK_QP_DELTA(block_idx) \ in filter_frame() argument
137 (par_in ? av_video_enc_params_block(par_in, block_idx)->delta_qp : 0) in filter_frame()
144 unsigned int block_idx = y * s->qstride + x; in filter_frame() local
145 AVVideoBlockParams *b = av_video_enc_params_block(par_out, block_idx); in filter_frame()
146 int qp = sd_in ? in_qp_global + BLOCK_QP_DELTA(block_idx) : NAN; in filter_frame()
162 unsigned int block_idx = y * s->qstride + x; in filter_frame() local
163 AVVideoBlockParams *b = av_video_enc_params_block(par_out, block_idx); in filter_frame()
164 b->delta_qp = s->lut[129 + (int8_t)(in_qp_global + BLOCK_QP_DELTA(block_idx))]; in filter_frame()
/third_party/skia/third_party/externals/brotli/c/enc/
Dblock_splitter_inc.h232 size_t block_idx = 0; in FN() local
234 BROTLI_DCHECK(block_idx < num_blocks); in FN()
235 ++block_lengths[block_idx]; in FN()
237 ++block_idx; in FN()
240 BROTLI_DCHECK(block_idx == num_blocks); in FN()
342 size_t block_idx = 0; in FN() local
349 split->types[block_idx] = id; in FN()
350 split->lengths[block_idx] = cur_length; in FN()
353 ++block_idx; in FN()
356 split->num_blocks = block_idx; in FN()
/third_party/node/deps/brotli/c/enc/
Dblock_splitter_inc.h232 size_t block_idx = 0; in FN() local
234 BROTLI_DCHECK(block_idx < num_blocks); in FN()
235 ++block_lengths[block_idx]; in FN()
237 ++block_idx; in FN()
240 BROTLI_DCHECK(block_idx == num_blocks); in FN()
342 size_t block_idx = 0; in FN() local
349 split->types[block_idx] = id; in FN()
350 split->lengths[block_idx] = cur_length; in FN()
353 ++block_idx; in FN()
356 split->num_blocks = block_idx; in FN()
/third_party/ffmpeg/libavcodec/
Dwmavoice.c1090 int block_idx, AMRFixed *fcb) in aw_pulse_set2() argument
1101 int pulse_off = s->aw_first_pulse_off[block_idx], in aw_pulse_set2()
1105 if (s->aw_n_pulses[block_idx] > 0) in aw_pulse_set2()
1111 if (block_idx == 0) { in aw_pulse_set2()
1115 if (s->aw_n_pulses[block_idx] > 0) in aw_pulse_set2()
1120 pulse_start = s->aw_n_pulses[block_idx] > 0 ? pulse_off - range / 2 : 0; in aw_pulse_set2()
1128 if (s->aw_n_pulses[block_idx] > 0) in aw_pulse_set2()
1143 aidx = get_bits(gb, s->aw_n_pulses[0] > 0 ? 5 - 2 * block_idx : 4); in aw_pulse_set2()
1180 int block_idx, AMRFixed *fcb) in aw_pulse_set1() argument
1182 int val = get_bits(gb, 12 - 2 * (s->aw_idx_is_ext && !block_idx)); in aw_pulse_set1()
[all …]
Datrac9dec.c645 int frame_idx, int block_idx) in atrac9_decode_block() argument
649 const int stereo = s->block_config->type[block_idx] == ATRAC9_BLOCK_TYPE_CPE; in atrac9_decode_block()
651 if (s->block_config->type[block_idx] == ATRAC9_BLOCK_TYPE_LFE) { in atrac9_decode_block()
774 const int dst_idx = s->block_config->plane_map[block_idx][i]; in atrac9_decode_block()
Dmjpegdec.c1506 int block_idx = s->block_stride[c] * (v * mb_y + y) + in mjpeg_decode_scan() local
1508 int16_t *block = s->blocks[c][block_idx]; in mjpeg_decode_scan()
1558 int block_idx = mb_y * s->block_stride[c]; in mjpeg_decode_scan_progressive_ac() local
1559 int16_t (*block)[64] = &s->blocks[c][block_idx]; in mjpeg_decode_scan_progressive_ac()
1560 uint8_t *last_nnz = &s->last_nnz[c][block_idx]; in mjpeg_decode_scan_progressive_ac()
1615 int block_idx = mb_y * s->block_stride[c]; in mjpeg_idct_scan_progressive_ac() local
1616 int16_t (*block)[64] = &s->blocks[c][block_idx]; in mjpeg_idct_scan_progressive_ac()
Dh264dec.c809 const unsigned int block_idx = y * p->mb_width + x; in h264_export_enc_params() local
811 AVVideoBlockParams *b = av_video_enc_params_block(par, block_idx); in h264_export_enc_params()
/third_party/ffmpeg/libavformat/
Dwv.h38 uint32_t block_idx; //< index of the first sample in this block member
Dwv.c43 wv->block_idx = AV_RL32(data + 16); in ff_wv_parse_header()
Dwvdec.c321 pkt->pts = wc->header.block_idx; in wv_read_packet()
/third_party/gstreamer/gstplugins_good/gst/isomp4/
Dgstqtmux.c2735 guint64 block_idx; in prefill_get_sample_size() local
2738 block_idx = prefill_get_block_index (qtmux, qpad); in prefill_get_sample_size()
2740 gst_util_uint64_scale (block_idx + 1, in prefill_get_sample_size()
2774 guint64 block_idx; in prefill_get_next_timestamp() local
2777 block_idx = prefill_get_block_index (qtmux, qpad); in prefill_get_next_timestamp()
2779 gst_util_uint64_scale (block_idx + 1, in prefill_get_next_timestamp()
2799 guint64 block_idx; in prefill_raw_audio_prepare_buf_func() local
2807 block_idx = gst_util_uint64_scale_ceil (qtpad->raw_audio_adapter_offset, in prefill_raw_audio_prepare_buf_func()
2812 gst_util_uint64_scale (block_idx + 1, in prefill_raw_audio_prepare_buf_func()
2843 gst_util_uint64_scale (block_idx + 2, in prefill_raw_audio_prepare_buf_func()
[all …]
/third_party/mesa3d/src/intel/compiler/
Dbrw_schedule_instructions.cpp614 this->block_idx = 0; in instruction_scheduler()
686 int block_idx; member in instruction_scheduler
887 if (!BITSET_TEST(livein[block_idx], inst->dst.nr) && in get_register_pressure_benefit()
897 !BITSET_TEST(liveout[block_idx], inst->src[i].nr) && in get_register_pressure_benefit()
905 if (!BITSET_TEST(hw_liveout[block_idx], reg) && in get_register_pressure_benefit()
1760 block_idx = block->num; in schedule_instructions()
/third_party/mesa3d/src/panfrost/midgard/
Dcompiler.h664 unsigned midgard_get_first_tag_from_block(compiler_context *ctx, unsigned block_idx);

12