/third_party/mesa3d/src/amd/vulkan/ |
D | radv_pipeline_rt.c | 387 nir_store_var(b, vars->stack_ptr, nir_iadd_imm(b, nir_load_var(b, vars->stack_ptr), -16), 1); in insert_rt_return() 389 nir_load_scratch(b, 1, 32, nir_load_var(b, vars->stack_ptr), .align_mul = 16), 1); in insert_rt_return() 452 nir_iadd_imm(&b_shader, nir_load_var(&b_shader, vars->stack_ptr), size), 1); in lower_rt_instructions() 454 nir_load_var(&b_shader, vars->stack_ptr), .align_mul = 16); in lower_rt_instructions() 457 nir_iadd_imm(&b_shader, nir_load_var(&b_shader, vars->stack_ptr), 16), in lower_rt_instructions() 473 nir_iadd_imm(&b_shader, nir_load_var(&b_shader, vars->stack_ptr), size), 1); in lower_rt_instructions() 475 nir_load_var(&b_shader, vars->stack_ptr), .align_mul = 16); in lower_rt_instructions() 478 nir_iadd_imm(&b_shader, nir_load_var(&b_shader, vars->stack_ptr), 16), in lower_rt_instructions() 509 nir_iadd_imm(&b_shader, nir_load_var(&b_shader, vars->stack_ptr), -size), 1); in lower_rt_instructions() 523 nir_iadd(&b_shader, nir_load_var(&b_shader, vars->stack_ptr), intr->src[0].ssa)); in lower_rt_instructions() [all …]
|
D | radv_device_generated_commands.c | 205 nir_ssa_def *offset = nir_load_var(b, cs->offset); in dgc_emit() 313 nir_ssa_def *curr_offset = nir_load_var(b, offset); in build_dgc_buffer_tail() 362 sequence_count = nir_load_var(&b, count_var); in build_dgc_prepare_shader() 371 nir_ssa_def *cmd_buf_end = nir_iadd(&b, nir_load_var(&b, cmd_buf.offset), cmd_buf_stride); in build_dgc_prepare_shader() 393 nir_push_if(&b, nir_uge(&b, nir_load_var(&b, vbo_idx), vbo_cnt)); in build_dgc_prepare_shader() 399 nir_ssa_def *vbo_offset = nir_imul_imm(&b, nir_load_var(&b, vbo_idx), 16); in build_dgc_prepare_shader() 410 nir_ishl(&b, nir_imm_int(&b, 1), nir_load_var(&b, vbo_idx))), in build_dgc_prepare_shader() 416 nir_imul_imm(&b, nir_load_var(&b, vbo_idx), 8)); in build_dgc_prepare_shader() 433 nir_ubfe(&b, nir_channel(&b, nir_load_var(&b, vbo_data), 1), nir_imm_int(&b, 16), in build_dgc_prepare_shader() 451 nir_push_if(&b, nir_ult(&b, nir_load_var(&b, num_records), attrib_end)); in build_dgc_prepare_shader() [all …]
|
D | radv_query.c | 136 nir_ssa_def *current_outer_count = nir_load_var(&b, outer_counter); in build_occlusion_query_shader() 152 nir_ssa_def *start_done = nir_ilt(&b, nir_load_var(&b, start), nir_imm_int64(&b, 0)); in build_occlusion_query_shader() 153 nir_ssa_def *end_done = nir_ilt(&b, nir_load_var(&b, end), nir_imm_int64(&b, 0)); in build_occlusion_query_shader() 158 nir_iadd(&b, nir_load_var(&b, result), in build_occlusion_query_shader() 159 nir_isub(&b, nir_load_var(&b, end), nir_load_var(&b, start))), in build_occlusion_query_shader() 176 nir_load_var(&b, available))); in build_occlusion_query_shader() 180 nir_store_ssbo(&b, nir_load_var(&b, result), dst_buf, output_base, .align_mul = 8); in build_occlusion_query_shader() 184 nir_store_ssbo(&b, nir_u2u32(&b, nir_load_var(&b, result)), dst_buf, output_base, in build_occlusion_query_shader() 191 nir_b2i32(&b, nir_load_var(&b, available))); in build_occlusion_query_shader() 270 nir_ssa_def *input_base = nir_imul(&b, nir_load_var(&b, input_stride), global_id); in build_pipeline_statistics_query_shader() [all …]
|
D | radv_rt_common.c | 50 nir_ssa_def *ssa_distances = nir_load_var(b, var_distances); in nir_sort_hit_pair() 51 nir_ssa_def *ssa_indices = nir_load_var(b, var_indices); in nir_sort_hit_pair() 172 return nir_load_var(b, child_indices); in intersect_ray_amd_software_box() 298 u = nir_load_var(b, u_var); in intersect_ray_amd_software_tri() 299 v = nir_load_var(b, v_var); in intersect_ray_amd_software_tri() 300 w = nir_load_var(b, w_var); in intersect_ray_amd_software_tri() 337 return nir_load_var(b, result); in intersect_ray_amd_software_tri()
|
D | radv_meta_etc_decode.c | 259 nir_ssa_def *payload = nir_load_var(&b, payload_var); in build_shader() 358 nir_iand(&b, nir_load_var(&b, punchthrough), in build_shader() 401 nir_iand(&b, nir_load_var(&b, punchthrough), in build_shader() 458 nir_push_if(&b, nir_load_var(&b, etc1_compat)); in build_shader() 463 sgn = nir_bcsel(&b, nir_load_var(&b, punchthrough), nir_imul(&b, sgn, lsb), sgn); in build_shader() 465 nir_iand(&b, nir_load_var(&b, punchthrough), in build_shader() 470 nir_ssa_def *result = nir_iadd(&b, nir_load_var(&b, base_rgb), off); in build_shader() 474 nir_push_if(&b, nir_load_var(&b, punchthrough)); in build_shader() 482 col[i] = nir_fdiv(&b, nir_i2f32(&b, nir_channel(&b, nir_load_var(&b, rgb_result), i)), in build_shader() 484 col[3] = nir_load_var(&b, alpha_result); in build_shader() [all …]
|
D | radv_acceleration_structure.c | 888 return nir_load_var(b, result); in get_indices() 997 positions[i] = nir_load_var(b, results[i]); in get_vertices() 1230 node_data[i * 3 + j] = nir_fdph(&b, positions[i], nir_load_var(&b, transform[j])); in build_leaf_shader() 1322 nir_ssa_def *instance_addr = nir_load_var(&b, instance_addr_var); in build_leaf_shader() 1394 nir_build_store_global(&b, nir_load_var(&b, bounds[0]), nir_iadd_imm(&b, node_dst_addr, 64)); in build_leaf_shader() 1395 nir_build_store_global(&b, nir_load_var(&b, bounds[1]), nir_iadd_imm(&b, node_dst_addr, 76)); in build_leaf_shader() 1401 nir_ssa_def *min = nir_load_var(&b, bounds[0]); in build_leaf_shader() 1402 nir_ssa_def *max = nir_load_var(&b, bounds[1]); in build_leaf_shader() 1533 nir_ssa_def *node_min = nir_load_var(&b, node_bounds[0]); in build_morton_shader() 1534 nir_ssa_def *node_max = nir_load_var(&b, node_bounds[1]); in build_morton_shader() [all …]
|
/third_party/mesa3d/src/compiler/nir/tests/ |
D | vars_tests.cpp | 225 nir_store_var(b, out[0], nir_load_var(b, in), 1); in TEST_F() 226 nir_store_var(b, out[1], nir_load_var(b, in), 1); in TEST_F() 251 nir_store_var(b, out[0], nir_load_var(b, in), 1); in TEST_F() 253 nir_store_var(b, out[2], nir_load_var(b, in), 1); in TEST_F() 282 nir_store_var(b, out[0], nir_load_var(b, in), 1); in TEST_F() 287 nir_store_var(b, out[1], nir_load_var(b, in), 1); in TEST_F() 310 nir_load_var(b, g[0]); in TEST_F() 311 nir_load_var(b, g[1]); in TEST_F() 312 nir_load_var(b, g[2]); in TEST_F() 322 nir_store_var(b, out[0], nir_load_var(b, g[0]), 1); in TEST_F() [all …]
|
/third_party/mesa3d/src/compiler/nir/ |
D | nir_lower_gs_intrinsics.c | 88 nir_ssa_def *count = nir_load_var(b, state->vertex_count_vars[stream]); in rewrite_emit_vertex() 92 count_per_primitive = nir_load_var(b, state->vtxcnt_per_prim_vars[stream]); in rewrite_emit_vertex() 118 nir_ssa_def *vtx_per_prim_cnt = nir_load_var(b, var); in rewrite_emit_vertex() 167 nir_load_var(b, state->vertex_count_vars[stream]); in overwrite_incomplete_primitives() 171 nir_load_var(b, state->vtxcnt_per_prim_vars[stream]); in overwrite_incomplete_primitives() 191 nir_ssa_def *prim_cnt = nir_load_var(b, state->primitive_count_vars[stream]); in overwrite_incomplete_primitives() 209 nir_ssa_def *count = nir_load_var(b, state->vertex_count_vars[stream]); in rewrite_end_primitive() 213 count_per_primitive = nir_load_var(b, state->vtxcnt_per_prim_vars[stream]); in rewrite_end_primitive() 223 nir_ssa_def *prim_cnt = nir_load_var(b, state->primitive_count_vars[stream]); in rewrite_end_primitive() 305 vtx_cnt = nir_load_var(b, state->vertex_count_vars[stream]); in append_set_vertex_and_primitive_count() [all …]
|
D | nir_lower_point_size_mov.c | 67 nir_ssa_def *load = nir_load_var(&b, in); in lower_impl() 80 nir_ssa_def *load = nir_load_var(&b, in); in lower_impl() 91 nir_ssa_def *load = nir_load_var(&b, in); in lower_impl()
|
D | nir_lower_drawpixels.c | 66 return nir_load_var(&state->b, state->texcoord); in get_texcoord() 91 return nir_load_var(&state->b, state->scale); in get_scale() 101 return nir_load_var(&state->b, state->bias); in get_bias() 112 return nir_load_var(&state->b, state->texcoord_const); in get_texcoord_const()
|
D | nir_lower_two_sided_color.c | 181 face = nir_load_var(b, state->face); in nir_lower_two_sided_color_block() 185 front = nir_load_var(b, state->colors[idx].front); in nir_lower_two_sided_color_block() 186 back = nir_load_var(b, state->colors[idx].back); in nir_lower_two_sided_color_block()
|
D | nir_lower_input_attachments.c | 50 return nir_load_var(b, pos); in load_frag_coord() 76 return nir_load_var(b, layer_id); in load_layer_id()
|
D | nir_lower_patch_vertices.c | 90 val = nir_load_var(&b, var); in nir_lower_patch_vertices()
|
D | nir_lower_passthrough_edgeflags.c | 90 def = nir_load_var(&b, in); in lower_impl()
|
D | nir_lower_alpha_test.c | 107 nir_ssa_def *alpha_ref = nir_load_var(&b, var); in nir_lower_alpha_test()
|
/third_party/mesa3d/src/mesa/state_tracker/ |
D | st_draw_hw_select.c | 144 nir_ssa_def *config = nir_i2b(b, nir_load_var(b, culling_config)); in face_culling() 203 nir_ssa_def *idx = nir_load_var(b, name##_index); \ 225 nir_ssa_def *num = nir_load_var(b, num_vert); in clip_with_plane() 234 nir_iand(b, nir_load_var(b, all_clipped), clipped), 1); in clip_with_plane() 238 return_if_true(b, nir_load_var(b, all_clipped)); in clip_with_plane() 290 nir_ssa_def *index = nir_load_var(b, vert_index); in clip_with_plane() 309 nir_ssa_def *index = nir_load_var(b, vert_index); in clip_with_plane() 311 nir_load_var(b, saved), in clip_with_plane() 331 nir_ssa_def *index = nir_load_var(b, vert_index); in clip_with_plane() 333 nir_load_var(b, saved), in clip_with_plane() [all …]
|
D | st_pbo.c | 317 nir_swizzle(&b, nir_i2f32(&b, nir_load_var(&b, instance_id)), swiz_x, 4), in st_pbo_create_vs() 430 nir_ssa_def *param = nir_load_var(&b, param_var); in create_fs() 437 nir_ssa_def *coord = nir_load_var(&b, fragcoord); in create_fs() 456 layer = nir_load_var(&b, var); in create_fs() 497 nir_ssa_def *layer_offset = nir_load_var(&b, layer_offset_var); in create_fs()
|
/third_party/mesa3d/src/broadcom/compiler/ |
D | v3d_nir_lower_io.c | 164 nir_load_var(b, state->gs.output_offset_var) : NULL; in v3d_nir_lower_vpm_output() 187 nir_ssa_def *header = nir_load_var(b, state->gs.header_var); in v3d_nir_lower_vpm_output() 264 nir_ssa_def *header = nir_load_var(b, state->gs.header_var); in v3d_nir_lower_emit_vertex() 265 nir_ssa_def *header_offset = nir_load_var(b, state->gs.header_offset_var); in v3d_nir_lower_emit_vertex() 266 nir_ssa_def *output_offset = nir_load_var(b, state->gs.output_offset_var); in v3d_nir_lower_emit_vertex() 563 nir_load_var(b, state->gs.output_offset_var) : NULL; in v3d_nir_emit_ff_vpm_outputs() 685 nir_load_var(b, state->gs.header_offset_var); in emit_gs_vpm_output_header_prolog()
|
/third_party/mesa3d/src/amd/common/ |
D | ac_nir_lower_ngg.c | 415 vtx_idx[v] = nir_load_var(b, st->gs_vtx_indices_vars[v]); in emit_ngg_nogs_prim_exp_arg() 425 ? nir_load_var(b, st->gs_accepted_var) in emit_ngg_nogs_prim_export() 460 nir_load_var(b, st->gs_accepted_var) : nir_has_input_primitive_amd(b); in emit_ngg_nogs_prim_id_store_shared() 469 … nir_ssa_def *provoking_vtx_idx = nir_load_var(b, st->gs_vtx_indices_vars[st->provoking_vtx_idx]); in emit_ngg_nogs_prim_id_store_shared() 568 nir_ssa_def *pos_val_rep = nir_load_var(b, replacement_var); in rewrite_uses_to_var() 791 nir_if *if_es_accepted = nir_push_if(b, nir_load_var(b, es_accepted_var)); in compact_vertices_after_culling() 799 nir_ssa_def *pos = nir_load_var(b, position_value_var); in compact_vertices_after_culling() 804 nir_ssa_def *arg_val = nir_load_var(b, repacked_arg_vars[i]); in compact_vertices_after_culling() 840 nir_if *if_gs_accepted = nir_push_if(b, nir_load_var(b, gs_accepted_var)); in compact_vertices_after_culling() 846 nir_ssa_def *vtx_addr = nir_load_var(b, gs_vtxaddr_vars[v]); in compact_vertices_after_culling() [all …]
|
/third_party/mesa3d/src/panfrost/lib/ |
D | pan_indirect_draw.c | 586 nir_ssa_def *attrib_idx = nir_load_var(b, attrib_idx_var); in update_vertex_attribs() 693 nir_load_var(b, builder->varyings.mem_ptr); in update_varying_buf() 737 nir_load_var(b, builder->varyings.mem_ptr)); in update_varyings() 873 min = nir_load_var(b, min_var); in get_instance_size() 874 max = nir_load_var(b, max_var); in get_instance_size() 901 min = nir_load_var(b, min_var); in get_instance_size() 902 max = nir_load_var(b, max_var); in get_instance_size() 920 min = nir_load_var(b, min_var); in get_instance_size() 921 max = nir_load_var(b, max_var); in get_instance_size() 1048 nir_ssa_def *offset = nir_load_var(b, offset_var); in get_index_min_max() [all …]
|
/third_party/mesa3d/src/intel/compiler/ |
D | brw_nir_lower_intersection_shader.c | 163 nir_push_if(b, nir_load_var(b, commit)); in brw_nir_lower_intersection_shader() 221 nir_push_if(b, nir_load_var(b, commit_tmp)); in brw_nir_lower_intersection_shader() 232 nir_ssa_def *accepted = nir_load_var(b, commit_tmp); in brw_nir_lower_intersection_shader()
|
/third_party/mesa3d/src/gallium/auxiliary/nir/ |
D | nir_draw_helpers.c | 54 return nir_load_var(b, var); in load_frag_coord() 62 return nir_load_var(b, pos); in load_frag_coord() 176 nir_ssa_def *lw = nir_load_var(b, state->line_width_input); in nir_lower_aaline_block() 293 nir_ssa_def *aainput = nir_load_var(b, state->input); in nir_lower_aapoint_impl()
|
/third_party/mesa3d/src/microsoft/vulkan/ |
D | dzn_nir.c | 395 old_index_ptr = nir_load_var(&b, old_index_ptr_var); in dzn_nir_triangle_fan_prim_restart_rewrite_index_shader() 396 nir_ssa_def *index0 = nir_load_var(&b, index0_var); in dzn_nir_triangle_fan_prim_restart_rewrite_index_shader() 452 nir_ssa_def *new_index_ptr = nir_load_var(&b, new_index_ptr_var); in dzn_nir_triangle_fan_prim_restart_rewrite_index_shader() 462 nir_store_ssbo(&b, nir_load_var(&b, new_index_ptr_var), in dzn_nir_triangle_fan_prim_restart_rewrite_index_shader() 637 nir_channels(&b, nir_load_var(&b, coord_var), (1 << coord_comps) - 1); in dzn_nir_blit_fs()
|
/third_party/mesa3d/src/gallium/drivers/vc4/ |
D | vc4_blit.c | 204 nir_store_var(&b, pos_out, nir_load_var(&b, pos_in), 0xf); in vc4_get_yuv_vs() 252 nir_ssa_def *pos = nir_load_var(&b, pos_in); in vc4_get_yuv_fs() 262 nir_ssa_def *stride = nir_load_var(&b, stride_in); in vc4_get_yuv_fs()
|
/third_party/mesa3d/src/gallium/frontends/lavapipe/ |
D | lvp_lower_input_attachments.c | 48 return nir_load_var(b, pos); in load_frag_coord()
|