Lines Matching defs:alignment
50 #define ALIGN(value, alignment) (((value) + alignment - 1) & ~(alignment - 1))
273 /* compute alignment */
277 /* the 32 alignment is for scanout, cb or db but to allow texture to be
278 * easily bound as such we force this alignment to all surface
291 /* level0 and first mipmap need to have alignment */
307 /* compute alignment */
319 /* level0 and first mipmap need to have alignment */
335 /* compute alignment */
352 /* level0 and first mipmap need to have alignment */
368 /* compute alignment */
395 /* level0 and first mipmap need to have alignment */
620 /* compute alignment */
631 unsigned alignment = MAX2(256, surf_man->hw_info.group_bytes);
632 surf->bo_alignment = MAX2(surf->bo_alignment, alignment);
635 offset = ALIGN(offset, alignment);
643 /* level0 and first mipmap need to have alignment */
681 unsigned alignment = MAX2(256, mtileb);
682 surf->bo_alignment = MAX2(surf->bo_alignment, alignment);
685 offset = ALIGN(offset, alignment);
696 /* level0 and first mipmap need to have alignment */
978 /* bankw or bankh greater than 1 increase alignment requirement, not
995 /* use bankw of 1 to minimize width alignment, might be interesting to
1451 /* Non-mipmap pitch padded to slice alignment */
1525 /* compute alignment */
1538 /* level0 and first mipmap need to have alignment */
1557 unsigned alignment = MAX2(256, surf_man->hw_info.group_bytes);
1560 /* compute alignment */
1570 surf->bo_alignment = MAX2(surf->bo_alignment, alignment);
1573 offset = ALIGN(offset, alignment);
1581 /* level0 and first mipmap need to have alignment */
1584 offset = ALIGN(offset, alignment);
1651 unsigned alignment = MAX2(256, mtileb);
1652 surf->bo_alignment = MAX2(surf->bo_alignment, alignment);
1655 aligned_offset = ALIGN(aligned_offset, alignment);
1683 /* level0 and first mipmap need to have alignment */
2253 unsigned alignment = MAX2(256, mtileb);
2254 surf->bo_alignment = MAX2(surf->bo_alignment, alignment);
2257 aligned_offset = ALIGN(aligned_offset, alignment);
2285 /* level0 and first mipmap need to have alignment */