Home
last modified time | relevance | path

Searched refs:BITSET_WORDS (Results 1 - 25 of 53) sorted by relevance

123

/third_party/mesa3d/src/util/
H A Dbitset.h46 #define BITSET_WORDS(bits) (((bits) + BITSET_WORDBITS - 1) / BITSET_WORDBITS) macro
47 #define BITSET_DECLARE(name, bits) BITSET_WORD name[BITSET_WORDS(bits)]
346 if (word >= BITSET_WORDS(size))
382 if (word >= BITSET_WORDS(size)) {
389 if (word >= BITSET_WORDS(size)) {
403 if (word >= BITSET_WORDS(size)) {
410 if (word >= BITSET_WORDS(size)) {
452 for (unsigned i = 0; i < BITSET_WORDS(N); i++) \
494 for (unsigned i = 0; i < BITSET_WORDS(N); i++) \
502 for (unsigned i = 0; i < BITSET_WORDS(
[all...]
H A Dregister_allocate.c102 BITSET_WORDS(count)); in ra_alloc_reg_set()
211 for (i = 0; i < BITSET_WORDS(regs->count); i++) in ra_make_reg_conflicts_transitive()
231 class->regs = rzalloc_array(class, BITSET_WORD, BITSET_WORDS(regs->count)); in ra_alloc_reg_class()
322 for (int i = 0; i < BITSET_WORDS(regs->count); i++) { in ra_set_finalize()
408 blob_write_bytes(blob, reg->conflicts, BITSET_WORDS(regs->count) * in ra_set_serialize()
416 blob_write_bytes(blob, class->regs, BITSET_WORDS(regs->count) * in ra_set_serialize()
444 blob_copy_bytes(blob, reg->conflicts, BITSET_WORDS(reg_count) * in ra_set_deserialize()
459 class->regs = ralloc_array(class, BITSET_WORD, BITSET_WORDS(reg_count)); in ra_set_deserialize()
460 blob_copy_bytes(blob, class->regs, BITSET_WORDS(reg_count) * in ra_set_deserialize()
550 BITSET_WORDS(ra_get_num_adjacency_bit in ra_realloc_interference_graph()
[all...]
H A Du_worklist.c39 w->present = rzalloc_array(mem_ctx, BITSET_WORD, BITSET_WORDS(num_entries)); in u_worklist_init()
/third_party/mesa3d/src/compiler/glsl/
H A Dir_array_refcount.cpp60 bits = new BITSET_WORD[BITSET_WORDS(num_bits)]; in ir_array_refcount_entry()
61 memset(bits, 0, BITSET_WORDS(num_bits) * sizeof(bits[0])); in ir_array_refcount_entry()
/third_party/mesa3d/src/intel/compiler/
H A Dbrw_fs_dead_code_eliminate.cpp82 BITSET_WORD *live = rzalloc_array(NULL, BITSET_WORD, BITSET_WORDS(num_vars)); in dead_code_eliminate()
87 sizeof(BITSET_WORD) * BITSET_WORDS(num_vars)); in dead_code_eliminate()
H A Dbrw_vec4_dead_code_eliminate.cpp46 BITSET_WORD *live = rzalloc_array(NULL, BITSET_WORD, BITSET_WORDS(num_vars)); in dead_code_eliminate()
51 sizeof(BITSET_WORD) * BITSET_WORDS(num_vars)); in dead_code_eliminate()
H A Dbrw_predicated_break.cpp59 BITSET_WORD has_continue[BITSET_WORDS(MAX_NESTING)];
/third_party/mesa3d/src/panfrost/midgard/
H A Dmir_promote_uniforms.c137 unsigned last = BITSET_LAST_BIT_SIZED(uses, BITSET_WORDS(MAX_UBO_QWORDS));
162 for (unsigned w = 0; w < BITSET_WORDS(MAX_UBO_QWORDS); ++w) in mir_promoteable_uniform_count()
241 BITSET_WORD *bset = calloc(BITSET_WORDS(ctx->temp_count), sizeof(BITSET_WORD)); in mir_special_indices()
H A Dmidgard_helper_invocations.c192 BITSET_WORD *deps = calloc(sizeof(BITSET_WORD), BITSET_WORDS(temp_count)); in mir_analyze_helper_requirements()
/third_party/mesa3d/src/compiler/nir/
H A Dnir_lower_int_to_float.c161 float_types = calloc(BITSET_WORDS(impl->ssa_alloc), in nir_lower_int_to_float_impl()
163 int_types = calloc(BITSET_WORDS(impl->ssa_alloc), in nir_lower_int_to_float_impl()
H A Dnir_liveness.c148 .bitset_words = BITSET_WORDS(impl->ssa_alloc), in nir_live_ssa_defs_impl()
247 const unsigned bitset_words = BITSET_WORDS(impl->ssa_alloc); in nir_get_live_ssa_defs()
H A Dnir_repair_ssa.c40 const unsigned num_words = BITSET_WORDS(state->impl->num_blocks); in prep_build_phi()
H A Dnir_lower_shader_calls.c94 .set = rzalloc_array(mem_ctx, BITSET_WORD, BITSET_WORDS(size)), in bitset_create()
329 const unsigned live_words = BITSET_WORDS(num_ssa_defs); in spill_ssa_defs_and_lower_shader_calls()
515 const unsigned block_words = BITSET_WORDS(impl->num_blocks); in spill_ssa_defs_and_lower_shader_calls()
H A Dnir_validate.c1642 BITSET_WORD, BITSET_WORDS(impl->reg_alloc)); in validate_function_impl()
1643 memset(state->regs_found, 0, BITSET_WORDS(impl->reg_alloc) * in validate_function_impl()
1651 BITSET_WORD, BITSET_WORDS(impl->ssa_alloc)); in validate_function_impl()
1652 memset(state->ssa_defs_found, 0, BITSET_WORDS(impl->ssa_alloc) * in validate_function_impl()
1838 BITSET_WORDS(func->impl->ssa_alloc)); in nir_validate_ssa_dominance()
1839 memset(state.ssa_defs_found, 0, BITSET_WORDS(func->impl->ssa_alloc) * in nir_validate_ssa_dominance()
H A Dnir_opt_dce.c223 BITSET_WORDS(impl->ssa_alloc)); in nir_opt_dce_impl()
H A Dnir_lower_vars_to_ssa.c771 BITSET_WORDS(state.impl->num_blocks)); in nir_lower_vars_to_ssa_impl()
778 BITSET_WORDS(state.impl->num_blocks) * sizeof(*store_blocks)); in nir_lower_vars_to_ssa_impl()
/third_party/mesa3d/src/gallium/drivers/lima/ir/pp/
H A Dliveness.c34 for (int i = 0; i < BITSET_WORDS(comp->reg_num); i++) in ppir_liveness_propagate()
47 for (int i = 0; i < BITSET_WORDS(comp->reg_num); i++) in ppir_liveness_set_equal()
/third_party/mesa3d/src/asahi/compiler/
H A Dagx_dce.c35 BITSET_WORD *seen = calloc(BITSET_WORDS(ctx->alloc), sizeof(BITSET_WORD)); in agx_dce()
H A Dagx_liveness.c67 unsigned words = BITSET_WORDS(ctx->alloc); in agx_compute_liveness()
H A Dagx_register_allocate.c86 for (unsigned i = 0; i < BITSET_WORDS(max); ++i) in agx_assign_regs()
100 for (unsigned i = 0; i < BITSET_WORDS(AGX_NUM_REGS); ++i) in agx_ra_assign_local()
H A Dagx_optimizer.c212 BITSET_WORD *multiple = calloc(BITSET_WORDS(ctx->alloc), sizeof(*multiple)); in agx_optimizer_backward()
/third_party/mesa3d/src/gallium/drivers/iris/
H A Diris_batch.c213 rzalloc_array(NULL, BITSET_WORD, BITSET_WORDS(batch->exec_array_size)); in iris_init_batch()
378 BITSET_WORDS(old_size), in ensure_exec_obj_space()
379 BITSET_WORDS(batch->exec_array_size)); in ensure_exec_obj_space()
541 sizeof(BITSET_WORD) * BITSET_WORDS(batch->exec_array_size)); in iris_batch_reset()
/third_party/mesa3d/src/panfrost/bifrost/
H A Dbi_helper_invocations.c229 BITSET_WORD *deps = calloc(sizeof(BITSET_WORD), BITSET_WORDS(temp_count)); in bi_analyze_helper_requirements()
/third_party/mesa3d/src/freedreno/ir3/
H A Dir3_liveness.c141 unsigned bitset_words = BITSET_WORDS(live->definitions_count); in ir3_calc_liveness()
/third_party/mesa3d/src/gallium/drivers/etnaviv/
H A Detnaviv_compiler_nir_liveness.c165 state.bitset_words = BITSET_WORDS(state.num_defs); in etna_live_defs()

Completed in 17 milliseconds

123