Home
last modified time | relevance | path

Searched refs:xalign (Results 1 – 2 of 2) sorted by relevance

/external/libdrm/radeon/
Dradeon_surface.c170 uint32_t xalign, uint32_t yalign, uint32_t zalign, in surf_minify() argument
181 if (surflevel->nblk_x < xalign || surflevel->nblk_y < yalign) { in surf_minify()
186 surflevel->nblk_x = ALIGN(surflevel->nblk_x, xalign); in surf_minify()
270 uint32_t xalign, yalign, zalign; in r6_surface_init_linear() local
280 xalign = MAX2(1, surf_man->hw_info.group_bytes / surf->bpe); in r6_surface_init_linear()
284 xalign = MAX2((surf->bpe == 1) ? 64 : 32, xalign); in r6_surface_init_linear()
290 surf_minify(surf, surf->level+i, surf->bpe, i, xalign, yalign, zalign, offset); in r6_surface_init_linear()
304 uint32_t xalign, yalign, zalign; in r6_surface_init_linear_aligned() local
311 xalign = MAX2(64, surf_man->hw_info.group_bytes / surf->bpe); in r6_surface_init_linear_aligned()
318 surf_minify(surf, surf->level+i, surf->bpe, i, xalign, yalign, zalign, offset); in r6_surface_init_linear_aligned()
[all …]
/external/mesa3d/src/gallium/drivers/radeonsi/
Dcik_sdma.c76 unsigned xalign = MAX2(1, 4 / bpp); in si_sdma_v4_copy_texture() local
111 if ((src_address % 4) != 0 || (dst_address % 4) != 0 || (src_pitch % xalign) != 0) in si_sdma_v4_copy_texture()
169 if ((tiled_address % 256 != 0) || (linear_address % 4 != 0) || (linear_pitch % xalign != 0) || in si_sdma_v4_copy_texture()
170 (linear_slice_pitch % xalign != 0)) in si_sdma_v4_copy_texture()
326 unsigned xalign = MAX2(1, 4 / bpp); in cik_sdma_copy_texture() local
333 if (copy_width % xalign != 0 && linear_x + copy_width == linear_width && in cik_sdma_copy_texture()
335 linear_x + align(copy_width, xalign) <= linear_pitch && in cik_sdma_copy_texture()
336 tiled_x + align(copy_width, xalign) <= tiled_pitch) in cik_sdma_copy_texture()
337 copy_width_aligned = align(copy_width, xalign); in cik_sdma_copy_texture()
402 if (tiled_address % 256 == 0 && linear_address % 4 == 0 && linear_pitch % xalign == 0 && in cik_sdma_copy_texture()
[all …]