Home
last modified time | relevance | path

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

/external/mesa3d/src/compiler/spirv/
Dvtn_glsl450.c43 nir_ssa_def *p = nir_fmul(b, col[0], nir_swizzle(b, col[1], swiz, 2)); in build_mat2_det()
55 nir_fmul(b, nir_swizzle(b, col[1], yzx, 3), in build_mat3_det()
56 nir_swizzle(b, col[2], zxy, 3))); in build_mat3_det()
59 nir_fmul(b, nir_swizzle(b, col[1], zxy, 3), in build_mat3_det()
60 nir_swizzle(b, col[2], yzx, 3))); in build_mat3_det()
79 subcol[0] = nir_swizzle(b, col[1], swiz, 3); in build_mat4_det()
80 subcol[1] = nir_swizzle(b, col[2], swiz, 3); in build_mat4_det()
81 subcol[2] = nir_swizzle(b, col[3], swiz, 3); in build_mat4_det()
132 subcol[j - (j > col)] = nir_swizzle(b, src->elems[j]->def, in build_mat_subdet()
Dspirv_to_nir.c3006 return nir_swizzle(&b->nb, coord, swizzle, 4); in get_image_coord()
3018 return nir_swizzle(b, value, swiz, 4); in expand_to_vec4()
/external/mesa3d/src/compiler/nir/
Dnir_builtin_builder.c36 return nir_fsub(b, nir_fmul(b, nir_swizzle(b, x, yzx, 3), in nir_cross3()
37 nir_swizzle(b, y, zxy, 3)), in nir_cross3()
38 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.c562 nir_swizzle(b, p, xzy, 3), in lower_gradient_cube_map()
563 nir_swizzle(b, p, yzx, 3))); in lower_gradient_cube_map()
568 nir_swizzle(b, dPdx, xzy, 3), in lower_gradient_cube_map()
569 nir_swizzle(b, dPdx, yzx, 3))); in lower_gradient_cube_map()
574 nir_swizzle(b, dPdy, xzy, 3), in lower_gradient_cube_map()
575 nir_swizzle(b, dPdy, yzx, 3))); in lower_gradient_cube_map()
754 nir_ssa_def *swizzled = nir_swizzle(b, &tex->dest.ssa, swiz, 4); in swizzle_tg4_broadcom()
782 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.c246 nir_ssa_def *new_alu1 = nir_swizzle(&b, &new_alu->dest.dest.ssa, swiz, in instr_try_combine()
251 nir_ssa_def *new_alu2 = nir_swizzle(&b, &new_alu->dest.dest.ssa, swiz, in instr_try_combine()
Dnir_builder.h545 nir_swizzle(nir_builder *build, nir_ssa_def *src, const unsigned *swiz, in nir_swizzle() function
629 return nir_swizzle(b, def, &c, 1); in nir_channel()
643 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.c1185 return nir_swizzle(b, data, swiz, num_components); in resize_vector()
Dnir_split_vars.c1609 nir_swizzle(&b, intrin->src[1].ssa, swizzle, c); in shrink_vec_var_access_impl()
/external/mesa3d/src/intel/compiler/
Dbrw_nir_attribute_workarounds.c83 val = nir_swizzle(b, val, (unsigned[4]){2,1,0,3}, 4); in apply_attr_wa_block()
/external/mesa3d/src/mesa/program/
Dprog_to_nir.c409 nir_swizzle(b, src[0], SWIZ(Y, Z, X, W), 3), in ptn_xpd()
410 nir_swizzle(b, src[1], SWIZ(Z, X, Y, W), 3)), in ptn_xpd()
412 nir_swizzle(b, src[1], SWIZ(Y, Z, X, W), 3), in ptn_xpd()
413 nir_swizzle(b, src[0], SWIZ(Z, X, Y, W), 3))), in ptn_xpd()
564 nir_src_for_ssa(nir_swizzle(b, src[0], SWIZ(X, Y, Z, W), in ptn_tex()
/external/mesa3d/src/mesa/state_tracker/
Dst_nir_lower_builtin.c212 def = nir_swizzle(b, def, swiz, intrin->num_components); in lower_builtin_block()
Dst_pbo.c323 nir_swizzle(&b, nir_i2f32(&b, nir_load_var(&b, instance_id)), swiz_x, 4), in st_pbo_create_vs()
Dst_cb_drawpixels.c250 nir_ssa_def *swizzled_ds= nir_swizzle(&b, unpacked_ds, zyxw, 4); in make_drawpix_zs_to_color_program_nir()
/external/mesa3d/src/gallium/auxiliary/nir/
Dtgsi_to_nir.c98 nir_swizzle(b, src, SWIZ(x, y, z, w), 4)
651 load = nir_swizzle(b, load, SWIZ(X, Y, Y, Y), 4); in ttn_src_for_file_and_index()
653 load = nir_swizzle(b, load, SWIZ(X, Y, Z, Z), 4); in ttn_src_for_file_and_index()
1459 nir_src_for_ssa(nir_swizzle(b, src[0], SWIZ(X, Y, Z, W), in ttn_tex()
1516 nir_src_for_ssa(nir_swizzle(b, src[1], SWIZ(X, Y, Z, W), in ttn_tex()
1521 nir_src_for_ssa(nir_swizzle(b, src[2], SWIZ(X, Y, Z, W), in ttn_tex()
1713 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()
/external/mesa3d/src/gallium/drivers/r600/sfn/
Dsfn_instruction_tex.cpp265 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()
/external/mesa3d/src/amd/vulkan/
Dradv_meta_blit.c130 nir_swizzle(&b, nir_load_var(&b, tex_pos_in), swz, in build_nir_copy_fragment_shader()
188 nir_swizzle(&b, nir_load_var(&b, tex_pos_in), swz, in build_nir_copy_fragment_shader_depth()
246 nir_swizzle(&b, nir_load_var(&b, tex_pos_in), swz, in build_nir_copy_fragment_shader_stencil()
Dradv_meta_buffer.c40 nir_ssa_def *swizzled_load = nir_swizzle(&b, &load->dest.ssa, (unsigned[]) { 0, 0, 0, 0}, 4); in build_buffer_fill_shader()
/external/mesa3d/src/compiler/glsl/
Dglsl_to_nir.cpp1711 src = nir_swizzle(&b, src, swiz, num_components); in visit()
1874 result = nir_swizzle(&b, result, swiz, in visit()
2348 result = nir_swizzle(&b, evaluate_rvalue(ir->val), swizzle, in visit()