Home
last modified time | relevance | path

Searched refs:nir_src_as_const_value (Results 1 – 25 of 26) sorted by relevance

12

/external/mesa3d/src/compiler/nir/
Dnir_search_helpers.h42 nir_const_value *val = nir_src_as_const_value(instr->src[src].src); in is_pos_power_of_two()
72 nir_const_value *val = nir_src_as_const_value(instr->src[src].src); in is_neg_power_of_two()
98 nir_const_value *val = nir_src_as_const_value(instr->src[src].src); in is_zero_to_one()
121 nir_const_value *val = nir_src_as_const_value(instr->src[src].src); in is_not_const()
Dnir_opt_intrinsics.c50 if (nir_src_as_const_value(intrin->src[0])) in opt_intrinsics_impl()
54 if (nir_src_as_const_value(intrin->src[0])) in opt_intrinsics_impl()
Dnir_gs_count_vertices.c74 nir_const_value *val = nir_src_as_const_value(intrin->src[0]); in nir_gs_count_vertices()
Dnir_opt_if.c126 nir_const_value *const_src = nir_src_as_const_value(src->src); in opt_peel_loop_initial_if()
Dnir_lower_two_sided_color.c149 assert(nir_src_as_const_value(intr->src[0])); in nir_lower_two_sided_color_block()
Dnir_opt_constant_folding.c159 nir_const_value *src_val = nir_src_as_const_value(instr->src[0]); in constant_fold_intrinsic_instr()
Dnir_opt_dead_cf.c224 nir_src_as_const_value(following_if->condition); in dead_cf_block()
Dnir_lower_clip.c110 assert(nir_src_as_const_value(intr->src[1])); in find_output_in_block()
Dnir.h2250 nir_const_value *nir_src_as_const_value(nir_src src);
Dnir.c1410 nir_src_as_const_value(nir_src src) in nir_src_as_const_value() function
/external/mesa3d/src/intel/compiler/
Dbrw_vec4_gs_nir.cpp44 nir_const_value *vertex = nir_src_as_const_value(instr->src[0]); in nir_emit_intrinsic()
45 nir_const_value *offset_reg = nir_src_as_const_value(instr->src[1]); in nir_emit_intrinsic()
Dbrw_vec4_nir.cpp265 nir_const_value *const_value = nir_src_as_const_value(*offset_src); in get_indirect_offset()
386 nir_const_value *const_offset = nir_src_as_const_value(instr->src[0]); in nir_emit_intrinsic()
413 nir_const_value *const_offset = nir_src_as_const_value(instr->src[1]); in nir_emit_intrinsic()
451 nir_const_value *const_uniform_block = nir_src_as_const_value(instr->src[0]); in nir_emit_intrinsic()
482 nir_src_as_const_value(instr->src[1]); in nir_emit_intrinsic()
501 nir_const_value *const_offset = nir_src_as_const_value(instr->src[2]); in nir_emit_intrinsic()
642 nir_src_as_const_value(instr->src[0]); in nir_emit_intrinsic()
666 nir_const_value *const_offset = nir_src_as_const_value(instr->src[1]); in nir_emit_intrinsic()
776 nir_const_value *const_offset = nir_src_as_const_value(instr->src[0]); in nir_emit_intrinsic()
808 nir_const_value *const_block_index = nir_src_as_const_value(instr->src[0]); in nir_emit_intrinsic()
[all …]
Dbrw_fs_nir.cpp487 nir_const_value *element = nir_src_as_const_value(src0->src[1].src); in optimize_extract_to_float()
520 nir_const_value *value1 = nir_src_as_const_value(instr->src[1].src); in optimize_frontfacing_ternary()
524 nir_const_value *value2 = nir_src_as_const_value(instr->src[2].src); in optimize_frontfacing_ternary()
1441 nir_const_value *byte = nir_src_as_const_value(instr->src[1].src); in nir_emit_alu()
1472 nir_const_value *word = nir_src_as_const_value(instr->src[1].src); in nir_emit_alu()
1575 nir_const_value *val = nir_src_as_const_value(src); in get_nir_src_imm()
2094 nir_const_value *vertex_const = nir_src_as_const_value(vertex_src); in emit_gs_input_load()
2095 nir_const_value *offset_const = nir_src_as_const_value(offset_src); in emit_gs_input_load()
2284 nir_const_value *const_value = nir_src_as_const_value(*offset_src); in get_indirect_offset()
2419 nir_const_value *const_offset = nir_src_as_const_value(instr->src[0]); in nir_emit_vs_intrinsic()
[all …]
Dbrw_nir_analyze_ubo_ranges.c133 nir_const_value *block_const = nir_src_as_const_value(intrin->src[0]); in analyze_ubos_block()
134 nir_const_value *offset_const = nir_src_as_const_value(intrin->src[1]); in analyze_ubos_block()
Dbrw_nir.c72 nir_const_value *const_offset = nir_src_as_const_value(*offset); in add_const_offset_to_base_block()
183 nir_const_value *const_vertex = nir_src_as_const_value(*vertex); in remap_patch_urb_offsets()
Dbrw_vec4_tcs.cpp263 nir_const_value *vertex_const = nir_src_as_const_value(instr->src[0]); in nir_emit_intrinsic()
/external/mesa3d/src/mesa/state_tracker/
Dst_nir_lower_tex_src_plane.c76 nir_const_value *plane = nir_src_as_const_value(tex->src[plane_index].src); in lower_tex_src_plane_block()
/external/mesa3d/src/gallium/drivers/vc4/
Dvc4_nir_lower_io.c183 assert(nir_src_as_const_value(intr->src[0]) && in vc4_nir_lower_vertex_attr()
184 nir_src_as_const_value(intr->src[0])->u32[0] == 0); in vc4_nir_lower_vertex_attr()
Dvc4_program.c1717 assert(nir_src_as_const_value(instr->src[0])->u32[0] == 0); in ntq_emit_color_read()
1739 nir_const_value *const_offset = nir_src_as_const_value(instr->src[0]); in ntq_emit_load_input()
1763 const_offset = nir_src_as_const_value(instr->src[0]); in ntq_emit_intrinsic()
1835 const_offset = nir_src_as_const_value(instr->src[1]); in ntq_emit_intrinsic()
/external/mesa3d/src/gallium/drivers/freedreno/ir3/
Dir3_nir.c215 idx = nir_src_as_const_value(intr->src[0])->u32[0]; in ir3_nir_scan_driver_consts()
Dir3_compiler_nir.c1189 const_offset = nir_src_as_const_value(intr->src[1]); in emit_intrinsic_load_ubo()
1243 const_offset = nir_src_as_const_value(intr->src[0]); in emit_intrinsic_load_ssbo()
1282 const_offset = nir_src_as_const_value(intr->src[1]); in emit_intrinsic_store_ssbo()
1314 unsigned blk_idx = nir_src_as_const_value(intr->src[0])->u32[0]; in emit_intrinsic_ssbo_size()
1349 const_offset = nir_src_as_const_value(intr->src[0]); in emit_intrinsic_atomic_ssbo()
1947 const_offset = nir_src_as_const_value(intr->src[0]); in emit_intrinsic()
1975 const_offset = nir_src_as_const_value(intr->src[0]); in emit_intrinsic()
2066 const_offset = nir_src_as_const_value(intr->src[1]); in emit_intrinsic()
/external/mesa3d/src/broadcom/compiler/
Dv3d40_tex.c122 nir_src_as_const_value(instr->src[i].src); in v3d40_vir_emit_tex()
Dv3d33_tex.c110 nir_src_as_const_value(instr->src[i].src); in v3d33_vir_emit_tex()
Dnir_to_vir.c1438 const_offset = nir_src_as_const_value(instr->src[0]); in ntq_emit_intrinsic()
1455 int ubo = nir_src_as_const_value(instr->src[0])->u32[0]; in ntq_emit_intrinsic()
1471 const_offset = nir_src_as_const_value(instr->src[0]); in ntq_emit_intrinsic()
1524 const_offset = nir_src_as_const_value(instr->src[0]); in ntq_emit_intrinsic()
1535 const_offset = nir_src_as_const_value(instr->src[1]); in ntq_emit_intrinsic()
/external/mesa3d/src/intel/vulkan/
Danv_nir_apply_pipeline_layout.c119 nir_const_value *const_array_index = nir_src_as_const_value(intrin->src[0]); in lower_res_index_intrinsic()
229 nir_src_as_const_value(tex->src[i].src); in extract_tex_src_plane()

12