Searched refs:ALIGN_POT (Results 1 - 25 of 53) sorted by relevance

123

/xsrc/external/mit/MesaLib/dist/src/panfrost/lib/
H A Dpan_scratch.c84 util_next_power_of_two(ALIGN_POT(thread_size, 16));
H A Dpan_afbc.c142 unsigned aligned_width = ALIGN_POT(width, AFBC_TILE_WIDTH);
143 unsigned aligned_height = ALIGN_POT(height, AFBC_TILE_HEIGHT);
154 return ALIGN_POT(header_bytes, AFBC_CACHE_ALIGN);
H A Dpan_tiler.c233 unsigned aligned_width = ALIGN_POT(width, tile_width);
234 unsigned aligned_height = ALIGN_POT(height, tile_height);
275 return ALIGN_POT(size, 0x200);
H A Dpan_texture.c205 effective_width = ALIGN_POT(effective_width, tile_w) >> tile_shift;
206 effective_height = ALIGN_POT(effective_height, tile_h);
214 offset = ALIGN_POT(offset, 64);
229 stride = ALIGN_POT(stride, 64);
297 layout->array_stride = ALIGN_POT(offset, 64);
301 layout->data_size = ALIGN_POT(layout->array_stride * array_size, 4096);
/xsrc/external/mit/MesaLib/src/gallium/auxiliary/
H A Du_tracepoints.c45 ALIGN_POT(sizeof(struct trace_surface), 8), /* keep size 64b aligned */
76 ALIGN_POT(sizeof(struct trace_framebuffer), 8), /* keep size 64b aligned */
110 ALIGN_POT(sizeof(struct trace_grid_info), 8), /* keep size 64b aligned */
/xsrc/external/mit/MesaLib.old/dist/src/util/
H A Dbuild_id.c92 ALIGN_POT(note->nhdr.n_namesz, 4) +
93 ALIGN_POT(note->nhdr.n_descsz, 4);
H A Dmacros.h287 #define ALIGN_POT(x, pot_align) (((x) + (pot_align) - 1) & ~((pot_align) - 1)) macro
H A Dslab.c110 parent->element_size = ALIGN_POT(sizeof(struct slab_element_header) + item_size,
/xsrc/external/mit/MesaLib/dist/src/util/
H A Dbuild_id.c92 ALIGN_POT(note->nhdr.n_namesz, 4) +
93 ALIGN_POT(note->nhdr.n_descsz, 4);
H A Dmacros.h374 #define ALIGN_POT(x, pot_align) (((x) + (pot_align) - 1) & ~((pot_align) - 1)) macro
H A Dslab.c110 parent->element_size = ALIGN_POT(sizeof(struct slab_element_header) + item_size,
/xsrc/external/mit/MesaLib/dist/src/asahi/lib/
H A Dpool.c89 unsigned offset = ALIGN_POT(pool->transient_offset, alignment);
94 ALIGN_POT(MAX2(POOL_SLAB_SIZE, sz), 4096));
/xsrc/external/mit/MesaLib/dist/src/gallium/drivers/panfrost/
H A Dpan_mempool.c125 unsigned offset = ALIGN_POT(pool->transient_offset, alignment);
130 ALIGN_POT(MAX2(pool->base.slab_size, sz), 4096));
H A Dpan_resource.c278 scanout_templat.width0 = ALIGN_POT(template->width0, 16);
279 scanout_templat.height0 = ALIGN_POT(template->height0, 16);
298 unsigned pitch = ALIGN_POT(template->width0, 16) *
304 scanout_templat.width0 = ALIGN_POT(template->width0, 16);
305 scanout_templat.height0 = ALIGN_POT(template->height0, 16) + header_rows;
555 ALIGN_POT(DIV_ROUND_UP(res->width0, 32 * 8), 64);
/xsrc/external/mit/MesaLib/dist/src/panfrost/vulkan/
H A Dpanvk_mempool.c81 unsigned offset = ALIGN_POT(pool->transient_offset, alignment);
86 ALIGN_POT(MAX2(pool->base.slab_size, sz),
/xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/freedreno/a6xx/
H A Dfd6_resource.c244 ALIGN_POT(DIV_ROUND_UP(width, block_width), RBG_TILE_WIDTH_ALIGNMENT);
246 ALIGN_POT(DIV_ROUND_UP(height, block_height), RGB_TILE_HEIGHT_ALIGNMENT);
248 ALIGN_POT(meta_stride * meta_height, UBWC_PLANE_SIZE_ALIGNMENT);
/xsrc/external/mit/MesaLib/dist/src/gallium/drivers/asahi/
H A Dagx_pipe.c204 width = ALIGN_POT(width, 64);
205 height = ALIGN_POT(height, 64);
212 offset += ALIGN_POT(nresource->slices[l].line_stride * height, 0x80);
216 nresource->array_stride = ALIGN_POT(offset, 64);
217 unsigned size = ALIGN_POT(nresource->array_stride * templ->array_size, 4096);
229 width0 = ALIGN_POT(width0, 64);
230 height0 = ALIGN_POT(height0, 64);
245 offset = nresource->slices[0].line_stride * ALIGN_POT(templ->height0, 64);
H A Dagx_blit.c79 offset += ALIGN_POT(binary.size, 128);
/xsrc/external/mit/MesaLib.old/dist/src/compiler/nir/
H A Dnir_lower_scratch.c152 var->data.location = ALIGN_POT(shader->scratch_size, var_align);
H A Dnir_deref.c145 return ALIGN_POT(elem_size, elem_align);
158 offset = ALIGN_POT(offset, elem_align);
/xsrc/external/mit/MesaLib.old/dist/src/compiler/
H A Dnir_types.cpp625 *size = type->length * ALIGN_POT(elem_size, elem_align);
637 *size = ALIGN_POT(*size, elem_align) + elem_size;
/xsrc/external/mit/MesaLib/dist/src/compiler/nir/
H A Dnir_lower_scratch.c213 var->data.location = ALIGN_POT(shader->scratch_size, var_align);
/xsrc/external/mit/MesaLib/dist/src/panfrost/midgard/
H A Dmir_promote_uniforms.c281 ctx->info->push.count = ALIGN_POT(ctx->info->push.count, 4);
/xsrc/external/mit/MesaLib/dist/src/vulkan/util/
H A Dvk_alloc.h199 size_t offset = ALIGN_POT(ma->size, align);
/xsrc/external/mit/MesaLib/dist/src/compiler/
H A Dnir_types.cpp713 *size = type->length * ALIGN_POT(elem_size, elem_align);
724 *size = ALIGN_POT(*size, elem_align) + elem_size;

Completed in 24 milliseconds

123