Home
last modified time | relevance | path

Searched refs:first_layer (Results 1 – 25 of 166) sorted by relevance

1234567

/external/mesa3d/src/panfrost/lib/
Dpan_texture.c140 unsigned *first_layer, unsigned *last_layer) in panfrost_adjust_cube_dimensions() argument
142 *first_face = *first_layer % 6; in panfrost_adjust_cube_dimensions()
144 *first_layer /= 6; in panfrost_adjust_cube_dimensions()
147 assert((*first_layer == *last_layer) || (*first_face == 0 && *last_face == 5)); in panfrost_adjust_cube_dimensions()
155 unsigned first_layer, unsigned last_layer, in panfrost_texture_num_elements() argument
163 &first_layer, &last_layer); in panfrost_texture_num_elements()
167 unsigned layers = 1 + last_layer - first_layer; in panfrost_texture_num_elements()
186 unsigned first_layer, unsigned last_layer, in panfrost_estimate_texture_payload_size() argument
195 first_layer, last_layer, in panfrost_estimate_texture_payload_size()
262 unsigned first_layer, unsigned last_layer, in panfrost_emit_texture_payload() argument
[all …]
Dpan_texture.h66 unsigned first_layer, last_layer; member
94 unsigned first_layer, unsigned last_layer,
107 unsigned first_layer, unsigned last_layer,
124 unsigned first_layer, unsigned last_layer,
/external/mesa3d/src/mesa/drivers/dri/i965/
Dbrw_generate_mipmap.c45 unsigned last_level, first_layer, last_layer; in brw_generate_mipmap() local
101 first_layer = _mesa_tex_target_to_face(target); in brw_generate_mipmap()
102 last_layer = first_layer; in brw_generate_mipmap()
104 first_layer = 0; in brw_generate_mipmap()
131 for (unsigned layer = first_layer; layer <= last_layer; layer++) { in brw_generate_mipmap()
/external/mesa3d/src/mesa/state_tracker/
Dst_gen_mipmap.c61 uint lastLevel, first_layer, last_layer; in st_generate_mipmap() local
122 first_layer = last_layer = _mesa_tex_target_to_face(target); in st_generate_mipmap()
125 first_layer = 0; in st_generate_mipmap()
144 lastLevel, first_layer, last_layer)) { in st_generate_mipmap()
147 first_layer, last_layer, PIPE_TEX_FILTER_LINEAR)) { in st_generate_mipmap()
Dst_cb_blit.c221 blit.src.box.z = srcSurf->u.tex.first_layer; in st_BlitFramebuffer()
239 blit.dst.box.z = dstSurf->u.tex.first_layer; in st_BlitFramebuffer()
277 blit.dst.box.z = dstDepthSurf->u.tex.first_layer; in st_BlitFramebuffer()
282 blit.src.box.z = srcDepthRb->surface->u.tex.first_layer; in st_BlitFramebuffer()
295 blit.dst.box.z = dstDepthSurf->u.tex.first_layer; in st_BlitFramebuffer()
300 blit.src.box.z = srcDepthRb->surface->u.tex.first_layer; in st_BlitFramebuffer()
311 blit.dst.box.z = dstStencilSurf->u.tex.first_layer; in st_BlitFramebuffer()
316 blit.src.box.z = srcStencilRb->surface->u.tex.first_layer; in st_BlitFramebuffer()
Dst_cb_fbo.c502 unsigned first_layer, last_layer; in st_update_renderbuffer_surface() local
504 first_layer = 0; in st_update_renderbuffer_surface()
508 first_layer = in st_update_renderbuffer_surface()
516 first_layer += tex->MinLayer; in st_update_renderbuffer_surface()
520 last_layer = MIN2(first_layer + tex->NumLayers - 1, last_layer); in st_update_renderbuffer_surface()
536 surf->u.tex.first_layer != first_layer || in st_update_renderbuffer_surface()
544 surf_tmpl.u.tex.first_layer = first_layer; in st_update_renderbuffer_surface()
911 strb->surface->u.tex.first_layer, in st_MapRenderbuffer()
Dst_cb_readpixels.c179 templ.u.tex.first_layer = surface->u.tex.first_layer; in try_pbo_readpixels()
180 templ.u.tex.last_layer = templ.u.tex.first_layer; in try_pbo_readpixels()
182 addr.constants.layer_offset = surface->u.tex.first_layer; in try_pbo_readpixels()
309 blit.src.box.z = strb->surface->u.tex.first_layer; in blit_to_staging()
346 st->readpix_cache.layer != strb->surface->u.tex.first_layer) { in try_cached_readpixels()
351 st->readpix_cache.layer = strb->surface->u.tex.first_layer; in try_cached_readpixels()
/external/mesa3d/src/gallium/drivers/swr/
Dswr_clear.cpp51 fb->cbufs[i]->u.tex.first_layer + 1u); in swr_clear()
58 fb->zsbuf->u.tex.first_layer + 1u); in swr_clear()
64 fb->zsbuf->u.tex.first_layer + 1u); in swr_clear()
86 (fb->zsbuf->u.tex.last_layer <= fb->zsbuf->u.tex.first_layer + i)) in swr_clear()
90 if (sf && (sf->u.tex.last_layer <= sf->u.tex.first_layer + i)) in swr_clear()
/external/mesa3d/src/gallium/drivers/radeonsi/
Dsi_blit.c109 unsigned first_layer, unsigned last_layer, unsigned first_sample, in si_blit_dbcb_copy() argument
136 for (layer = first_layer; layer <= checked_last_layer; layer++) { in si_blit_dbcb_copy()
140 surf_tmpl.u.tex.first_layer = layer; in si_blit_dbcb_copy()
164 if (first_layer == 0 && last_layer >= max_layer && first_sample == 0 && in si_blit_dbcb_copy()
181 unsigned level_mask, unsigned first_layer, in si_blit_decompress_zs_planes_in_place() argument
211 for (layer = first_layer; layer <= checked_last_layer; layer++) { in si_blit_decompress_zs_planes_in_place()
212 surf_tmpl.u.tex.first_layer = layer; in si_blit_decompress_zs_planes_in_place()
227 if (first_layer == 0 && last_layer >= max_layer) { in si_blit_decompress_zs_planes_in_place()
248 unsigned first_layer, unsigned last_layer) in si_blit_decompress_zs_in_place() argument
255 first_layer, last_layer); in si_blit_decompress_zs_in_place()
[all …]
/external/mesa3d/src/gallium/drivers/zink/
Dzink_surface.c53 surface->base.u.tex.first_layer = templ->u.tex.first_layer; in zink_create_surface()
108 ivci.subresourceRange.baseArrayLayer = templ->u.tex.first_layer; in zink_create_surface()
109 ivci.subresourceRange.layerCount = 1 + templ->u.tex.last_layer - templ->u.tex.first_layer; in zink_create_surface()
/external/mesa3d/src/gallium/drivers/lima/
Dlima_texture.c73 unsigned first_level, unsigned last_level, unsigned first_layer) in lima_texture_desc_set_res() argument
105 …uint32_t first_va = base_va + lima_res->levels[first_level].offset + first_layer * lima_res->level… in lima_texture_desc_set_res()
128 unsigned first_layer; in lima_update_tex_desc() local
150 first_layer = texture->base.u.tex.first_layer; in lima_update_tex_desc()
238 first_level, last_level, first_layer); in lima_update_tex_desc()
/external/mesa3d/src/gallium/drivers/r600/
Dr600_blit.c115 unsigned first_layer, unsigned last_layer, in r600_blit_decompress_depth() argument
161 for (layer = first_layer; layer <= checked_last_layer; layer++) { in r600_blit_decompress_depth()
172 surf_tmpl.u.tex.first_layer = layer; in r600_blit_decompress_depth()
194 first_layer == 0 && last_layer == max_layer && in r600_blit_decompress_depth()
209 unsigned first_layer, unsigned last_layer) in r600_blit_decompress_depth_in_place() argument
238 for (layer = first_layer; layer <= checked_last_layer; layer++) { in r600_blit_decompress_depth_in_place()
239 surf_tmpl.u.tex.first_layer = layer; in r600_blit_decompress_depth_in_place()
254 if (first_layer == 0 && last_layer == max_layer) { in r600_blit_decompress_depth_in_place()
336 unsigned first_layer, unsigned last_layer) in r600_blit_decompress_color() argument
353 for (layer = first_layer; layer <= checked_last_layer; layer++) { in r600_blit_decompress_color()
[all …]
/external/mesa3d/src/gallium/drivers/panfrost/
Dpan_sfbd.c85 unsigned first_layer = surf->u.tex.first_layer; in panfrost_sfbd_set_cbuf() local
86 assert(surf->u.tex.last_layer == first_layer); in panfrost_sfbd_set_cbuf()
89 mali_ptr base = panfrost_get_texture_address(rsrc, level, first_layer, 0); in panfrost_sfbd_set_cbuf()
116 assert(surf->u.tex.first_layer == 0); in panfrost_sfbd_set_zsbuf()
Dpan_mfbd.c135 unsigned first_layer = surf->u.tex.first_layer; in panfrost_mfbd_rt_set_buf() local
136 assert(surf->u.tex.last_layer == first_layer); in panfrost_mfbd_rt_set_buf()
143 mali_ptr base = panfrost_get_texture_address(rsrc, level, first_layer, 0); in panfrost_mfbd_rt_set_buf()
284 unsigned first_layer = zs_surf->u.tex.first_layer; in panfrost_mfbd_zs_crc_ext_set_bufs() local
285 assert(zs_surf->u.tex.last_layer == first_layer); in panfrost_mfbd_zs_crc_ext_set_bufs()
287 mali_ptr base = panfrost_get_texture_address(rsrc, level, first_layer, 0); in panfrost_mfbd_zs_crc_ext_set_bufs()
354 … ext->s_writeback_base = panfrost_get_texture_address(stencil, level, first_layer, 0); in panfrost_mfbd_zs_crc_ext_set_bufs()
/external/mesa3d/src/gallium/drivers/svga/
Dsvga_pipe_clear.c279 tmpl.u.tex.first_layer = box->z; in svga_clear_texture()
410 unsigned first_layer = rtv->u.tex.first_layer; in svga_clear_texture() local
412 unsigned box_depth = last_layer - first_layer + 1; in svga_clear_texture()
415 rtv->u.tex.first_layer = rtv->u.tex.last_layer = in svga_clear_texture()
416 first_layer + i; in svga_clear_texture()
421 rtv->u.tex.first_layer = first_layer; in svga_clear_texture()
Dsvga_surface.c307 layer = surf_tmpl->u.tex.first_layer; in svga_create_surface_view()
313 layer = surf_tmpl->u.tex.first_layer; in svga_create_surface_view()
315 nlayers = surf_tmpl->u.tex.last_layer - surf_tmpl->u.tex.first_layer + 1; in svga_create_surface_view()
319 zslice = surf_tmpl->u.tex.first_layer; in svga_create_surface_view()
329 s->base.u.tex.first_layer = surf_tmpl->u.tex.first_layer; in svga_create_surface_view()
505 layer = s->base.u.tex.first_layer; in create_backed_surface_view()
510 zslice = s->base.u.tex.first_layer; in create_backed_surface_view()
595 s->base.u.tex.last_layer - s->base.u.tex.first_layer + 1; in svga_validate_surface_view()
713 svga_define_texture_level(tex, surf->u.tex.first_layer, in svga_mark_surface_dirty()
799 layer = surf->u.tex.first_layer; in svga_propagate_surface()
[all …]
/external/mesa3d/src/gallium/auxiliary/util/
Du_gen_mipmap.c61 uint first_layer, uint last_layer, uint filter) in util_gen_mipmap() argument
120 blit.src.box.z = blit.dst.box.z = first_layer; in util_gen_mipmap()
122 (last_layer + 1 - first_layer); in util_gen_mipmap()
/external/mesa3d/src/gallium/drivers/freedreno/a6xx/
Dfd6_texture.c261 layers = cso->u.tex.last_layer - cso->u.tex.first_layer + 1; in fd6_sampler_view_create()
288 fd_resource_ubwc_offset(rsc, lvl, cso->u.tex.first_layer); in fd6_sampler_view_create()
290 fd_resource_ubwc_offset(next, lvl, cso->u.tex.first_layer); in fd6_sampler_view_create()
292 so->offset1 = fd_resource_offset(rsc, lvl, cso->u.tex.first_layer); in fd6_sampler_view_create()
293 so->offset2 = fd_resource_offset(next, lvl, cso->u.tex.first_layer); in fd6_sampler_view_create()
296 so->offset1 = fd_resource_offset(rsc, lvl, cso->u.tex.first_layer); in fd6_sampler_view_create()
299 so->offset2 = fd_resource_ubwc_offset(rsc, lvl, cso->u.tex.first_layer); in fd6_sampler_view_create()
/external/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_surface.c207 assert(surf_tmpl->u.tex.first_layer <= surf_tmpl->u.tex.last_layer); in llvmpipe_create_surface()
211 ps->u.tex.first_layer = surf_tmpl->u.tex.first_layer; in llvmpipe_create_surface()
318 box.z = dst->u.tex.first_layer; in llvmpipe_clear_render_target()
319 box.depth = dst->u.tex.last_layer - dst->u.tex.first_layer + 1; in llvmpipe_clear_render_target()
387 box.z = dst->u.tex.first_layer; in llvmpipe_clear_depth_stencil()
388 box.depth = dst->u.tex.last_layer - dst->u.tex.first_layer + 1; in llvmpipe_clear_depth_stencil()
Dlp_state_sampler.c309 num_layers = view->u.tex.last_layer - view->u.tex.first_layer + 1; in prepare_shader_sampling()
311 mip_offsets[j] += view->u.tex.first_layer * in prepare_shader_sampling()
318 assert(view->u.tex.first_layer <= view->u.tex.last_layer); in prepare_shader_sampling()
453 num_layers = view->u.tex.last_layer - view->u.tex.first_layer + 1; in prepare_shader_images()
454 assert(view->u.tex.first_layer <= view->u.tex.last_layer); in prepare_shader_images()
455 mip_offset += view->u.tex.first_layer * lp_img->img_stride[view->u.tex.level]; in prepare_shader_images()
/external/mesa3d/src/gallium/drivers/freedreno/
Dfreedreno_surface.c63 psurf->u.tex.first_layer = surf_tmpl->u.tex.first_layer; in fd_create_surface()
/external/mesa3d/src/gallium/drivers/i915/
Di915_surface.c292 unsigned offset = i915_texture_offset(tex, dst->u.tex.level, dst->u.tex.first_layer); in i915_clear_render_target_blitter()
322 unsigned offset = i915_texture_offset(tex, dst->u.tex.level, dst->u.tex.first_layer); in i915_clear_depth_stencil_blitter()
362 assert(surf_tmpl->u.tex.first_layer == surf_tmpl->u.tex.last_layer); in i915_create_surface_custom()
365 assert(surf_tmpl->u.tex.first_layer == 0); in i915_create_surface_custom()
376 ps->u.tex.first_layer = surf_tmpl->u.tex.first_layer; in i915_create_surface_custom()
/external/mesa3d/src/gallium/drivers/v3d/
Dv3d_blit.c40 tmpl.u.tex.first_layer = 0;
280 .first_layer = info->dst.box.z, in v3d_stencil_blit()
295 .first_layer = 0, in v3d_stencil_blit()
467 unsigned int first_layer, in v3d_generate_mipmap() argument
476 if (first_layer != last_layer) in v3d_generate_mipmap()
483 first_layer, first_layer); in v3d_generate_mipmap()
/external/mesa3d/src/gallium/drivers/iris/
Diris_clear.c681 box.depth = psurf->u.tex.last_layer - psurf->u.tex.first_layer + 1; in iris_clear()
682 box.z = psurf->u.tex.first_layer, in iris_clear()
694 box.depth = psurf->u.tex.last_layer - psurf->u.tex.first_layer + 1, in iris_clear()
695 box.z = psurf->u.tex.first_layer, in iris_clear()
791 .z = psurf->u.tex.first_layer, in iris_clear_render_target()
794 .depth = psurf->u.tex.last_layer - psurf->u.tex.first_layer + 1 in iris_clear_render_target()
822 .z = psurf->u.tex.first_layer, in iris_clear_depth_stencil()
825 .depth = psurf->u.tex.last_layer - psurf->u.tex.first_layer + 1 in iris_clear_depth_stencil()
Diris_resolve.c139 pview->u.tex.last_layer - pview->u.tex.first_layer + 1; in resolve_image_views()
146 pview->u.tex.first_layer, num_layers, in resolve_image_views()
201 zs_surf->u.tex.last_layer - zs_surf->u.tex.first_layer + 1; in iris_predraw_resolve_framebuffer()
206 zs_surf->u.tex.first_layer, in iris_predraw_resolve_framebuffer()
292 zs_surf->u.tex.last_layer - zs_surf->u.tex.first_layer + 1; in iris_postdraw_update_resolve_tracking()
297 zs_surf->u.tex.first_layer, num_layers, in iris_postdraw_update_resolve_tracking()
305 zs_surf->u.tex.first_layer, num_layers, in iris_postdraw_update_resolve_tracking()
325 desc->tex.last_layer - desc->tex.first_layer + 1; in iris_postdraw_update_resolve_tracking()
327 desc->tex.first_layer, num_layers, in iris_postdraw_update_resolve_tracking()

1234567