Home
last modified time | relevance | path

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

/external/libdrm/radeon/
Dradeon_surface.c163 struct radeon_surface_level *surflevel, in surf_minify() argument
168 surflevel->npix_x = mip_minify(surf->npix_x, level); in surf_minify()
169 surflevel->npix_y = mip_minify(surf->npix_y, level); in surf_minify()
170 surflevel->npix_z = mip_minify(surf->npix_z, level); in surf_minify()
171 surflevel->nblk_x = (surflevel->npix_x + surf->blk_w - 1) / surf->blk_w; in surf_minify()
172 surflevel->nblk_y = (surflevel->npix_y + surf->blk_h - 1) / surf->blk_h; in surf_minify()
173 surflevel->nblk_z = (surflevel->npix_z + surf->blk_d - 1) / surf->blk_d; in surf_minify()
174 if (surf->nsamples == 1 && surflevel->mode == RADEON_SURF_MODE_2D && in surf_minify()
176 if (surflevel->nblk_x < xalign || surflevel->nblk_y < yalign) { in surf_minify()
177 surflevel->mode = RADEON_SURF_MODE_1D; in surf_minify()
[all …]