Home
last modified time | relevance | path

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

12

/third_party/mesa3d/src/gallium/drivers/r600/sfn/
Dsfn_shader_geometry.cpp57 auto index = nir_src_as_const_value(instr->src[1]); in emit_store()
97 auto index = nir_src_as_const_value(instr->src[1]); in process_store_output()
148 auto index = nir_src_as_const_value(instr->src[1]); in process_load_input()
315 auto literal_index = nir_src_as_const_value(instr->src[0]); in emit_load_per_vertex_input()
Dsfn_vertexstageexport.cpp38 auto index = nir_src_as_const_value(instr->src[1]); in store_output()
288 auto index = nir_src_as_const_value(instr->src[1]); in scan_store_output()
Dsfn_nir_lower_tess_io.cpp89 auto idx1 = nir_src_as_const_value(op->src[0]); in emil_lsd_in_addr()
96 auto idx2 = nir_src_as_const_value(op->src[1]); in emil_lsd_in_addr()
Dsfn_shader_fragment.cpp103 auto index = nir_src_as_const_value(instr->src[interpolated ? 1 : 0]); in process_load_input()
559 auto param = nir_src_as_const_value(instr->src[1]); in emit_load_interpolated_input()
692 auto param = nir_src_as_const_value(instr->src[0]); in emit_load_input()
Dsfn_shader_base.cpp873 auto bufid = nir_src_as_const_value(instr->src[0]); in emit_load_ubo_vec4()
874 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_emitssboinstruction.cpp634 auto const_offset = nir_src_as_const_value(intrin->src[0]); in emit_image_size()
705 auto const_offset = nir_src_as_const_value(intr->src[0]); in emit_buffer_size()
Dsfn_emittexinstruction.cpp391 literal_offset = nir_src_as_const_value(*src.offset) != 0; in emit_tex_tg4()
636 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()
/third_party/mesa3d/src/compiler/nir/
Dnir_opt_intrinsics.c140 nir_src_as_const_value(alu->src[0].src); in opt_intrinsics_intrin()
142 const_val = nir_src_as_const_value(alu->src[1].src); in opt_intrinsics_intrin()
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_search_helpers.h184 if (nir_src_as_const_value(instr->src[src].src) == NULL) in is_not_const_zero()
388 if (nir_src_as_const_value(instr->src[src].src) == NULL) in is_upper_half_zero()
413 if (nir_src_as_const_value(instr->src[src].src) == NULL) in is_lower_half_zero()
Dnir_opt_vectorize.c229 nir_const_value *c1 = nir_src_as_const_value(alu1->src[i].src); in instr_try_combine()
230 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.c263 nir_const_value *val = nir_src_as_const_value(intrin->src[1]); in nir_opt_large_constants()
/third_party/mesa3d/src/gallium/drivers/etnaviv/
Detnaviv_compiler_nir.c578 unsigned idx = nir_src_as_const_value(intr->src[0])[0].u32; in emit_intrinsic()
760 nir_const_value *cv = nir_src_as_const_value(alu->src[i].src); in lower_alu()
782 nir_const_value *cv = nir_src_as_const_value(alu->src[i].src); in lower_alu()
797 nir_const_value *cv = nir_src_as_const_value(alu->src[i].src); in lower_alu()
815 nir_const_value *cv = nir_src_as_const_value(alu->src[i].src); in lower_alu()
834 nir_const_value *cv = nir_src_as_const_value(alu->src[i].src); in lower_alu()
910 nir_const_value *off = nir_src_as_const_value(intr->src[0]); in emit_shader()
/third_party/mesa3d/src/gallium/drivers/radeonsi/
Dsi_nir_optim.c105 nir_const_value *c = nir_src_as_const_value(intrin->src[0]); in get_output_as_const_value()
/third_party/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()
/third_party/mesa3d/src/freedreno/ir3/
Dir3_nir_lower_io_offsets.c95 nir_const_value *const_val = nir_src_as_const_value(alu_instr->src[1].src); in check_and_propagate_bit_shift32()
/third_party/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()
/third_party/mesa3d/src/gallium/drivers/freedreno/a2xx/
Dir2_nir.c233 nir_const_value *const_value = nir_src_as_const_value(src); in make_src()
390 if (nir_src_as_const_value(src)) { in make_src_noconst()
608 const_offset = nir_src_as_const_value(intr->src[0]); in emit_intrinsic()
/third_party/mesa3d/src/gallium/drivers/zink/nir_to_spirv/
Dnir_to_spirv.c1939 nir_const_value *const_block_index = nir_src_as_const_value(intr->src[0]); in emit_load_bo()
2052 nir_const_value *const_block_index = nir_src_as_const_value(intr->src[1]); in emit_store_ssbo()
2499 nir_const_value *const_block_index = nir_src_as_const_value(intr->src[0]); in emit_ssbo_atomic_intrinsic()
2556 nir_const_value *const_block_index = nir_src_as_const_value(intr->src[0]); in emit_get_ssbo_size()
3132 cv = nir_src_as_const_value(tex->src[i].src); in emit_tex()
/third_party/mesa3d/src/amd/compiler/
Daco_instruction_selection.cpp3192 nir_const_value* val = nir_src_as_const_value(instr->src[1].src); in visit_alu_instr()
3306 nir_const_value* const_bitmask = nir_src_as_const_value(instr->src[0].src); in visit_alu_instr()
3307 nir_const_value* const_insert = nir_src_as_const_value(instr->src[1].src); in visit_alu_instr()
3318 nir_const_value* const_base = nir_src_as_const_value(instr->src[2].src); in visit_alu_instr()
3343 nir_const_value* const_offset = nir_src_as_const_value(instr->src[1].src); in visit_alu_instr()
3344 nir_const_value* const_bits = nir_src_as_const_value(instr->src[2].src); in visit_alu_instr()
5272 nir_const_value* src0 = nir_src_as_const_value(instr->src[0]); in visit_load_input()
5530 nir_const_value* index_cv = nir_src_as_const_value(instr->src[0]); in visit_load_push_constant()
5774 nir_const_value* const_value = nir_src_as_const_value(deref_instr->arr.index); in get_sampler_desc()
7374 nir_const_value* next_vertex_cv = nir_src_as_const_value(instr->src[0]); in visit_emit_vertex_with_counter()
[all …]
/third_party/mesa3d/src/microsoft/compiler/
Dnir_to_dxil.c2418 nir_const_value *const_block_index = nir_src_as_const_value(*src); in get_ubo_ssbo_handle()
2650 nir_const_value *const_offset = nir_src_as_const_value(intr->src[1]); in emit_load_ubo()
3500 binding += nir_src_as_const_value(intr->src[0])->u32; in emit_vulkan_resource_index()
Ddxil_nir.c1208 nir_const_value *index = nir_src_as_const_value(deref->arr.index); in dxil_nir_split_clip_cull_distance_instr()
/third_party/mesa3d/src/broadcom/compiler/
Dvir.c1080 nir_src_as_const_value(intr->src[1]); in v3d_intrinsic_dependency_cb()

12