Home
last modified time | relevance | path

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

12

/external/mesa3d/src/compiler/nir/
Dnir_opt_intrinsics.c136 nir_src_as_const_value(alu->src[0].src); in opt_intrinsics_intrin()
138 const_val = nir_src_as_const_value(alu->src[1].src); in opt_intrinsics_intrin()
Dnir_search_helpers.h180 if (nir_src_as_const_value(instr->src[src].src) == NULL) in is_not_const_zero()
331 if (nir_src_as_const_value(instr->src[src].src) == NULL) in is_upper_half_zero()
356 if (nir_src_as_const_value(instr->src[src].src) == NULL) in is_lower_half_zero()
Dnir_lower_flrp.c227 nir_const_value *val = nir_src_as_const_value(instr->src[src].src); in all_same_constant()
261 nir_const_value *val0 = nir_src_as_const_value(instr->src[0].src); in sources_are_constants_with_similar_magnitudes()
262 nir_const_value *val1 = nir_src_as_const_value(instr->src[1].src); in sources_are_constants_with_similar_magnitudes()
Dnir_opt_vectorize.c211 nir_const_value *c1 = nir_src_as_const_value(alu1->src[i].src); in instr_try_combine()
212 nir_const_value *c2 = nir_src_as_const_value(alu2->src[i].src); in instr_try_combine()
Dnir_instr_set.c451 nir_src_as_const_value(alu1->src[src1].src); in nir_alu_srcs_negative_equal()
461 nir_src_as_const_value(alu2->src[src2].src); in nir_alu_srcs_negative_equal()
Dnir_opt_large_constants.c266 nir_const_value *val = nir_src_as_const_value(intrin->src[1]); in nir_opt_large_constants()
Dnir.c1420 nir_src_as_const_value(nir_src src) in nir_src_as_const_value() function
Dnir.h3972 nir_const_value *nir_src_as_const_value(nir_src src);
/external/mesa3d/src/gallium/drivers/etnaviv/
Detnaviv_compiler_nir.c568 unsigned idx = nir_src_as_const_value(intr->src[0])[0].u32; in emit_intrinsic()
748 nir_const_value *cv = nir_src_as_const_value(alu->src[i].src); in lower_alu()
770 nir_const_value *cv = nir_src_as_const_value(alu->src[i].src); in lower_alu()
785 nir_const_value *cv = nir_src_as_const_value(alu->src[i].src); in lower_alu()
803 nir_const_value *cv = nir_src_as_const_value(alu->src[i].src); in lower_alu()
822 nir_const_value *cv = nir_src_as_const_value(alu->src[i].src); in lower_alu()
898 nir_const_value *off = nir_src_as_const_value(intr->src[0]); in emit_shader()
Detnaviv_nir.c106 nir_const_value *idx = nir_src_as_const_value(intr->src[0]); in etna_lower_io()
/external/mesa3d/src/mesa/state_tracker/
Dst_nir_lower_tex_src_plane.c119 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/freedreno/a2xx/
Dir2_nir.c227 nir_const_value *const_value = nir_src_as_const_value(src); in make_src()
386 if (nir_src_as_const_value(src)) { in make_src_noconst()
602 const_offset = nir_src_as_const_value(intr->src[0]); in emit_intrinsic()
605 idx += (uint32_t) nir_src_as_const_value(intr->src[0])[0].f32; in emit_intrinsic()
/external/mesa3d/src/freedreno/ir3/
Dir3_nir_lower_io_offsets.c96 nir_const_value *const_val = nir_src_as_const_value(alu_instr->src[1].src); in check_and_propagate_bit_shift32()
/external/mesa3d/src/gallium/drivers/r600/sfn/
Dsfn_emitssboinstruction.cpp582 auto const_offset = nir_src_as_const_value(intrin->src[0]); in emit_image_size()
625 auto const_offset = nir_src_as_const_value(intr->src[0]); in emit_buffer_size()
Dsfn_nir_lower_tess_io.cpp91 auto idx1 = nir_src_as_const_value(op->src[0]); in emil_lsd_in_addr()
98 auto idx2 = nir_src_as_const_value(op->src[1]); in emil_lsd_in_addr()
Dsfn_shader_base.cpp867 auto bufid = nir_src_as_const_value(instr->src[0]); in emit_load_ubo_vec4()
868 auto buf_offset = nir_src_as_const_value(instr->src[1]); in emit_load_ubo_vec4()
977 auto literal = nir_src_as_const_value(instr->src[0]); in load_uniform()
Dsfn_shader_geometry.cpp294 auto literal_index = nir_src_as_const_value(*array_deref.index); in emit_load_from_array()
Dsfn_emittexinstruction.cpp685 literal_offset = nir_src_as_const_value(*src.offset) != 0; in emit_tex_tg4()
979 auto literal = nir_src_as_const_value(*offset); in set_offsets()
Dsfn_valuepool.cpp116 auto literal_val = nir_src_as_const_value(v); in from_nir()
/external/mesa3d/src/compiler/spirv/
Dvtn_amd.c131 if (nir_src_as_const_value(nir_src_for_ssa(src[0]))) { in vtn_handle_amd_shader_trinary_minmax_instruction()
/external/mesa3d/src/broadcom/compiler/
Dvir.c1041 nir_src_as_const_value(intr->src[1]); in v3d_intrinsic_dependency_cb()
/external/mesa3d/src/amd/compiler/
Daco_instruction_selection.cpp2695 nir_const_value* val = nir_src_as_const_value(instr->src[1].src); in visit_alu_instr()
2791 nir_const_value* const_bitmask = nir_src_as_const_value(instr->src[0].src); in visit_alu_instr()
2792 nir_const_value* const_insert = nir_src_as_const_value(instr->src[1].src); in visit_alu_instr()
2802 nir_const_value* const_base = nir_src_as_const_value(instr->src[2].src); in visit_alu_instr()
2827 nir_const_value* const_offset = nir_src_as_const_value(instr->src[1].src); in visit_alu_instr()
2828 nir_const_value* const_bits = nir_src_as_const_value(instr->src[2].src); in visit_alu_instr()
4873 nir_const_value* src0 = nir_src_as_const_value(instr->src[0]); in visit_load_input()
5102 nir_const_value* nir_const_index = nir_src_as_const_value(instr->src[0]); in visit_load_resource()
5212 nir_const_value *index_cv = nir_src_as_const_value(instr->src[0]); in visit_load_push_constant()
5461 nir_const_value *const_value = nir_src_as_const_value(deref_instr->arr.index); in get_sampler_desc()
[all …]
/external/mesa3d/src/broadcom/vulkan/
Dv3dv_pipeline.c590 nir_const_value *const_val = nir_src_as_const_value(instr->src[0]); in lower_vulkan_resource_index()
/external/mesa3d/src/gallium/drivers/zink/nir_to_spirv/
Dnir_to_spirv.c1531 ASSERTED nir_const_value *const_block_index = nir_src_as_const_value(intr->src[0]); in emit_load_ubo_vec4()
/external/mesa3d/src/amd/llvm/
Dac_nir_to_llvm.c3235 nir_const_value *src0 = nir_src_as_const_value(instr->src[0]); in visit_load()
3632 ASSERTED nir_const_value *offset = nir_src_as_const_value(instr->src[1]); in visit_intrinsic()

12