Searched refs:size_ratio (Results 1 – 2 of 2) sorted by relevance
/external/mesa3d/src/gallium/auxiliary/gallivm/ |
D | lp_bld_pack.c | 935 unsigned size_ratio = (src_type.width * src_type.length) / in lp_build_resize() local 937 unsigned new_length = src_type.length / size_ratio; in lp_build_resize() 939 for (i = 0; i < size_ratio * num_srcs; i++) { in lp_build_resize() 940 unsigned start_index = (i % size_ratio) * new_length; in lp_build_resize() 941 tmp[i] = lp_build_extract_range(gallivm, src[i / size_ratio], in lp_build_resize() 944 num_srcs *= size_ratio; in lp_build_resize() 954 unsigned size_ratio = (dst_type.width * dst_type.length) / in lp_build_resize() local 956 unsigned num_pack_srcs = num_srcs / size_ratio; in lp_build_resize() 957 dst_type.length = dst_type.length / size_ratio; in lp_build_resize() 959 for (i = 0; i < size_ratio; i++) { in lp_build_resize() [all …]
|
/external/mesa3d/src/intel/compiler/ |
D | brw_fs_nir.cpp | 6026 unsigned size_ratio = type_sz(dst.type) / type_sz(src.type); in shuffle_src_to_dst() local 6029 DIV_ROUND_UP(components, size_ratio), in shuffle_src_to_dst() 6038 subscript(offset(dst, bld, i / size_ratio), in shuffle_src_to_dst() 6039 shuffle_type, i % size_ratio); in shuffle_src_to_dst() 6045 unsigned size_ratio = type_sz(src.type) / type_sz(dst.type); in shuffle_src_to_dst() local 6048 offset(src, bld, first_component / size_ratio), in shuffle_src_to_dst() 6050 DIV_ROUND_UP(components + (first_component % size_ratio), in shuffle_src_to_dst() 6051 size_ratio))); in shuffle_src_to_dst() 6058 subscript(offset(src, bld, (first_component + i) / size_ratio), in shuffle_src_to_dst() 6059 shuffle_type, (first_component + i) % size_ratio); in shuffle_src_to_dst()
|