Home
last modified time | relevance | path

Searched refs:align_offset (Results 1 – 25 of 32) sorted by relevance

12

/external/mesa3d/src/compiler/nir/
Dnir_lower_ubo_vec4.c102 unsigned align_offset = nir_intrinsic_align_offset(intr); in nir_lower_ubo_vec4_lower() local
111 align_offset &= 15; in nir_lower_ubo_vec4_lower()
112 assert(align_offset % chan_size_bytes == 0); in nir_lower_ubo_vec4_lower()
116 align_offset + chan_size_bytes * num_components <= 16); in nir_lower_ubo_vec4_lower()
127 int align_chan_offset = align_offset / chan_size_bytes; in nir_lower_ubo_vec4_lower()
144 align_offset + chan_size_bytes * intr->num_components <= 16) { in nir_lower_ubo_vec4_lower()
Dnir_lower_io.c1200 uint32_t align_mul, uint32_t align_offset, in build_explicit_io_load() argument
1210 align_mul, align_offset, in build_explicit_io_load()
1218 align_mul, align_offset, in build_explicit_io_load()
1224 align_mul, align_offset, in build_explicit_io_load()
1235 align_mul, align_offset, in build_explicit_io_load()
1242 align_mul, align_offset, in build_explicit_io_load()
1361 nir_intrinsic_set_align(load, align_mul, align_offset); in build_explicit_io_load()
1419 uint32_t align_mul, uint32_t align_offset, in build_explicit_io_store() argument
1428 align_mul, align_offset, in build_explicit_io_store()
1435 align_mul, align_offset, in build_explicit_io_store()
[all …]
Dnir_opt_load_store_vectorize.c177 uint32_t align_offset; member
553 entry->align_offset = entry->offset % entry->align_mul; in calc_alignment()
556 entry->align_offset = nir_intrinsic_align_offset(entry->intrin); in calc_alignment()
652 low->align_offset, in new_bitsize_acceptable()
795 first->align_offset = low->align_offset; in vectorize_loads()
881 second->align_offset = low->align_offset; in vectorize_stores()
1094 entry->align_offset != nir_intrinsic_align_offset(entry->intrin))) { in update_align()
1095 nir_intrinsic_set_align(entry->intrin, entry->align_mul, entry->align_offset); in update_align()
Dnir.h1491 unsigned align_offset; member
2082 INTRINSIC_IDX_ACCESSORS(align_offset, ALIGN_OFFSET, unsigned) in INTRINSIC_IDX_ACCESSORS()
2097 unsigned align_mul, unsigned align_offset) in INTRINSIC_IDX_ACCESSORS()
2100 assert(align_offset < align_mul); in INTRINSIC_IDX_ACCESSORS()
2102 nir_intrinsic_set_align_offset(intrin, align_offset); in INTRINSIC_IDX_ACCESSORS()
2116 const unsigned align_offset = nir_intrinsic_align_offset(intrin); in nir_intrinsic_align() local
2117 assert(align_offset < align_mul); in nir_intrinsic_align()
2118 return align_offset ? 1 << (ffs(align_offset) - 1) : align_mul; in nir_intrinsic_align()
4570 uint32_t *align_offset);
5126 unsigned align_offset,
Dnir_instr_set.c176 hash = HASH(hash, instr->cast.align_offset); in hash_deref()
630 deref1->cast.align_offset != deref2->cast.align_offset) in nir_instrs_equal()
Dnir_clone.c343 nderef->cast.align_offset = deref->cast.align_offset; in clone_deref_instr()
Dnir_deref.c905 if (parent_offset % cast->cast.align_mul != cast->cast.align_offset) in opt_remove_restricting_cast_alignments()
912 cast->cast.align_offset = 0; in opt_remove_restricting_cast_alignments()
Dnir_builder.h1237 uint32_t align_mul, uint32_t align_offset) in nir_alignment_deref_cast() argument
1247 deref->cast.align_offset = align_offset; in nir_alignment_deref_cast()
/external/mesa3d/src/gallium/drivers/r600/sfn/
Dsfn_instruction_export.cpp104 int align, int align_offset, int writemask): in WriteScratchInstruction() argument
108 m_align_offset(align_offset), in WriteScratchInstruction()
115 … int align, int align_offset, int writemask, int array_size): in WriteScratchInstruction() argument
120 m_align_offset(align_offset), in WriteScratchInstruction()
Dsfn_instruction_export.h80 int align_offset, int writemask);
82 int align, int align_offset, int writemask, int array_size);
Dsfn_shader_base.cpp752 int align_offset = nir_intrinsic_align_offset(instr); in emit_store_scratch() local
757 ir = new WriteScratchInstruction(lv.value(), value, align, align_offset, writemask); in emit_store_scratch()
760 ir = new WriteScratchInstruction(address, value, align, align_offset, in emit_store_scratch()
/external/mesa3d/src/gallium/drivers/virgl/
Dvirgl_resource.c274 unsigned align_offset; in virgl_staging_map() local
297 align_offset = vres->u.b.target == PIPE_BUFFER ? in virgl_staging_map()
302 virgl_staging_alloc(&vctx->staging, size + align_offset, in virgl_staging_map()
310 vtransfer->copy_src_offset += align_offset; in virgl_staging_map()
311 map_addr += align_offset; in virgl_staging_map()
327 vctx->queued_staging_res_size += size + align_offset; in virgl_staging_map()
/external/bcc/src/cc/frontends/b/
Dtype_helper.h101 static inline size_t align_offset(size_t offset, FieldType ft) { in align_offset() function
Dparser.cc163 offset = struct_decl->is_packed() ? offset : align_offset(offset, ft); in struct_add()
168 struct_decl->bit_width_ = struct_decl->is_packed() ? offset : align_offset(offset, UINT32_T); in struct_add()
/external/mesa3d/src/intel/compiler/
Dbrw_nir_lower_mem_access_bit_sizes.c168 const unsigned align_offset = nir_intrinsic_align_offset(intrin); in lower_mem_store_bit_size() local
208 (align_mul >= 4 && (align_offset + start) % 4 == 0) || in lower_mem_store_bit_size()
Dbrw_nir.c923 brw_nir_should_vectorize_mem(unsigned align_mul, unsigned align_offset, in brw_nir_should_vectorize_mem() argument
944 if (align_offset) in brw_nir_should_vectorize_mem()
945 align = 1 << (ffs(align_offset) - 1); in brw_nir_should_vectorize_mem()
/external/mesa3d/src/broadcom/vulkan/
Dv3dv_image.c216 uint32_t align_offset = in v3d_setup_slices() local
218 if (align_offset) { in v3d_setup_slices()
219 image->size += align_offset; in v3d_setup_slices()
221 image->slices[i].offset += align_offset; in v3d_setup_slices()
/external/mesa3d/src/freedreno/ir3/
Dir3_nir.c149 ir3_nir_should_vectorize_mem(unsigned align_mul, unsigned align_offset, in ir3_nir_should_vectorize_mem() argument
165 align_offset &= 15; in ir3_nir_should_vectorize_mem()
171 unsigned worst_start_offset = 16 - align_mul + align_offset; in ir3_nir_should_vectorize_mem()
/external/skia/modules/skottie/src/text/
DTextAdapter.cpp339 const auto align_offset = total_tracking * align_factor(fText->fHAlign); in adjustLineTracking() local
350 fragment_offset = align_offset + tracking_acc + track_before; in adjustLineTracking()
/external/e2fsprogs/misc/
De2image.c82 static blk64_t align_offset(blk64_t offset, unsigned int n) in align_offset() function
915 offset = align_offset(header_size, image->cluster_size); in initialize_qcow2_image()
927 offset += align_offset(l1_size * sizeof(blk64_t), image->cluster_size); in initialize_qcow2_image()
1171 header_size = align_offset(sizeof(struct ext2_qcow2_hdr), in output_qcow2_meta_data_blocks()
/external/mesa3d/src/compiler/glsl/
Dgl_nir_lower_buffers.c220 cast->cast.align_offset = offset % NIR_ALIGN_MUL_MAX; in lower_buffer_interface_derefs_impl()
/external/python/cpython2/Modules/_ctypes/libffi/src/
Ddlmalloc.c1279 #define align_offset(A)\ macro
1696 #define align_as_chunk(A) (mchunkptr)((A) + align_offset(chunk2mem(A)))
2193 (align_offset(chunk2mem(0))+pad_request(sizeof(struct malloc_segment))+MIN_CHUNK_SIZE)
3225 size_t offset = align_offset(chunk2mem(mm)); in mmap_alloc()
3286 size_t offset = align_offset(chunk2mem(p)); in init_top()
3378 size_t offset = align_offset(chunk2mem(rawsp)); in add_segment()
/external/libffi/src/
Ddlmalloc.c1274 #define align_offset(A)\ macro
1691 #define align_as_chunk(A) (mchunkptr)((A) + align_offset(chunk2mem(A)))
2188 (align_offset(chunk2mem(0))+pad_request(sizeof(struct malloc_segment))+MIN_CHUNK_SIZE)
3220 size_t offset = align_offset(chunk2mem(mm)); in mmap_alloc()
3281 size_t offset = align_offset(chunk2mem(p)); in init_top()
3373 size_t offset = align_offset(chunk2mem(rawsp)); in add_segment()
/external/dlmalloc/
Dmalloc.c1621 #define align_offset(A)\ macro
2221 #define align_as_chunk(A) (mchunkptr)((A) + align_offset(chunk2mem(A)))
2731 (align_offset(chunk2mem(0))+pad_request(sizeof(struct malloc_segment))+MIN_CHUNK_SIZE)
3852 size_t offset = align_offset(chunk2mem(mm)); in mmap_alloc()
3914 size_t offset = align_offset(chunk2mem(p)); in init_top()
4005 size_t offset = align_offset(chunk2mem(rawsp)); in add_segment()
/external/mesa3d/src/intel/vulkan/
Danv_nir_apply_pipeline_layout.c568 cast->cast.align_offset = 0; in lower_load_vulkan_descriptor()
574 cast->cast.align_offset = 0; in lower_load_vulkan_descriptor()

12