Home
last modified time | relevance | path

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

/third_party/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 …]
/third_party/mesa3d/src/gallium/drivers/r600/
Devergreen_state.c737 struct legacy_surf_level *surflevel; in evergreen_fill_tex_resource_words() local
744 surflevel = tmp->surface.u.legacy.level; in evergreen_fill_tex_resource_words()
764 surflevel = tmp->surface.u.legacy.zs.stencil_level; in evergreen_fill_tex_resource_words()
799 pitch = surflevel[base_level].nblk_x * util_format_get_blockwidth(params->pipe_format); in evergreen_fill_tex_resource_words()
802 switch (surflevel[base_level].mode) { in evergreen_fill_tex_resource_words()
855 tex_resource_words[2] = ((uint64_t)surflevel[base_level].offset_256B * 256 + va) >> 8; in evergreen_fill_tex_resource_words()
869 tex_resource_words[3] = ((uint64_t)surflevel[1].offset_256B * 256 + va) >> 8; in evergreen_fill_tex_resource_words()
871 tex_resource_words[3] = ((uint64_t)surflevel[base_level].offset_256B * 256 + va) >> 8; in evergreen_fill_tex_resource_words()
/third_party/mesa3d/src/gallium/drivers/radeonsi/
Dsi_state.c4532 const struct legacy_surf_level *surflevel; in si_create_sampler_view() local
4592 surflevel = tex->surface.u.legacy.level; in si_create_sampler_view()
4613 surflevel = tex->surface.u.legacy.zs.stencil_level; in si_create_sampler_view()
4628 view->base_level_info = &surflevel[0]; in si_create_sampler_view()