Home
last modified time | relevance | path

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

12

/third_party/mesa3d/src/compiler/glsl/
Dgl_nir_lower_packed_varyings.c431 nir_ssa_def *swizzle = nir_swizzle(&state->b, value, &swiz_x, 1); in bitwise_assign_pack()
443 swizzle = nir_swizzle(&state->b, value, &swiz_y, 1); in bitwise_assign_pack()
518 nir_ssa_def *xy_value = nir_swizzle(&state->b, value, swiz_xy, 2); in bitwise_assign_unpack()
530 nir_ssa_def *zw_value = nir_swizzle(&state->b, value, swiz_zw, 2); in bitwise_assign_unpack()
583 srcs[i] = nir_swizzle(&state->b, value, &comp, 1); in create_store_deref()
790 nir_swizzle(&state->b, ssa_def, in lower_varying()
816 nir_swizzle(&state->b, ssa_def, in lower_varying()
868 nir_swizzle(&state->b, ssa_def, swizzle_values, components); in lower_varying()
Dglsl_to_nir.cpp1772 src = nir_swizzle(&b, src, swiz, num_components); in visit()
1932 result = nir_swizzle(&b, result, swiz, in visit()
2394 result = nir_swizzle(&b, evaluate_rvalue(ir->val), swizzle, in visit()
/third_party/mesa3d/src/gallium/drivers/lima/ir/
Dlima_nir_lower_txp.c124 combined = nir_swizzle(b, load_input, xyzw, 4); in lima_nir_lower_txp_instr()
128 combined = nir_swizzle(b, load_input, xyz, 3); in lima_nir_lower_txp_instr()
/third_party/mesa3d/src/compiler/nir/
Dnir_builtin_builder.c36 return nir_ffma(b, nir_swizzle(b, x, yzx, 3), in nir_cross3()
37 nir_swizzle(b, y, zxy, 3), in nir_cross3()
38 nir_fneg(b, nir_fmul(b, nir_swizzle(b, x, zxy, 3), in nir_cross3()
39 nir_swizzle(b, y, yzx, 3)))); in nir_cross3()
Dnir_lower_tex.c683 nir_swizzle(b, p, xzy, 3), in lower_gradient_cube_map()
684 nir_swizzle(b, p, yzx, 3))); in lower_gradient_cube_map()
689 nir_swizzle(b, dPdx, xzy, 3), in lower_gradient_cube_map()
690 nir_swizzle(b, dPdx, yzx, 3))); in lower_gradient_cube_map()
695 nir_swizzle(b, dPdy, xzy, 3), in lower_gradient_cube_map()
696 nir_swizzle(b, dPdy, yzx, 3))); in lower_gradient_cube_map()
957 nir_ssa_def *swizzled = nir_swizzle(b, &tex->dest.ssa, swiz, 4); in swizzle_tg4_broadcom()
985 swizzled = nir_swizzle(b, &tex->dest.ssa, swiz, 4); in swizzle_result()
Dnir_lower_vec3_to_vec4.c99 data = nir_swizzle(&b, data, swiz, 4); in lower_vec3_to_vec4_impl()
Dnir_opt_vectorize.c303 nir_ssa_def *new_alu1 = nir_swizzle(&b, &new_alu->dest.dest.ssa, swiz, in instr_try_combine()
311 nir_ssa_def *new_alu2 = nir_swizzle(&b, &new_alu->dest.dest.ssa, swiz, in instr_try_combine()
Dnir_builder.h406 nir_swizzle(nir_builder *build, nir_ssa_def *src, const unsigned *swiz, in nir_swizzle() function
493 return nir_swizzle(b, def, &c, 1); in nir_channel()
507 return nir_swizzle(b, def, swizzle, num_channels); in nir_channels()
Dnir_lower_vars_to_ssa.c647 new_def = nir_swizzle(&b, value, swiz, in rename_variables()
Dnir_deref.c1301 return nir_swizzle(b, data, swiz, num_components); in resize_vector()
Dnir_split_vars.c1598 nir_swizzle(&b, intrin->src[1].ssa, swizzle, c); in shrink_vec_var_access_impl()
/third_party/mesa3d/src/intel/compiler/
Dbrw_nir_attribute_workarounds.c76 val = nir_swizzle(b, val, (unsigned[4]){2,1,0,3}, 4); in apply_attr_wa_instr()
/third_party/mesa3d/src/mesa/program/
Dprog_to_nir.c411 nir_swizzle(b, src[0], SWIZ(Y, Z, X, W), 3), in ptn_xpd()
412 nir_swizzle(b, src[1], SWIZ(Z, X, Y, W), 3)), in ptn_xpd()
414 nir_swizzle(b, src[1], SWIZ(Y, Z, X, W), 3), in ptn_xpd()
415 nir_swizzle(b, src[0], SWIZ(Z, X, Y, W), 3))), in ptn_xpd()
585 nir_src_for_ssa(nir_swizzle(b, src[0], SWIZ(X, Y, Z, W), in ptn_tex()
/third_party/mesa3d/src/mesa/state_tracker/
Dst_nir_lower_builtin.c216 def = nir_swizzle(b, def, swiz, intrin->num_components); in lower_builtin_instr()
Dst_atifs_to_nir.c65 return nir_swizzle(b, src, swizzle, 4); in nir_channel_vec4()
102 return nir_swizzle(t->b, src, xywz, 4); in apply_swizzle()
Dst_pbo.c317 nir_swizzle(&b, nir_i2f32(&b, nir_load_var(&b, instance_id)), swiz_x, 4), in st_pbo_create_vs()
485 texcoord = nir_swizzle(&b, texcoord, &sw, 1); in create_fs()
/third_party/mesa3d/src/gallium/drivers/radeonsi/
Dsi_shaderlib_nir.c111 coord_src = nir_swizzle(&b, coord_src, swizzle_xz, 4); in si_create_copy_image_cs()
113 coord_dst = nir_swizzle(&b, coord_dst, swizzle_xz, 4); in si_create_copy_image_cs()
/third_party/mesa3d/src/panfrost/util/
Dpan_lower_framebuffer.c171 return nir_swizzle(b, v, swizzle, v->num_components); in pan_pack_reorder()
186 return nir_swizzle(b, v, swizzle, v->num_components); in pan_unpack_reorder()
/third_party/mesa3d/src/gallium/auxiliary/nir/
Dtgsi_to_nir.c100 nir_swizzle(b, src, SWIZ(x, y, z, w), 4)
649 load = nir_swizzle(b, load, SWIZ(X, Y, Y, Y), 4); in ttn_src_for_file_and_index()
651 load = nir_swizzle(b, load, SWIZ(X, Y, Z, Z), 4); in ttn_src_for_file_and_index()
1453 nir_src_for_ssa(nir_swizzle(b, src[0], SWIZ(X, Y, Z, W), in ttn_tex()
1510 nir_src_for_ssa(nir_swizzle(b, src[1], SWIZ(X, Y, Z, W), in ttn_tex()
1515 nir_src_for_ssa(nir_swizzle(b, src[2], SWIZ(X, Y, Z, W), in ttn_tex()
1711 instr->src[i++] = nir_src_for_ssa(nir_swizzle(b, src[1], SWIZ(X, Y, Z, W), in ttn_mem()
1769 instr->src[3] = nir_src_for_ssa(nir_swizzle(b, src[1], SWIZ(X, Y, Z, W), in ttn_mem()
/third_party/mesa3d/src/amd/vulkan/
Dradv_meta_blit.c95 nir_swizzle(&b, nir_load_var(&b, tex_pos_in), swz, (tex_dim == GLSL_SAMPLER_DIM_1D ? 2 : 3)); in build_nir_copy_fragment_shader()
143 nir_swizzle(&b, nir_load_var(&b, tex_pos_in), swz, (tex_dim == GLSL_SAMPLER_DIM_1D ? 2 : 3)); in build_nir_copy_fragment_shader_depth()
191 nir_swizzle(&b, nir_load_var(&b, tex_pos_in), swz, (tex_dim == GLSL_SAMPLER_DIM_1D ? 2 : 3)); in build_nir_copy_fragment_shader_stencil()
Dradv_meta_buffer.c16 nir_ssa_def *data = nir_swizzle(&b, nir_channel(&b, pconst, 3), (unsigned[]){0, 0, 0, 0}, 4); in build_buffer_fill_shader()
Dradv_rt_common.c227 nir_swizzle(b, k, swap_xy_swizzle, 3), k); in intersect_ray_amd_software_tri()
/third_party/mesa3d/src/gallium/drivers/r600/sfn/
Dsfn_nir_lower_tex.cpp172 scale = nir_swizzle(b, scale, swizzle, 3); in lower_txl_txf_array_or_cube()
Dsfn_nir_vectorize_vs_inputs.c168 nir_ssa_def *load = nir_swizzle(b, &new_intr->dest.ssa, channels, old_num_comps); in r600_create_new_load()
/third_party/mesa3d/src/compiler/spirv/
Dvtn_glsl450.c67 subcol[j - (j > col)] = nir_swizzle(b, src[j], swiz, size - 1); in build_mat_subdet()

12