/third_party/mesa3d/src/util/ |
D | bitset_test.cpp | 46 EXPECT_EQ(BITSET_TEST(mask128, i), false); in TEST() 48 EXPECT_EQ(BITSET_TEST(mask128, i), true); in TEST() 50 EXPECT_EQ(BITSET_TEST(mask128, i), false); in TEST() 62 EXPECT_EQ(BITSET_TEST(mask128, i), true); in TEST() 64 EXPECT_EQ(BITSET_TEST(mask128, i), false); in TEST() 66 EXPECT_EQ(BITSET_TEST(mask128, i), true); in TEST() 81 EXPECT_EQ(BITSET_TEST(mask128, i), true); in TEST() 83 EXPECT_EQ(BITSET_TEST(mask128, i), false); in TEST() 88 EXPECT_EQ(BITSET_TEST(mask128, i), false); in TEST() 127 EXPECT_EQ(BITSET_TEST(mask128, i), true); in TEST() [all …]
|
D | register_allocate.c | 145 if (!BITSET_TEST(regs->regs[r1].conflicts, r2)) { in ra_add_reg_conflict() 283 return BITSET_TEST(c->regs, r); in reg_belongs_to_class() 339 if (BITSET_TEST(class_b->regs, i)) in ra_set_finalize() 615 if (n1 != n2 && !BITSET_TEST(g->nodes[n1].adjacency, n2)) { in ra_add_node_interference() 661 assert(!BITSET_TEST(g->tmp.in_stack, n)); in add_node_to_stack() 667 if (!BITSET_TEST(g->tmp.in_stack, n2) && in add_node_to_stack() 668 !BITSET_TEST(g->tmp.reg_assigned, n2)) { in add_node_to_stack() 805 return BITSET_TEST(c1->regset->regs[r1].conflicts, r2); in ra_class_allocations_conflict() 816 if (!BITSET_TEST(g->tmp.in_stack, n2) && in ra_find_conflicting_neighbor() 847 if (!BITSET_TEST(g->tmp.in_stack, *n2p)) { in ra_compute_available_regs() [all …]
|
/third_party/mesa3d/src/gallium/drivers/radeonsi/ |
D | si_shader_nir.c | 438 info->uses_frontface = BITSET_TEST(nir->info.system_values_read, SYSTEM_VALUE_FRONT_FACE); in si_nir_scan_shader() 439 info->uses_instanceid = BITSET_TEST(nir->info.system_values_read, SYSTEM_VALUE_INSTANCE_ID); in si_nir_scan_shader() 440 info->uses_base_vertex = BITSET_TEST(nir->info.system_values_read, SYSTEM_VALUE_BASE_VERTEX); in si_nir_scan_shader() 441 info->uses_base_instance = BITSET_TEST(nir->info.system_values_read, SYSTEM_VALUE_BASE_INSTANCE); in si_nir_scan_shader() 442 info->uses_invocationid = BITSET_TEST(nir->info.system_values_read, SYSTEM_VALUE_INVOCATION_ID); in si_nir_scan_shader() 443 info->uses_grid_size = BITSET_TEST(nir->info.system_values_read, SYSTEM_VALUE_NUM_WORKGROUPS); in si_nir_scan_shader() 444 …info->uses_subgroup_info = BITSET_TEST(nir->info.system_values_read, SYSTEM_VALUE_LOCAL_INVOCATION… in si_nir_scan_shader() 445 BITSET_TEST(nir->info.system_values_read, SYSTEM_VALUE_SUBGROUP_ID) || in si_nir_scan_shader() 446 BITSET_TEST(nir->info.system_values_read, SYSTEM_VALUE_NUM_SUBGROUPS); in si_nir_scan_shader() 447 …info->uses_variable_block_size = BITSET_TEST(nir->info.system_values_read, SYSTEM_VALUE_WORKGROUP_… in si_nir_scan_shader() [all …]
|
/third_party/mesa3d/src/freedreno/ir3/ |
D | ir3_liveness.c | 48 if (BITSET_TEST(tmp_live, dst->name)) in compute_block_liveness() 58 if (BITSET_TEST(tmp_live, src->def->name)) in compute_block_liveness() 65 if (BITSET_TEST(tmp_live, src->def->name)) in compute_block_liveness() 93 if (!BITSET_TEST(live->live_out[pred->index], name)) { in compute_block_liveness() 107 if (!BITSET_TEST(live->live_out[pred->index], name)) { in compute_block_liveness() 174 if (BITSET_TEST(live->live_out[instr->block->index], def->name)) in ir3_def_live_after() 181 !BITSET_TEST(live->live_in[instr->block->index], def->name)) in ir3_def_live_after()
|
/third_party/mesa3d/src/broadcom/compiler/ |
D | vir_live_variables.c | 64 if (!BITSET_TEST(block->def, var)) { in vir_setup_use() 70 if (BITSET_TEST(block->defout, var)) { in vir_setup_use() 110 if (BITSET_TEST(block->use, var) || BITSET_TEST(block->def, var)) in vir_setup_def() 276 if (BITSET_TEST(block->live_in, i) && in vir_compute_start_end() 277 BITSET_TEST(block->defin, i)) { in vir_compute_start_end() 284 if (BITSET_TEST(block->live_out, i) && in vir_compute_start_end() 285 BITSET_TEST(block->defout, i)) { in vir_compute_start_end()
|
D | vir_register_allocate.c | 167 if (BITSET_TEST(c->spillable, i)) in v3d_choose_spill_node() 396 if (BITSET_TEST(regs, PHYS_INDEX + i)) in v3d_ra_favor_accum() 429 if (BITSET_TEST(regs, acc)) { in v3d_ra_select_accum() 448 if (BITSET_TEST(regs, phys)) { in v3d_ra_select_rf() 468 if (BITSET_TEST(regs, r5)) in v3d_ra_select_callback()
|
/third_party/mesa3d/src/panfrost/lib/ |
D | pan_shader.c | 212 bool vertex_id = BITSET_TEST(s->info.system_values_read, in GENX() 217 bool instance_id = BITSET_TEST(s->info.system_values_read, in GENX() 271 BITSET_TEST(s->info.system_values_read, SYSTEM_VALUE_FRAG_COORD); in GENX() 276 BITSET_TEST(s->info.system_values_read, SYSTEM_VALUE_FRONT_FACE); in GENX() 278 BITSET_TEST(s->info.system_values_read, SYSTEM_VALUE_SAMPLE_ID); in GENX() 280 BITSET_TEST(s->info.system_values_read, SYSTEM_VALUE_SAMPLE_POS); in GENX() 282 BITSET_TEST(s->info.system_values_read, SYSTEM_VALUE_SAMPLE_MASK_IN); in GENX() 284 BITSET_TEST(s->info.system_values_read, SYSTEM_VALUE_HELPER_INVOCATION); in GENX()
|
/third_party/mesa3d/src/compiler/nir/ |
D | nir_gather_ssa_types.c | 35 if (int_types && !BITSET_TEST(int_types, idx)) { in set_type() 42 if (float_types && !BITSET_TEST(float_types, idx)) { in set_type() 60 if (BITSET_TEST(types, dst)) { in copy_type() 61 if (BITSET_TEST(types, src)) in copy_type() 65 } else if (BITSET_TEST(types, src) && !src_is_sink) { in copy_type()
|
D | nir_opt_dce.c | 33 return !dest->is_ssa || BITSET_TEST(defs_live, dest->ssa.index); in is_dest_live() 39 if (src->is_ssa && !BITSET_TEST(defs_live, src->ssa->index)) { in mark_src_live() 85 return BITSET_TEST(defs_live, lc->def.index); in is_live() 89 return BITSET_TEST(defs_live, undef->def.index); in is_live()
|
D | nir_worklist.c | 62 if (BITSET_TEST(w->blocks_present, block->index)) in nir_block_worklist_push_head() 104 if (BITSET_TEST(w->blocks_present, block->index)) in nir_block_worklist_push_tail()
|
D | nir_lower_int_to_float.c | 32 assert(!BITSET_TEST(int_types, def->index)); in assert_ssa_def_is_not_int() 145 if (load->def.bit_size != 1 && BITSET_TEST(int_types, load->def.index)) { in nir_lower_int_to_float_impl()
|
/third_party/mesa3d/src/intel/compiler/ |
D | brw_vec4_live_variables.cpp | 88 if (!BITSET_TEST(bd->def, v)) in setup_def_use() 96 !BITSET_TEST(bd->flag_def, c)) { in setup_def_use() 116 !BITSET_TEST(bd->use, v)) in setup_def_use() 125 !BITSET_TEST(bd->flag_use, c)) { in setup_def_use() 205 if (BITSET_TEST(bd.livein, i)) { in compute_start_end() 210 if (BITSET_TEST(bd.liveout, i)) { in compute_start_end()
|
D | brw_vec4_dead_code_eliminate.cpp | 63 result_live[c] |= BITSET_TEST(live, v); in dead_code_eliminate() 68 result_live[c] = BITSET_TEST(flag_live, c); in dead_code_eliminate() 94 if (!BITSET_TEST(flag_live, c)) in dead_code_eliminate() 132 combined_live |= BITSET_TEST(flag_live, c); in dead_code_eliminate()
|
/third_party/mesa3d/src/gallium/drivers/vc4/ |
D | vc4_qir_live_variables.c | 61 if (!BITSET_TEST(block->def, var)) in qir_setup_use() 101 if (BITSET_TEST(block->use, var) || BITSET_TEST(block->def, var)) in qir_setup_def() 268 if (BITSET_TEST(block->live_in, i)) { in qir_compute_start_end() 275 if (BITSET_TEST(block->live_out, i)) { in qir_compute_start_end()
|
D | vc4_register_allocate.c | 214 if (BITSET_TEST(regs, ACC_INDEX + 4)) in vc4_ra_select_callback() 225 if (BITSET_TEST(regs, acc)) { in vc4_ra_select_callback() 235 if (BITSET_TEST(regs, ab)) { in vc4_ra_select_callback()
|
/third_party/mesa3d/src/panfrost/bifrost/ |
D | bi_helper_invocations.c | 211 if (!BITSET_TEST(deps, bi_get_node(I->dest[0]))) in bi_helper_block_update() 218 progress |= !BITSET_TEST(deps, node); in bi_helper_block_update() 281 I->skip = !BITSET_TEST(deps, bi_get_node(I->dest[0])); in bi_analyze_helper_requirements()
|
/third_party/mesa3d/src/panfrost/midgard/ |
D | midgard_helper_invocations.c | 170 if (ins->dest >= temp_count || !BITSET_TEST(deps, ins->dest)) in mir_helper_block_update() 179 progress |= !BITSET_TEST(deps, ins->src[s]); in mir_helper_block_update() 243 ins->helper_execute = BITSET_TEST(deps, ins->dest); in mir_analyze_helper_requirements()
|
D | mir_promote_uniforms.c | 142 bool used = BITSET_TEST(uses, j); 143 bool pushed = BITSET_TEST(push, j); 305 if (!BITSET_TEST(analysis.blocks[ubo].pushed, qword)) { in midgard_promote_uniforms() 327 needs_move |= BITSET_TEST(special, ins->dest); in midgard_promote_uniforms()
|
D | midgard_ra.c | 232 bool is_alur = BITSET_TEST(alur, i); in mir_lower_special_reads() 233 bool is_aluw = BITSET_TEST(aluw, i); in mir_lower_special_reads() 234 bool is_brar = BITSET_TEST(brar, i); in mir_lower_special_reads() 235 bool is_ldst = BITSET_TEST(ldst, i); in mir_lower_special_reads() 236 bool is_texr = BITSET_TEST(texr, i); in mir_lower_special_reads() 237 bool is_texw = BITSET_TEST(texw, i); in mir_lower_special_reads()
|
/third_party/mesa3d/src/freedreno/afuc/ |
D | emu-ui.c | 151 if (BITSET_TEST(emu->gpr_regs.written, n)) { in dump_gpr_register() 178 if (BITSET_TEST(emu->gpu_regs.written, n)) { in dump_gpu_register() 191 if (BITSET_TEST(emu->pipe_regs.written, n)) { in dump_pipe_register() 204 if (BITSET_TEST(emu->control_regs.written, n)) { in dump_control_register()
|
/third_party/mesa3d/src/amd/vulkan/ |
D | radv_shader_info.c | 772 BITSET_TEST(nir->info.system_values_read, SYSTEM_VALUE_FRAG_COORD) || in radv_nir_shader_info_pass() 773 BITSET_TEST(nir->info.system_values_read, SYSTEM_VALUE_POINT_COORD) || in radv_nir_shader_info_pass() 774 BITSET_TEST(nir->info.system_values_read, SYSTEM_VALUE_SAMPLE_ID) || in radv_nir_shader_info_pass() 775 BITSET_TEST(nir->info.system_values_read, SYSTEM_VALUE_SAMPLE_POS) || in radv_nir_shader_info_pass() 776 BITSET_TEST(nir->info.system_values_read, SYSTEM_VALUE_SAMPLE_MASK_IN) || in radv_nir_shader_info_pass() 777 BITSET_TEST(nir->info.system_values_read, SYSTEM_VALUE_HELPER_INVOCATION)); in radv_nir_shader_info_pass()
|
/third_party/mesa3d/src/gallium/drivers/lima/ir/pp/ |
D | liveness.c | 95 bool live = BITSET_TEST(instr->live_set, index); in ppir_liveness_instr_srcs() 147 bool live = BITSET_TEST(instr->live_set, index); in ppir_liveness_instr_dest()
|
/third_party/mesa3d/src/asahi/compiler/ |
D | agx_dce.c | 39 needed |= BITSET_TEST(seen, I->dest[d].value); in agx_dce()
|
/third_party/mesa3d/src/compiler/glsl/ |
D | ir_array_refcount.h | 62 return BITSET_TEST(bits, linearized_index); in is_linearized_index_referenced()
|
/third_party/mesa3d/src/gallium/drivers/iris/ |
D | iris_batch.c | 107 bool written = BITSET_TEST(batch->bos_written, i); in dump_bo_list() 324 (writable || BITSET_TEST(other_batch->bos_written, other_index))) in flush_for_cross_batch_dependencies() 364 } else if (writable && !BITSET_TEST(batch->bos_written, existing_index)) { in iris_use_pinned_bo() 750 bool write = BITSET_TEST(batch->bos_written, i); in update_batch_syncobjs() 779 bool written = BITSET_TEST(batch->bos_written, i); in submit_batch()
|