Home
last modified time | relevance | path

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

/external/libdrm/radeon/
Dradeon_surface.c168 struct radeon_surface_level *surflevel, in surf_minify() argument
173 surflevel->npix_x = mip_minify(surf->npix_x, level); in surf_minify()
174 surflevel->npix_y = mip_minify(surf->npix_y, level); in surf_minify()
175 surflevel->npix_z = mip_minify(surf->npix_z, level); in surf_minify()
176 surflevel->nblk_x = (surflevel->npix_x + surf->blk_w - 1) / surf->blk_w; in surf_minify()
177 surflevel->nblk_y = (surflevel->npix_y + surf->blk_h - 1) / surf->blk_h; in surf_minify()
178 surflevel->nblk_z = (surflevel->npix_z + surf->blk_d - 1) / surf->blk_d; in surf_minify()
179 if (surf->nsamples == 1 && surflevel->mode == RADEON_SURF_MODE_2D && in surf_minify()
181 if (surflevel->nblk_x < xalign || surflevel->nblk_y < yalign) { in surf_minify()
182 surflevel->mode = RADEON_SURF_MODE_1D; in surf_minify()
[all …]
/external/mesa3d/src/gallium/drivers/r600/
Devergreen_state.c720 struct legacy_surf_level *surflevel; in evergreen_fill_tex_resource_words() local
727 surflevel = tmp->surface.u.legacy.level; in evergreen_fill_tex_resource_words()
747 surflevel = tmp->surface.u.legacy.stencil_level; in evergreen_fill_tex_resource_words()
782 pitch = surflevel[base_level].nblk_x * util_format_get_blockwidth(params->pipe_format); in evergreen_fill_tex_resource_words()
785 switch (surflevel[base_level].mode) { in evergreen_fill_tex_resource_words()
838 tex_resource_words[2] = (surflevel[base_level].offset + va) >> 8; in evergreen_fill_tex_resource_words()
852 tex_resource_words[3] = (surflevel[1].offset + va) >> 8; in evergreen_fill_tex_resource_words()
854 tex_resource_words[3] = (surflevel[base_level].offset + va) >> 8; in evergreen_fill_tex_resource_words()
/external/mesa3d/src/gallium/drivers/radeonsi/
Dsi_state.c3840 const struct legacy_surf_level *surflevel; in si_create_sampler_view_custom() local
3924 surflevel = tmp->surface.u.legacy.level; in si_create_sampler_view_custom()
3945 surflevel = tmp->surface.u.legacy.stencil_level; in si_create_sampler_view_custom()
3969 view->base_level_info = &surflevel[base_level]; in si_create_sampler_view_custom()