/external/mesa3d/src/panfrost/util/ |
D | pan_lower_framebuffer.c | 163 replicated[i] = nir_channel(b, v, i % v->num_components); in pan_pack_pure_32() 186 nir_channel(b, v, (c + 0) % v->num_components), in pan_pack_pure_16() 187 nir_channel(b, v, (c + 1) % v->num_components) in pan_pack_pure_16() 205 nir_unpack_32_2x16(b, nir_channel(b, pack, i >> 1)); in pan_unpack_pure_16() 207 unpacked[i + 0] = nir_channel(b, halves, 0); in pan_unpack_pure_16() 208 unpacked[i + 1] = nir_channel(b, halves, 1); in pan_unpack_pure_16() 228 q[j] = nir_channel(b, v, j % v->num_components); in pan_fill_4() 241 q[j] = nir_channel(b, v, j); in pan_extend() 266 nir_ssa_def *unpacked = nir_unpack_32_4x8(b, nir_channel(b, pack, 0)); in pan_unpack_pure_8() 286 nir_ssa_def *unpacked = nir_unpack_unorm_4x8(b, nir_channel(b, pack, 0)); in pan_unpack_unorm_8() [all …]
|
/external/mesa3d/src/compiler/nir/ |
D | nir_lower_wpos_ytransform.c | 104 nir_channel(b, wpostrans, invert ? 2 : 0), in emit_wpos_adjustment() 126 wpos_temp_y = nir_fadd(b, nir_fmul(b, nir_channel(b, wpos_temp, 1), in emit_wpos_adjustment() 127 nir_channel(b, wpostrans, 0)), in emit_wpos_adjustment() 128 nir_channel(b, wpostrans, 1)); in emit_wpos_adjustment() 131 wpos_temp_y = nir_fadd(b, nir_fmul(b, nir_channel(b, wpos_temp, 1), in emit_wpos_adjustment() 132 nir_channel(b, wpostrans, 2)), in emit_wpos_adjustment() 133 nir_channel(b, wpostrans, 3)); in emit_wpos_adjustment() 137 nir_channel(b, wpos_temp, 0), in emit_wpos_adjustment() 139 nir_channel(b, wpos_temp, 2), in emit_wpos_adjustment() 140 nir_channel(b, wpos_temp, 3)); in emit_wpos_adjustment() [all …]
|
D | nir_lower_tex.c | 102 nir_channel(b, projected, 0), in project_src() 103 nir_channel(b, projected, 1), in project_src() 104 nir_channel(b, projected, 2), in project_src() 105 nir_channel(b, unprojected, 3)); in project_src() 109 nir_channel(b, projected, 0), in project_src() 110 nir_channel(b, projected, 1), in project_src() 111 nir_channel(b, unprojected, 2)); in project_src() 115 nir_channel(b, projected, 0), in project_src() 116 nir_channel(b, unprojected, 1)); in project_src() 170 offset_coord = nir_vec2(b, nir_channel(b, offset_coord, 0), in lower_offset() [all …]
|
D | nir_lower_alu_to_scalar.c | 139 return nir_pack_half_2x16_split(b, nir_channel(b, src_vec2, 0), in lower_alu_instr_scalar() 140 nir_channel(b, src_vec2, 1)); in lower_alu_instr_scalar() 177 return nir_ior(b, nir_ishl(b, nir_channel(b, word, 1), in lower_alu_instr_scalar() 179 nir_channel(b, word, 0)); in lower_alu_instr_scalar() 188 return nir_ior(b, nir_ior(b, nir_ishl(b, nir_channel(b, byte, 3), in lower_alu_instr_scalar() 190 nir_ishl(b, nir_channel(b, byte, 2), in lower_alu_instr_scalar() 192 nir_ior(b, nir_ishl(b, nir_channel(b, byte, 1), in lower_alu_instr_scalar() 194 nir_channel(b, byte, 0))); in lower_alu_instr_scalar() 203 sum[i] = nir_fmul(b, nir_channel(b, src0_vec, i), in lower_alu_instr_scalar() 204 nir_channel(b, src1_vec, i)); in lower_alu_instr_scalar() [all …]
|
D | nir_normalize_cubemap_coords.c | 60 nir_ssa_def *norm = nir_fmax(b, nir_channel(b, abs, 0), in normalize_cubemap_coords_block() 61 nir_fmax(b, nir_channel(b, abs, 1), in normalize_cubemap_coords_block() 62 nir_channel(b, abs, 2))); in normalize_cubemap_coords_block() 71 nir_channel(b, normalized, 0), in normalize_cubemap_coords_block() 72 nir_channel(b, normalized, 1), in normalize_cubemap_coords_block() 73 nir_channel(b, normalized, 2), in normalize_cubemap_coords_block() 74 nir_channel(b, orig_coord, 3)); in normalize_cubemap_coords_block()
|
D | nir_lower_packing.c | 40 return nir_pack_64_2x32_split(b, nir_channel(b, src, 0), in lower_pack_64_from_32() 41 nir_channel(b, src, 1)); in lower_pack_64_from_32() 54 return nir_pack_32_2x16_split(b, nir_channel(b, src, 0), in lower_pack_32_from_16() 55 nir_channel(b, src, 1)); in lower_pack_32_from_16() 68 nir_ssa_def *xy = nir_pack_32_2x16_split(b, nir_channel(b, src, 0), in lower_pack_64_from_16() 69 nir_channel(b, src, 1)); in lower_pack_64_from_16() 71 nir_ssa_def *zw = nir_pack_32_2x16_split(b, nir_channel(b, src, 2), in lower_pack_64_from_16() 72 nir_channel(b, src, 3)); in lower_pack_64_from_16()
|
D | nir_lower_clip_halfz.c | 45 nir_channel(b, pos, 0), in lower_pos_write() 46 nir_channel(b, pos, 1), in lower_pos_write() 49 nir_channel(b, pos, 2), in lower_pos_write() 50 nir_channel(b, pos, 3)), in lower_pos_write() 52 nir_channel(b, pos, 3)); in lower_pos_write()
|
D | nir_lower_system_values.c | 293 nir_channel(b, local_size, 0)); in lower_compute_system_value_instr() 295 nir_channel(b, local_size, 0)), in lower_compute_system_value_instr() 296 nir_channel(b, local_size, 1)); in lower_compute_system_value_instr() 298 nir_imul(b, nir_channel(b, local_size, 0), in lower_compute_system_value_instr() 299 nir_channel(b, local_size, 1))); in lower_compute_system_value_instr() 329 index = nir_imul(b, nir_channel(b, local_id, 2), in lower_compute_system_value_instr() 332 nir_imul(b, nir_channel(b, local_id, 1), size_x)); in lower_compute_system_value_instr() 333 index = nir_iadd(b, index, nir_channel(b, local_id, 0)); in lower_compute_system_value_instr() 392 index = nir_imul(b, nir_channel(b, global_id, 2), in lower_compute_system_value_instr() 393 nir_channel(b, global_size, 1)); in lower_compute_system_value_instr() [all …]
|
D | nir_format_convert.h | 73 comps[i] = nir_ishr(b, nir_ishl(b, nir_channel(b, src, i), shift), shift); in nir_format_sign_extend_ivec() 99 nir_ssa_def *chan = nir_channel(b, packed, next_chan); in nir_format_unpack_int() 138 packed = nir_ior(b, packed, nir_shift(b, nir_channel(b, color, i), in nir_format_pack_uint_unmasked() 175 nir_ssa_def *shifted = nir_ishl(b, nir_channel(b, src, i), in nir_format_bitcast_uvec_unmasked() 195 dst_chan[i] = nir_iand(b, nir_ushr_imm(b, nir_channel(b, src, src_idx), in nir_format_bitcast_uvec_unmasked() 275 f16comps[i] = nir_pack_half_2x16_split(b, nir_channel(b, f, i), zero); in nir_format_float_to_half() 367 nir_ssa_def *p1 = nir_pack_half_2x16_split(b, nir_channel(b, clamped, 0), in nir_format_pack_11f11f10f() 368 nir_channel(b, clamped, 1)); in nir_format_pack_11f11f10f() 369 nir_ssa_def *p2 = nir_pack_half_2x16_split(b, nir_channel(b, clamped, 2), in nir_format_pack_11f11f10f() 397 nir_ssa_def *maxu = nir_umax(b, nir_channel(b, clamped, 0), in nir_format_pack_r9g9b9e5() [all …]
|
D | nir_lower_fragcoord_wtrans.c | 59 nir_channel(b, &intr->dest.ssa, 0), in lower_fragcoord_wtrans_impl() 60 nir_channel(b, &intr->dest.ssa, 1), in lower_fragcoord_wtrans_impl() 61 nir_channel(b, &intr->dest.ssa, 2), in lower_fragcoord_wtrans_impl() 62 nir_frcp(b, nir_channel(b, &intr->dest.ssa, 3))); in lower_fragcoord_wtrans_impl()
|
D | nir_lower_viewport_transform.c | 74 nir_ssa_def *w_recip = nir_frcp(&b, nir_channel(&b, input_point, 3)); in nir_lower_viewport_transform() 90 nir_channel(&b, screen, 0), in nir_lower_viewport_transform() 91 nir_channel(&b, screen, 1), in nir_lower_viewport_transform() 92 nir_channel(&b, screen, 2), in nir_lower_viewport_transform()
|
D | nir_lower_interpolation.c | 122 val = nir_ffma(b, nir_channel(b, bary, 1), in nir_lower_interpolation_block() 123 nir_channel(b, iid, 1), in nir_lower_interpolation_block() 124 nir_channel(b, iid, 0)); in nir_lower_interpolation_block() 125 val = nir_ffma(b, nir_channel(b, bary, 0), in nir_lower_interpolation_block() 126 nir_channel(b, iid, 2), in nir_lower_interpolation_block()
|
D | nir_convert_ycbcr.c | 122 chroma_range(b, nir_channel(b, raw_channels, 0), bpcs[0], range), in nir_convert_ycbcr_to_rgb() 123 y_range(b, nir_channel(b, raw_channels, 1), bpcs[1], range), in nir_convert_ycbcr_to_rgb() 124 chroma_range(b, nir_channel(b, raw_channels, 2), bpcs[2], range), in nir_convert_ycbcr_to_rgb() 125 nir_channel(b, raw_channels, 3)); in nir_convert_ycbcr_to_rgb() 141 converted_channels[2], nir_channel(b, raw_channels, 3)); in nir_convert_ycbcr_to_rgb()
|
D | nir_lower_pntc_ytransform.c | 71 nir_ssa_def *y = nir_channel(b, pntc, 1); in lower_load_pointcoord() 73 nir_ssa_def *offset = nir_channel(b, transform, 1); in lower_load_pointcoord() 75 nir_ssa_def *scaled = nir_fmul(b, y, nir_channel(b, transform, 0)); in lower_load_pointcoord() 79 nir_channel(b, pntc, 0), in lower_load_pointcoord()
|
/external/mesa3d/src/gallium/auxiliary/nir/ |
D | nir_draw_helpers.c | 92 nir_ssa_def *condition = nir_f2b32(b, nir_channel(b, &tex->dest.ssa, 3)); in nir_lower_pstipple_block() 178 nir_ssa_def *tmp = nir_fsat(b, nir_fadd(b, nir_channel(b, lw, 1), in nir_lower_aaline_block() 179 nir_fneg(b, nir_fabs(b, nir_channel(b, lw, 0))))); in nir_lower_aaline_block() 180 nir_ssa_def *tmp1 = nir_fsat(b, nir_fadd(b, nir_channel(b, lw, 3), in nir_lower_aaline_block() 181 nir_fneg(b, nir_fabs(b, nir_channel(b, lw, 2))))); in nir_lower_aaline_block() 184 tmp = nir_fmul(b, nir_channel(b, out_input, 3), tmp); in nir_lower_aaline_block() 186 nir_ssa_def *out = nir_vec4(b, nir_channel(b, out_input, 0), in nir_lower_aaline_block() 187 nir_channel(b, out_input, 1), in nir_lower_aaline_block() 188 nir_channel(b, out_input, 2), in nir_lower_aaline_block() 273 nir_ssa_def *tmp = nir_fmul(b, nir_channel(b, out_input, 3), sel); in nir_lower_aapoint_block() [all …]
|
/external/mesa3d/src/intel/blorp/ |
D | blorp_nir_builder.h | 51 coord = nir_vec3(b, nir_channel(b, xy_pos, 0), in blorp_nir_txf_ms_mcs() 52 nir_channel(b, xy_pos, 1), in blorp_nir_txf_ms_mcs() 82 return nir_ieq_imm(b, nir_iand(b, nir_channel(b, mcs, 0), in blorp_nir_mcs_is_clear_color() 87 return nir_ieq_imm(b, nir_channel(b, mcs, 0), 0xff); in blorp_nir_mcs_is_clear_color() 90 return nir_ieq_imm(b, nir_channel(b, mcs, 0), ~0); in blorp_nir_mcs_is_clear_color() 94 return nir_iand(b, nir_ieq_imm(b, nir_channel(b, mcs, 0), ~0), in blorp_nir_mcs_is_clear_color() 95 nir_ieq_imm(b, nir_channel(b, mcs, 1), ~0)); in blorp_nir_mcs_is_clear_color()
|
D | blorp_blit.c | 86 return nir_vec3(b, nir_channel(b, coord, 0), nir_channel(b, coord, 1), in blorp_blit_get_frag_coords() 89 return nir_vec2(b, nir_channel(b, coord, 0), nir_channel(b, coord, 1)); in blorp_blit_get_frag_coords() 103 nir_ssa_def *offset = nir_vec2(b, nir_channel(b, coord_transform, 1), in blorp_blit_apply_transform() 104 nir_channel(b, coord_transform, 3)); in blorp_blit_apply_transform() 105 nir_ssa_def *mul = nir_vec2(b, nir_channel(b, coord_transform, 0), in blorp_blit_apply_transform() 106 nir_channel(b, coord_transform, 2)); in blorp_blit_apply_transform() 117 nir_ssa_def *dst_x0 = nir_channel(b, discard_rect, 0); in blorp_nir_discard_if_outside_rect() 118 nir_ssa_def *dst_x1 = nir_channel(b, discard_rect, 1); in blorp_nir_discard_if_outside_rect() 119 nir_ssa_def *dst_y0 = nir_channel(b, discard_rect, 2); in blorp_nir_discard_if_outside_rect() 120 nir_ssa_def *dst_y1 = nir_channel(b, discard_rect, 3); in blorp_nir_discard_if_outside_rect() [all …]
|
/external/mesa3d/src/intel/compiler/ |
D | brw_nir_lower_image_load_store.c | 74 in_bounds = nir_iand(b, in_bounds, nir_channel(b, cmp, i)); in image_coord_is_in_bounds() 98 coord = nir_vec3(b, nir_channel(b, coord, 0), in image_address() 100 nir_channel(b, coord, 1)); in image_address() 148 nir_ssa_def *z = nir_channel(b, coord, 2); in image_address() 150 nir_channel(b, tiling, 2)); in image_address() 151 nir_ssa_def *z_y = nir_ushr(b, z, nir_channel(b, tiling, 2)); in image_address() 189 idx_x = nir_ishl(b, nir_channel(b, major, 0), nir_channel(b, tiling, 1)); in image_address() 190 idx_x = nir_iadd(b, idx_x, nir_channel(b, minor, 1)); in image_address() 191 idx_x = nir_ishl(b, idx_x, nir_channel(b, tiling, 0)); in image_address() 192 idx_x = nir_iadd(b, idx_x, nir_channel(b, minor, 0)); in image_address() [all …]
|
D | brw_nir_lower_cs_intrinsics.c | 86 size_x = nir_channel(b, size_xyz, 0); in lower_cs_intrinsics_convert_block() 87 size_y = nir_channel(b, size_xyz, 1); in lower_cs_intrinsics_convert_block() 165 nir_ssa_def *size_x = nir_channel(b, size_xyz, 0); in lower_cs_intrinsics_convert_block() 166 nir_ssa_def *size_y = nir_channel(b, size_xyz, 1); in lower_cs_intrinsics_convert_block() 167 nir_ssa_def *size_z = nir_channel(b, size_xyz, 2); in lower_cs_intrinsics_convert_block()
|
/external/mesa3d/src/gallium/drivers/panfrost/nir/ |
D | nir_lower_blend.c | 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() 107 return nir_channel(b, src, chan); in nir_blend_factor_value() 109 return nir_channel(b, src1, chan); in nir_blend_factor_value() 111 return nir_channel(b, dst, chan); in nir_blend_factor_value() 113 return nir_channel(b, src, 3); in nir_blend_factor_value() 115 return nir_channel(b, src1, 3); in nir_blend_factor_value() 117 return nir_channel(b, dst, 3); in nir_blend_factor_value() 119 return nir_channel(b, bconst, chan); in nir_blend_factor_value() 121 return nir_channel(b, bconst, 3); in nir_blend_factor_value() [all …]
|
/external/mesa3d/src/gallium/drivers/r600/sfn/ |
D | sfn_nir_lower_tess_io.cpp | 78 return r600_umad_24(b, nir_channel(b, param_base, 0), in r600_tcs_base_address() 80 nir_channel(b, param_base, 3)); in r600_tcs_base_address() 88 nir_channel(b, base, 0), in emil_lsd_in_addr() 93 addr = r600_umad_24(b, nir_channel(b, base, 1), in emil_lsd_in_addr() 109 nir_ssa_def *addr1 = r600_umad_24(b, nir_channel(b, base, 0), in emil_lsd_out_addr() 111 nir_channel(b, base, 2)); in emil_lsd_out_addr() 112 nir_ssa_def *addr2 = r600_umad_24(b, nir_channel(b, base, 1), in emil_lsd_out_addr() 236 auto vertices_in = nir_channel(b, load_in_param_base, 2); in r600_lower_tess_io_impl() 264 nir_channel(b, load_out_param_base, 1), in r600_lower_tess_io_impl() 419 auto v0 = nir_vec4(b, out_addr0, nir_channel(b, &tf_outer->dest.ssa, chanx), in r600_append_tcs_TF_emission() [all …]
|
/external/mesa3d/src/compiler/nir/tests/ |
D | comparison_pre_tests.cpp | 96 nir_ssa_def *a = nir_channel(&bld, nir_fadd(&bld, v1, v3), 0); in TEST_F() 148 nir_ssa_def *b = nir_channel(&bld, nir_fadd(&bld, v1, v3), 0); in TEST_F() 201 nir_ssa_def *a = nir_channel(&bld, nir_fadd(&bld, v1, v3), 0); in TEST_F() 253 nir_ssa_def *b = nir_channel(&bld, nir_fadd(&bld, v1, v3), 0); in TEST_F() 306 nir_ssa_def *a = nir_channel(&bld, nir_fadd(&bld, v1, v3), 0); in TEST_F() 359 nir_ssa_def *a = nir_channel(&bld, nir_fadd(&bld, v1, v3), 0); in TEST_F() 413 nir_ssa_def *a = nir_channel(&bld, nir_fadd(&bld, v1, v3), 0); in TEST_F() 466 nir_ssa_def *a = nir_channel(&bld, nir_fadd(&bld, v1, v3), 0); in TEST_F()
|
/external/mesa3d/src/panfrost/midgard/ |
D | midgard_errata_lod.c | 62 nir_ssa_def *min_lod = nir_channel(b, params, 0); in nir_lod_errata_instr() 63 nir_ssa_def *max_lod = nir_channel(b, params, 1); in nir_lod_errata_instr() 64 nir_ssa_def *lod_bias = nir_channel(b, params, 2); in nir_lod_errata_instr()
|
/external/mesa3d/src/broadcom/compiler/ |
D | v3d_nir_lower_txf_ms.c | 51 nir_ishl(b, nir_channel(b, coord, 0), one), in v3d_nir_lower_txf_ms_instr() 54 nir_ishl(b, nir_channel(b, coord, 1), one), in v3d_nir_lower_txf_ms_instr() 57 coord = nir_vec3(b, x, y, nir_channel(b, coord, 2)); in v3d_nir_lower_txf_ms_instr()
|
/external/mesa3d/src/intel/vulkan/ |
D | anv_nir_apply_pipeline_layout.c | 462 new_index = nir_vec4(b, nir_channel(b, old_index, 0), in lower_res_reindex_intrinsic() 463 nir_iadd(b, nir_channel(b, old_index, 1), in lower_res_reindex_intrinsic() 465 nir_channel(b, old_index, 2), in lower_res_reindex_intrinsic() 482 new_index = nir_vec2(b, nir_iadd(b, nir_channel(b, old_index, 0), offset), in lower_res_reindex_intrinsic() 483 nir_channel(b, old_index, 1)); in lower_res_reindex_intrinsic() 506 desc_offset = nir_channel(b, index, 0); in build_ssbo_descriptor_load() 507 array_index = nir_umin(b, nir_channel(b, index, 1), in build_ssbo_descriptor_load() 508 nir_channel(b, index, 2)); in build_ssbo_descriptor_load() 604 desc_offset = nir_channel(b, index, 0); in lower_load_vulkan_descriptor() 605 array_index = nir_umin(b, nir_channel(b, index, 1), in lower_load_vulkan_descriptor() [all …]
|