Home
last modified time | relevance | path

Searched refs:nir_ssa_def (Results 1 – 25 of 253) sorted by relevance

1234567891011

/external/mesa3d/prebuilt-intermediates/nir/
Dnir_builder_opcodes.h28 static inline nir_ssa_def *
29 nir_amul(nir_builder *build, nir_ssa_def *src0, nir_ssa_def *src1) in nir_amul()
33 static inline nir_ssa_def *
34 nir_b16all_fequal16(nir_builder *build, nir_ssa_def *src0, nir_ssa_def *src1) in nir_b16all_fequal16()
38 static inline nir_ssa_def *
39 nir_b16all_fequal2(nir_builder *build, nir_ssa_def *src0, nir_ssa_def *src1) in nir_b16all_fequal2()
43 static inline nir_ssa_def *
44 nir_b16all_fequal3(nir_builder *build, nir_ssa_def *src0, nir_ssa_def *src1) in nir_b16all_fequal3()
48 static inline nir_ssa_def *
49 nir_b16all_fequal4(nir_builder *build, nir_ssa_def *src0, nir_ssa_def *src1) in nir_b16all_fequal4()
[all …]
/external/mesa3d/src/compiler/nir/
Dnir_builtin_builder.h39 nir_ssa_def* nir_cross3(nir_builder *b, nir_ssa_def *x, nir_ssa_def *y);
40 nir_ssa_def* nir_cross4(nir_builder *b, nir_ssa_def *x, nir_ssa_def *y);
41 nir_ssa_def* nir_fast_length(nir_builder *b, nir_ssa_def *vec);
42 nir_ssa_def* nir_nextafter(nir_builder *b, nir_ssa_def *x, nir_ssa_def *y);
43 nir_ssa_def* nir_normalize(nir_builder *b, nir_ssa_def *vec);
44 nir_ssa_def* nir_smoothstep(nir_builder *b, nir_ssa_def *edge0,
45 nir_ssa_def *edge1, nir_ssa_def *x);
46 nir_ssa_def* nir_upsample(nir_builder *b, nir_ssa_def *hi, nir_ssa_def *lo);
47 nir_ssa_def* nir_atan(nir_builder *b, nir_ssa_def *y_over_x);
48 nir_ssa_def* nir_atan2(nir_builder *b, nir_ssa_def *y, nir_ssa_def *x);
[all …]
Dnir_lower_int64.c44 static nir_ssa_def *
45 lower_b2i64(nir_builder *b, nir_ssa_def *x) in lower_b2i64()
50 static nir_ssa_def *
51 lower_i2b(nir_builder *b, nir_ssa_def *x) in lower_i2b()
58 static nir_ssa_def *
59 lower_i2i8(nir_builder *b, nir_ssa_def *x) in lower_i2i8()
64 static nir_ssa_def *
65 lower_i2i16(nir_builder *b, nir_ssa_def *x) in lower_i2i16()
71 static nir_ssa_def *
72 lower_i2i32(nir_builder *b, nir_ssa_def *x) in lower_i2i32()
[all …]
Dnir_format_convert.h28 static inline nir_ssa_def *
29 nir_shift(nir_builder *b, nir_ssa_def *value, int left_shift) in nir_shift()
39 static inline nir_ssa_def *
40 nir_mask_shift(struct nir_builder *b, nir_ssa_def *src, in nir_mask_shift()
46 static inline nir_ssa_def *
47 nir_mask_shift_or(struct nir_builder *b, nir_ssa_def *dst, nir_ssa_def *src, in nir_mask_shift_or()
53 static inline nir_ssa_def *
54 nir_format_mask_uvec(nir_builder *b, nir_ssa_def *src, const unsigned *bits) in nir_format_mask_uvec()
65 static inline nir_ssa_def *
66 nir_format_sign_extend_ivec(nir_builder *b, nir_ssa_def *src, in nir_format_sign_extend_ivec()
[all …]
Dnir_builtin_builder.c30 nir_ssa_def*
31 nir_cross3(nir_builder *b, nir_ssa_def *x, nir_ssa_def *y) in nir_cross3()
42 nir_ssa_def*
43 nir_cross4(nir_builder *b, nir_ssa_def *x, nir_ssa_def *y) in nir_cross4()
45 nir_ssa_def *cross = nir_cross3(b, x, y); in nir_cross4()
54 nir_ssa_def*
55 nir_fast_length(nir_builder *b, nir_ssa_def *vec) in nir_fast_length()
69 nir_ssa_def*
70 nir_nextafter(nir_builder *b, nir_ssa_def *x, nir_ssa_def *y) in nir_nextafter()
72 nir_ssa_def *zero = nir_imm_intN_t(b, 0, x->bit_size); in nir_nextafter()
[all …]
Dnir_lower_double_ops.c42 static nir_ssa_def *
43 set_exponent(nir_builder *b, nir_ssa_def *src, nir_ssa_def *exp) in set_exponent()
46 nir_ssa_def *lo = nir_unpack_64_2x32_split_x(b, src); in set_exponent()
47 nir_ssa_def *hi = nir_unpack_64_2x32_split_y(b, src); in set_exponent()
52 nir_ssa_def *new_hi = nir_bitfield_insert(b, hi, exp, in set_exponent()
59 static nir_ssa_def *
60 get_exponent(nir_builder *b, nir_ssa_def *src) in get_exponent()
63 nir_ssa_def *hi = nir_unpack_64_2x32_split_y(b, src); in get_exponent()
71 static nir_ssa_def *
72 get_signed_inf(nir_builder *b, nir_ssa_def *zero) in get_signed_inf()
[all …]
Dnir_lower_frexp.c32 static nir_ssa_def *
33 lower_frexp_sig(nir_builder *b, nir_ssa_def *x) in lower_frexp_sig()
35 nir_ssa_def *abs_x = nir_fabs(b, x); in lower_frexp_sig()
36 nir_ssa_def *zero = nir_imm_floatN_t(b, 0, x->bit_size); in lower_frexp_sig()
37 nir_ssa_def *sign_mantissa_mask, *exponent_value; in lower_frexp_sig()
38 nir_ssa_def *is_not_zero = nir_fneu(b, abs_x, zero); in lower_frexp_sig()
91 nir_ssa_def *upper_x = nir_unpack_64_2x32_split_y(b, x); in lower_frexp_sig()
92 nir_ssa_def *zero32 = nir_imm_int(b, 0); in lower_frexp_sig()
94 nir_ssa_def *new_upper = in lower_frexp_sig()
98 nir_ssa_def *lower_x = nir_unpack_64_2x32_split_x(b, x); in lower_frexp_sig()
[all …]
Dnir_lower_alu.c45 nir_ssa_def *lowered = NULL; in lower_alu_instr()
59 nir_ssa_def *c1 = nir_imm_int(b, 1); in lower_alu_instr()
60 nir_ssa_def *c2 = nir_imm_int(b, 2); in lower_alu_instr()
61 nir_ssa_def *c4 = nir_imm_int(b, 4); in lower_alu_instr()
62 nir_ssa_def *c8 = nir_imm_int(b, 8); in lower_alu_instr()
63 nir_ssa_def *c16 = nir_imm_int(b, 16); in lower_alu_instr()
64 nir_ssa_def *c33333333 = nir_imm_int(b, 0x33333333); in lower_alu_instr()
65 nir_ssa_def *c55555555 = nir_imm_int(b, 0x55555555); in lower_alu_instr()
66 nir_ssa_def *c0f0f0f0f = nir_imm_int(b, 0x0f0f0f0f); in lower_alu_instr()
67 nir_ssa_def *c00ff00ff = nir_imm_int(b, 0x00ff00ff); in lower_alu_instr()
[all …]
Dnir_builder.h160 nir_push_if(nir_builder *build, nir_ssa_def *condition) in nir_push_if()
190 static inline nir_ssa_def *
191 nir_if_phi(nir_builder *build, nir_ssa_def *then_def, nir_ssa_def *else_def) in nir_if_phi()
239 static inline nir_ssa_def *
254 static inline nir_ssa_def *
270 static inline nir_ssa_def *
283 static inline nir_ssa_def *
290 static inline nir_ssa_def *
296 static inline nir_ssa_def *
302 static inline nir_ssa_def *
[all …]
Dnir_lower_packing.c37 static nir_ssa_def *
38 lower_pack_64_from_32(nir_builder *b, nir_ssa_def *src) in lower_pack_64_from_32()
44 static nir_ssa_def *
45 lower_unpack_64_to_32(nir_builder *b, nir_ssa_def *src) in lower_unpack_64_to_32()
51 static nir_ssa_def *
52 lower_pack_32_from_16(nir_builder *b, nir_ssa_def *src) in lower_pack_32_from_16()
58 static nir_ssa_def *
59 lower_unpack_32_to_16(nir_builder *b, nir_ssa_def *src) in lower_unpack_32_to_16()
65 static nir_ssa_def *
66 lower_pack_64_from_16(nir_builder *b, nir_ssa_def *src) in lower_pack_64_from_16()
[all …]
Dnir_lower_flrp.c50 nir_ssa_def *const a = nir_ssa_for_alu_src(bld, alu, 0); in replace_with_strict_ffma()
51 nir_ssa_def *const b = nir_ssa_for_alu_src(bld, alu, 1); in replace_with_strict_ffma()
52 nir_ssa_def *const c = nir_ssa_for_alu_src(bld, alu, 2); in replace_with_strict_ffma()
54 nir_ssa_def *const neg_a = nir_fneg(bld, a); in replace_with_strict_ffma()
57 nir_ssa_def *const inner_ffma = nir_ffma(bld, neg_a, c, a); in replace_with_strict_ffma()
60 nir_ssa_def *const outer_ffma = nir_ffma(bld, b, c, inner_ffma); in replace_with_strict_ffma()
79 nir_ssa_def *const a = nir_ssa_for_alu_src(bld, alu, 0); in replace_with_single_ffma()
80 nir_ssa_def *const b = nir_ssa_for_alu_src(bld, alu, 1); in replace_with_single_ffma()
81 nir_ssa_def *const c = nir_ssa_for_alu_src(bld, alu, 2); in replace_with_single_ffma()
83 nir_ssa_def *const neg_c = nir_fneg(bld, c); in replace_with_single_ffma()
[all …]
Dnir_lower_tex.c79 nir_ssa_def *inv_proj = in project_src()
91 nir_ssa_def *unprojected = in project_src()
93 nir_ssa_def *projected = nir_fmul(b, unprojected, inv_proj); in project_src()
145 nir_ssa_def *offset = tex->src[offset_index].src.ssa; in lower_offset()
146 nir_ssa_def *coord = tex->src[coord_index].src.ssa; in lower_offset()
150 nir_ssa_def *offset_coord; in lower_offset()
155 nir_ssa_def *txs = nir_i2f32(b, nir_get_texture_size(b, tex)); in lower_offset()
156 nir_ssa_def *scale = nir_frcp(b, txs); in lower_offset()
197 nir_ssa_def *txs = nir_i2f32(b, nir_get_texture_size(b, tex)); in lower_rect()
198 nir_ssa_def *scale = nir_frcp(b, txs); in lower_rect()
[all …]
Dnir_conversion_builder.h35 static inline nir_ssa_def *
36 nir_round_float_to_int(nir_builder *b, nir_ssa_def *src, in nir_round_float_to_int()
56 static inline nir_ssa_def *
57 nir_round_float_to_float(nir_builder *b, nir_ssa_def *src, in nir_round_float_to_float()
76 nir_ssa_def *lower_prec = in nir_round_float_to_float()
78 nir_ssa_def *roundtrip = in nir_round_float_to_float()
80 nir_ssa_def *cmp = nir_flt(b, roundtrip, src); in nir_round_float_to_float()
81 nir_ssa_def *inf = nir_imm_floatN_t(b, INFINITY, dest_bit_size); in nir_round_float_to_float()
87 nir_ssa_def *lower_prec = in nir_round_float_to_float()
89 nir_ssa_def *roundtrip = in nir_round_float_to_float()
[all …]
Dnir_lower_idiv.c46 nir_ssa_def *numer, *denom, *af, *bf, *a, *b, *q, *r, *rt; in convert_instr()
138 static nir_ssa_def *
139 emit_udiv(nir_builder *bld, nir_ssa_def *numer, nir_ssa_def *denom, bool modulo) in emit_udiv()
141 nir_ssa_def *rcp = nir_frcp(bld, nir_u2f32(bld, denom)); in emit_udiv()
144 nir_ssa_def *neg_rcp_times_denom = in emit_udiv()
150 nir_ssa_def *quotient = nir_umul_high(bld, numer, rcp); in emit_udiv()
151 nir_ssa_def *num_s_remainder = nir_imul(bld, quotient, denom); in emit_udiv()
152 nir_ssa_def *remainder = nir_isub(bld, numer, num_s_remainder); in emit_udiv()
155 nir_ssa_def *remainder_ge_den = nir_uge(bld, remainder, denom); in emit_udiv()
175 static nir_ssa_def *
[all …]
/external/mesa3d/src/panfrost/util/
Dpan_lower_framebuffer.c157 static nir_ssa_def *
158 pan_pack_pure_32(nir_builder *b, nir_ssa_def *v) in pan_pack_pure_32()
160 nir_ssa_def *replicated[4]; in pan_pack_pure_32()
168 static nir_ssa_def *
169 pan_unpack_pure_32(nir_builder *b, nir_ssa_def *pack, unsigned num_components) in pan_unpack_pure_32()
177 static nir_ssa_def *
178 pan_pack_pure_16(nir_builder *b, nir_ssa_def *v) in pan_pack_pure_16()
180 nir_ssa_def *replicated[4]; in pan_pack_pure_16()
185 nir_ssa_def *parts[2] = { in pan_pack_pure_16()
196 static nir_ssa_def *
[all …]
/external/mesa3d/src/gallium/drivers/panfrost/nir/
Dnir_lower_blend.c40 static nir_ssa_def *
44 nir_ssa_def *src, nir_ssa_def *dst) in nir_blend_func()
78 static nir_ssa_def *
81 nir_ssa_def *src, nir_ssa_def *dst, in nir_alpha_saturate()
85 nir_ssa_def *Asrc = nir_channel(b, src, 3); in nir_alpha_saturate()
86 nir_ssa_def *Adst = nir_channel(b, dst, 3); in nir_alpha_saturate()
87 nir_ssa_def *one = half ? nir_imm_float16(b, 1.0) : nir_imm_float(b, 1.0); in nir_alpha_saturate()
88 nir_ssa_def *Adsti = nir_fsub(b, one, Adst); in nir_alpha_saturate()
95 static nir_ssa_def *
98 nir_ssa_def *src, nir_ssa_def *src1, nir_ssa_def *dst, nir_ssa_def *bconst, in nir_blend_factor_value()
[all …]
/external/mesa3d/src/broadcom/compiler/
Dv3d_nir_lower_logic_ops.c39 typedef nir_ssa_def *(*nir_pack_func)(nir_builder *b, nir_ssa_def *c);
40 typedef nir_ssa_def *(*nir_unpack_func)(nir_builder *b, nir_ssa_def *c);
56 static nir_ssa_def *
58 nir_ssa_def *src, nir_ssa_def *dst) in v3d_logicop()
99 static nir_ssa_def *
100 v3d_nir_get_swizzled_channel(nir_builder *b, nir_ssa_def **srcs, int swiz) in v3d_nir_get_swizzled_channel()
119 static nir_ssa_def *
120 v3d_nir_swizzle_and_pack(nir_builder *b, nir_ssa_def **chans, in v3d_nir_swizzle_and_pack()
123 nir_ssa_def *c[4]; in v3d_nir_swizzle_and_pack()
130 static nir_ssa_def *
[all …]
/external/mesa3d/src/gallium/drivers/vc4/
Dvc4_nir_lower_blend.c57 static nir_ssa_def *
71 static nir_ssa_def *
73 nir_ssa_def **src, in vc4_blend_channel_f()
74 nir_ssa_def **dst, in vc4_blend_channel_f()
137 static nir_ssa_def *
138 vc4_nir_set_packed_chan(nir_builder *b, nir_ssa_def *src0, nir_ssa_def *src1, in vc4_nir_set_packed_chan()
147 static nir_ssa_def *
149 nir_ssa_def *src, in vc4_blend_channel_i()
150 nir_ssa_def *dst, in vc4_blend_channel_i()
151 nir_ssa_def *src_a, in vc4_blend_channel_i()
[all …]
Dvc4_nir_lower_txf_ms.c38 static nir_ssa_def *
51 nir_ssa_def *coord = NULL, *sample_index = NULL; in vc4_nir_lower_txf_ms_instr()
69 nir_ssa_def *x = nir_channel(b, coord, 0); in vc4_nir_lower_txf_ms_instr()
70 nir_ssa_def *y = nir_channel(b, coord, 1); in vc4_nir_lower_txf_ms_instr()
82 nir_ssa_def *x_tile = nir_ushr(b, x, nir_imm_int(b, tile_w_shift)); in vc4_nir_lower_txf_ms_instr()
83 nir_ssa_def *y_tile = nir_ushr(b, y, nir_imm_int(b, tile_h_shift)); in vc4_nir_lower_txf_ms_instr()
84 nir_ssa_def *tile_addr = nir_iadd(b, in vc4_nir_lower_txf_ms_instr()
90 nir_ssa_def *x_subspan = nir_iand(b, x, in vc4_nir_lower_txf_ms_instr()
92 nir_ssa_def *y_subspan = nir_iand(b, y, in vc4_nir_lower_txf_ms_instr()
94 nir_ssa_def *subspan_addr = nir_iadd(b, in vc4_nir_lower_txf_ms_instr()
[all …]
/external/mesa3d/src/compiler/nir/tests/
Dcomparison_pre_tests.cpp49 nir_ssa_def *v1;
50 nir_ssa_def *v2;
51 nir_ssa_def *v3;
95 nir_ssa_def *one = nir_imm_float(&bld, 1.0f); in TEST_F()
96 nir_ssa_def *a = nir_channel(&bld, nir_fadd(&bld, v1, v3), 0); in TEST_F()
98 nir_ssa_def *flt = nir_flt(&bld, a, one); in TEST_F()
147 nir_ssa_def *one = nir_imm_float(&bld, 1.0f); in TEST_F()
148 nir_ssa_def *b = nir_channel(&bld, nir_fadd(&bld, v1, v3), 0); in TEST_F()
150 nir_ssa_def *flt = nir_flt(&bld, one, b); in TEST_F()
200 nir_ssa_def *one = nir_imm_float(&bld, 1.0f); in TEST_F()
[all …]
/external/mesa3d/src/intel/compiler/
Dbrw_nir_lower_cs_intrinsics.c43 nir_ssa_def *local_index = NULL; in lower_cs_intrinsics_convert_block()
44 nir_ssa_def *local_id = NULL; in lower_cs_intrinsics_convert_block()
54 nir_ssa_def *sysval; in lower_cs_intrinsics_convert_block()
75 nir_ssa_def *subgroup_id = nir_load_subgroup_id(b); in lower_cs_intrinsics_convert_block()
77 nir_ssa_def *thread_local_id = in lower_cs_intrinsics_convert_block()
79 nir_ssa_def *channel = nir_load_subgroup_invocation(b); in lower_cs_intrinsics_convert_block()
80 nir_ssa_def *linear = nir_iadd(b, channel, thread_local_id); in lower_cs_intrinsics_convert_block()
82 nir_ssa_def *size_x; in lower_cs_intrinsics_convert_block()
83 nir_ssa_def *size_y; in lower_cs_intrinsics_convert_block()
85 nir_ssa_def *size_xyz = nir_load_local_group_size(b); in lower_cs_intrinsics_convert_block()
[all …]
Dbrw_nir_lower_image_load_store.c30 static nir_ssa_def *
64 static nir_ssa_def *
66 nir_ssa_def *coord) in image_coord_is_in_bounds()
68 nir_ssa_def *size = load_image_param(b, deref, SIZE); in image_coord_is_in_bounds()
69 nir_ssa_def *cmp = nir_ilt(b, coord, size); in image_coord_is_in_bounds()
72 nir_ssa_def *in_bounds = nir_imm_true(b); in image_coord_is_in_bounds()
91 static nir_ssa_def *
93 nir_deref_instr *deref, nir_ssa_def *coord) in image_address()
106 nir_ssa_def *offset = load_image_param(b, deref, OFFSET); in image_address()
107 nir_ssa_def *tiling = load_image_param(b, deref, TILING); in image_address()
[all …]
/external/mesa3d/src/compiler/spirv/
Dvtn_glsl450.c39 static nir_ssa_def *
40 build_mat2_det(nir_builder *b, nir_ssa_def *col[2]) in build_mat2_det()
43 nir_ssa_def *p = nir_fmul(b, col[0], nir_swizzle(b, col[1], swiz, 2)); in build_mat2_det()
47 static nir_ssa_def *
48 build_mat3_det(nir_builder *b, nir_ssa_def *col[3]) in build_mat3_det()
53 nir_ssa_def *prod0 = in build_mat3_det()
57 nir_ssa_def *prod1 = in build_mat3_det()
62 nir_ssa_def *diff = nir_fsub(b, prod0, prod1); in build_mat3_det()
69 static nir_ssa_def *
70 build_mat4_det(nir_builder *b, nir_ssa_def **col) in build_mat4_det()
[all …]
/external/mesa3d/src/gallium/drivers/r600/sfn/
Dsfn_nir_lower_tess_io.cpp26 static nir_ssa_def *
69 static inline nir_ssa_def *
70 r600_umad_24(nir_builder *b, nir_ssa_def *op1, nir_ssa_def *op2, nir_ssa_def *op3) in r600_umad_24()
75 static inline nir_ssa_def *
76 r600_tcs_base_address(nir_builder *b, nir_ssa_def *param_base, nir_ssa_def *rel_patch_id) in r600_tcs_base_address()
84 static nir_ssa_def *
85 emil_lsd_in_addr(nir_builder *b, nir_ssa_def *base, nir_ssa_def *patch_id, nir_intrinsic_instr *op) in emil_lsd_in_addr()
87 nir_ssa_def *addr = nir_build_alu(b, nir_op_umul24, in emil_lsd_in_addr()
105 static nir_ssa_def *
106 emil_lsd_out_addr(nir_builder *b, nir_ssa_def *base, nir_ssa_def *patch_id, nir_intrinsic_instr *op… in emil_lsd_out_addr()
[all …]
/external/mesa3d/src/freedreno/ir3/
Dir3_nir_lower_tess.c36 nir_ssa_def *header;
50 static nir_ssa_def *
51 bitfield_extract(nir_builder *b, nir_ssa_def *v, uint32_t start, uint32_t mask) in bitfield_extract()
57 static nir_ssa_def *
63 static nir_ssa_def *
69 static nir_ssa_def *
112 static nir_ssa_def *
114 nir_ssa_def *vertex, uint32_t location, uint32_t comp, nir_ssa_def *offset) in build_local_offset()
116 nir_ssa_def *primitive_stride = nir_load_vs_primitive_stride_ir3(b); in build_local_offset()
117 nir_ssa_def *primitive_offset = in build_local_offset()
[all …]

1234567891011