Home
last modified time | relevance | path

Searched refs:last_layer (Results 1 - 25 of 157) sorted by relevance

1234567

/third_party/mesa3d/src/panfrost/lib/
H A Dpan_texture.c126 unsigned *first_layer, unsigned *last_layer) in panfrost_adjust_cube_dimensions()
129 *last_face = *last_layer % 6; in panfrost_adjust_cube_dimensions()
131 *last_layer /= 6; in panfrost_adjust_cube_dimensions()
133 assert((*first_layer == *last_layer) || (*first_face == 0 && *last_face == 5)); in panfrost_adjust_cube_dimensions()
141 unsigned first_layer, unsigned last_layer, in panfrost_texture_num_elements()
148 &first_layer, &last_layer); in panfrost_texture_num_elements()
152 unsigned layers = 1 + last_layer - first_layer; in panfrost_texture_num_elements()
176 iview->first_layer, iview->last_layer, in panfrost_estimate_texture_payload_size()
184 unsigned layer, last_layer; member
192 unsigned first_layer, unsigned last_layer, in panfrost_surface_iter_begin()
124 panfrost_adjust_cube_dimensions( unsigned *first_face, unsigned *last_face, unsigned *first_layer, unsigned *last_layer) panfrost_adjust_cube_dimensions() argument
139 panfrost_texture_num_elements( unsigned first_level, unsigned last_level, unsigned first_layer, unsigned last_layer, unsigned nr_samples, bool is_cube) panfrost_texture_num_elements() argument
191 panfrost_surface_iter_begin(struct panfrost_surface_iter *iter, unsigned first_layer, unsigned last_layer, unsigned first_level, unsigned last_level, unsigned first_face, unsigned last_face, unsigned nr_samples) panfrost_surface_iter_begin() argument
477 unsigned first_layer = iview->first_layer, last_layer = iview->last_layer; panfrost_emit_texture_payload() local
[all...]
H A Dpan_blitter.h79 int32_t last_layer; member
108 if (ctx->dst.last_layer < ctx->dst.layer_offset) { in pan_blit_next_surface()
109 if (ctx->dst.cur_layer <= ctx->dst.last_layer) in pan_blit_next_surface()
114 if (ctx->dst.cur_layer >= ctx->dst.last_layer) in pan_blit_next_surface()
H A Dpan_blitter.c662 key.surfaces[0].array = views->src_z->first_layer != views->src_z->last_layer; in pan_blitter_get_key()
672 key.surfaces[1].array = views->src_s->first_layer != views->src_s->last_layer; in pan_blitter_get_key()
688 key.surfaces[i].array = views->src_rts[i]->first_layer != views->src_rts[i]->last_layer; in pan_blitter_get_key()
1430 .last_layer = info->src.end.layer, in pan_blit_ctx_init()
1446 .last_layer = info->dst.start.layer, in pan_blit_ctx_init()
1467 ctx->dst.last_layer = info->dst.end.z; in pan_blit_ctx_init()
1470 ctx->dst.last_layer = info->dst.end.z - 1; in pan_blit_ctx_init()
1473 ctx->dst.last_layer = MIN2(MAX2(ctx->dst.last_layer, 0), max_z); in pan_blit_ctx_init()
1479 ctx->dst.last_layer in pan_blit_ctx_init()
[all...]
/third_party/mesa3d/src/mesa/state_tracker/
H A Dst_gen_mipmap.c56 uint lastLevel, first_layer, last_layer; in st_generate_mipmap() local
117 first_layer = last_layer = _mesa_tex_target_to_face(target); in st_generate_mipmap()
121 last_layer = util_max_layer(pt, baseLevel); in st_generate_mipmap()
139 lastLevel, first_layer, last_layer)) { in st_generate_mipmap()
142 first_layer, last_layer, PIPE_TEX_FILTER_LINEAR)) { in st_generate_mipmap()
H A Dst_atom_image.c119 img->u.tex.last_layer = u_minify(stObj->pt->depth0, img->u.tex.level) - 1; in st_convert_image()
122 img->u.tex.last_layer = u->_Layer; in st_convert_image()
126 img->u.tex.last_layer = u->_Layer + stObj->Attrib.MinLayer; in st_convert_image()
129 img->u.tex.last_layer += stObj->Attrib.NumLayers - 1; in st_convert_image()
131 img->u.tex.last_layer += img->resource->array_size - 1; in st_convert_image()
H A Dst_sampler_view.c497 last_layer(const struct gl_texture_object *texObj) in last_layer() function
607 templ.u.tex.first_layer = templ.u.tex.last_layer = texObj->layer_override; in st_create_texture_sampler_view_from_stobj()
610 templ.u.tex.last_layer = last_layer(texObj); in st_create_texture_sampler_view_from_stobj()
612 assert(templ.u.tex.first_layer <= templ.u.tex.last_layer); in st_create_texture_sampler_view_from_stobj()
658 assert(texObj->layer_override >= 0 || last_layer(texObj) == view->u.tex.last_layer); in st_get_texture_sampler_view_from_stobj()
661 texObj->layer_override == view->u.tex.last_layer)); in st_get_texture_sampler_view_from_stobj()
/third_party/mesa3d/src/mesa/main/
H A Drenderbuffer.c548 surf_tmpl.u.tex.last_layer = surf->u.tex.last_layer; in _mesa_regen_renderbuffer_surface()
609 unsigned first_layer, last_layer; in _mesa_update_renderbuffer_surface() local
612 last_layer = util_max_layer(rb->texture, level); in _mesa_update_renderbuffer_surface()
616 last_layer = rb->rtt_face + rb->rtt_slice; in _mesa_update_renderbuffer_surface()
625 last_layer += tex->Attrib.MinLayer; in _mesa_update_renderbuffer_surface()
627 last_layer = MIN2(first_layer + tex->Attrib.NumLayers - 1, in _mesa_update_renderbuffer_surface()
628 last_layer); in _mesa_update_renderbuffer_surface()
645 surf->u.tex.last_layer != last_layer) { in _mesa_update_renderbuffer_surface()
[all...]
/third_party/mesa3d/src/gallium/drivers/r600/
H A Dr600_blit.c117 unsigned first_layer, unsigned last_layer, in r600_blit_decompress_depth()
161 checked_last_layer = last_layer < max_layer ? last_layer : max_layer; in r600_blit_decompress_depth()
175 surf_tmpl.u.tex.last_layer = layer; in r600_blit_decompress_depth()
196 first_layer == 0 && last_layer == max_layer && in r600_blit_decompress_depth()
211 unsigned first_layer, unsigned last_layer) in r600_blit_decompress_depth_in_place()
238 checked_last_layer = last_layer < max_layer ? last_layer : max_layer; in r600_blit_decompress_depth_in_place()
242 surf_tmpl.u.tex.last_layer = layer; in r600_blit_decompress_depth_in_place()
256 if (first_layer == 0 && last_layer in r600_blit_decompress_depth_in_place()
113 r600_blit_decompress_depth(struct pipe_context *ctx, struct r600_texture *texture, struct r600_texture *staging, unsigned first_level, unsigned last_level, unsigned first_layer, unsigned last_layer, unsigned first_sample, unsigned last_sample) r600_blit_decompress_depth() argument
207 r600_blit_decompress_depth_in_place(struct r600_context *rctx, struct r600_texture *texture, bool is_stencil_sampler, unsigned first_level, unsigned last_level, unsigned first_layer, unsigned last_layer) r600_blit_decompress_depth_in_place() argument
335 r600_blit_decompress_color(struct pipe_context *ctx, struct r600_texture *rtex, unsigned first_level, unsigned last_level, unsigned first_layer, unsigned last_layer) r600_blit_decompress_color() argument
433 r600_decompress_subresource(struct pipe_context *ctx, struct pipe_resource *tex, unsigned level, unsigned first_layer, unsigned last_layer) r600_decompress_subresource() argument
[all...]
/third_party/mesa3d/src/gallium/drivers/radeonsi/
H A Dsi_blit.c129 unsigned first_layer, unsigned last_layer, unsigned first_sample, in si_blit_dbcb_copy()
152 checked_last_layer = MIN2(last_layer, max_layer); in si_blit_dbcb_copy()
161 surf_tmpl.u.tex.last_layer = layer; in si_blit_dbcb_copy()
184 if (first_layer == 0 && last_layer >= max_layer && first_sample == 0 && in si_blit_dbcb_copy()
202 unsigned last_layer) in si_blit_decompress_zs_planes_in_place()
229 checked_last_layer = MIN2(last_layer, max_layer); in si_blit_decompress_zs_planes_in_place()
233 surf_tmpl.u.tex.last_layer = layer; in si_blit_decompress_zs_planes_in_place()
247 if (first_layer == 0 && last_layer >= max_layer) { in si_blit_decompress_zs_planes_in_place()
268 unsigned first_layer, unsigned last_layer) in si_blit_decompress_zs_in_place()
275 first_layer, last_layer); in si_blit_decompress_zs_in_place()
127 si_blit_dbcb_copy(struct si_context *sctx, struct si_texture *src, struct si_texture *dst, unsigned planes, unsigned level_mask, unsigned first_layer, unsigned last_layer, unsigned first_sample, unsigned last_sample) si_blit_dbcb_copy() argument
199 si_blit_decompress_zs_planes_in_place(struct si_context *sctx, struct si_texture *texture, unsigned planes, unsigned level_mask, unsigned first_layer, unsigned last_layer) si_blit_decompress_zs_planes_in_place() argument
266 si_blit_decompress_zs_in_place(struct si_context *sctx, struct si_texture *texture, unsigned levels_z, unsigned levels_s, unsigned first_layer, unsigned last_layer) si_blit_decompress_zs_in_place() argument
292 si_decompress_depth(struct si_context *sctx, struct si_texture *tex, unsigned required_planes, unsigned first_level, unsigned last_level, unsigned first_layer, unsigned last_layer) si_decompress_depth() argument
443 si_blit_decompress_color(struct si_context *sctx, struct si_texture *tex, unsigned first_level, unsigned last_level, unsigned first_layer, unsigned last_layer, bool need_dcc_decompress, bool need_fmask_expand) si_blit_decompress_color() argument
609 si_check_render_feedback_texture(struct si_context *sctx, struct si_texture *tex, unsigned first_level, unsigned last_level, unsigned first_layer, unsigned last_layer) si_check_render_feedback_texture() argument
845 si_decompress_subresource(struct pipe_context *ctx, struct pipe_resource *tex, unsigned planes, unsigned level, unsigned first_layer, unsigned last_layer, bool need_fmask_expand) si_decompress_subresource() argument
1249 si_generate_mipmap(struct pipe_context *ctx, struct pipe_resource *tex, enum pipe_format format, unsigned base_level, unsigned last_level, unsigned first_layer, unsigned last_layer) si_generate_mipmap() argument
[all...]
H A Dsi_compute_blit.c589 images[i].u.tex.last_layer, in si_launch_grid_internal_images()
728 image[0].u.tex.last_layer = util_max_layer(src, src_level); in si_compute_copy_image()
734 image[1].u.tex.last_layer = util_max_layer(dst, dst_level); in si_compute_copy_image()
903 image.u.tex.last_layer = tex->array_size - 1; in si_compute_expand_fmask()
960 unsigned num_layers = dstsurf->u.tex.last_layer - dstsurf->u.tex.first_layer + 1; in si_compute_clear_render_target()
990 image.u.tex.last_layer = dstsurf->u.tex.last_layer; in si_compute_clear_render_target()
/third_party/mesa3d/src/gallium/drivers/d3d12/
H A Dd3d12_surface.cpp110 desc.Texture1DArray.ArraySize = tpl->u.tex.last_layer - tpl->u.tex.first_layer + 1; in initialize_dsv()
130 desc.Texture2DMSArray.ArraySize = tpl->u.tex.last_layer - tpl->u.tex.first_layer + 1; in initialize_dsv()
136 desc.Texture2DArray.ArraySize = tpl->u.tex.last_layer - tpl->u.tex.first_layer + 1; in initialize_dsv()
182 desc.Texture1DArray.ArraySize = tpl->u.tex.last_layer - tpl->u.tex.first_layer + 1; in initialize_rtv()
202 desc.Texture2DMSArray.ArraySize = tpl->u.tex.last_layer - tpl->u.tex.first_layer + 1; in initialize_rtv()
208 desc.Texture2DArray.ArraySize = tpl->u.tex.last_layer - tpl->u.tex.first_layer + 1; in initialize_rtv()
215 desc.Texture3D.WSize = tpl->u.tex.last_layer - tpl->u.tex.first_layer + 1; in initialize_rtv()
255 surface->base.u.tex.last_layer = tpl->u.tex.last_layer; in d3d12_create_surface()
/third_party/mesa3d/src/gallium/drivers/zink/
H A Dzink_surface.h125 zink_surface_clamp_viewtype(VkImageViewType viewType, unsigned first_layer, unsigned last_layer, unsigned array_size) in zink_surface_clamp_viewtype() argument
127 unsigned layerCount = 1 + last_layer - first_layer; in zink_surface_clamp_viewtype()
129 if (first_layer == last_layer) in zink_surface_clamp_viewtype()
H A Dzink_surface.c101 ivci.subresourceRange.layerCount = 1 + templ->u.tex.last_layer - templ->u.tex.first_layer; in create_ivci()
104 ivci.viewType = zink_surface_clamp_viewtype(ivci.viewType, templ->u.tex.first_layer, templ->u.tex.last_layer, res->base.b.array_size); in create_ivci()
174 surface->base.u.tex.last_layer = templ->u.tex.last_layer; in create_surface()
261 bool is_array = templ->u.tex.last_layer != templ->u.tex.first_layer; in zink_create_surface()
/third_party/mesa3d/src/gallium/drivers/svga/
H A Dsvga_pipe_clear.c296 tmpl.u.tex.last_layer = box->z + box->depth - 1; in svga_clear_texture()
443 unsigned last_layer = rtv->u.tex.last_layer; in svga_clear_texture() local
444 unsigned box_depth = last_layer - first_layer + 1; in svga_clear_texture()
447 rtv->u.tex.first_layer = rtv->u.tex.last_layer = in svga_clear_texture()
454 rtv->u.tex.last_layer = last_layer; in svga_clear_texture()
H A Dsvga_image_view.c93 desc.tex.arraySize = image->u.tex.last_layer - image->u.tex.first_layer + 1; in svga_create_uav_image()
102 desc.tex3D.wSize = image->u.tex.last_layer - image->u.tex.first_layer + 1; in svga_create_uav_image()
198 " texture res=0x%x format=%d first_layer=%d last_layer=%d level=%d\n", in svga_set_shader_images()
200 img->u.tex.last_layer, img->u.tex.level); in svga_set_shader_images()
/third_party/mesa3d/src/gallium/drivers/freedreno/
H A Dfreedreno_surface.c61 psurf->u.tex.last_layer = surf_tmpl->u.tex.last_layer; in fd_create_surface()
/third_party/mesa3d/src/gallium/auxiliary/util/
H A Du_gen_mipmap.c51 * \param last_layer the last layer to generate mipmap levels for
61 uint first_layer, uint last_layer, uint filter) in util_gen_mipmap()
122 (last_layer + 1 - first_layer); in util_gen_mipmap()
59 util_gen_mipmap(struct pipe_context *pipe, struct pipe_resource *pt, enum pipe_format format, uint base_level, uint last_level, uint first_layer, uint last_layer, uint filter) util_gen_mipmap() argument
H A Du_gen_mipmap.h44 uint first_layer, uint last_layer, uint filter);
H A Du_framebuffer.c196 unsigned num = fb->cbufs[i]->u.tex.last_layer - in util_framebuffer_get_num_layers()
202 unsigned num = fb->zsbuf->u.tex.last_layer - in util_framebuffer_get_num_layers()
/third_party/mesa3d/src/gallium/frontends/d3d10umd/
H A DOutputMerger.cpp105 desc.u.tex.last_layer = pCreateRenderTargetView->Tex1D.ArraySize - 1 + in CreateRenderTargetView()
112 desc.u.tex.last_layer = pCreateRenderTargetView->Tex2D.ArraySize - 1 + in CreateRenderTargetView()
118 desc.u.tex.last_layer = pCreateRenderTargetView->Tex3D.WSize - 1 + in CreateRenderTargetView()
125 desc.u.tex.last_layer = pCreateRenderTargetView->TexCube.ArraySize - 1 + in CreateRenderTargetView()
300 desc.u.tex.last_layer = pCreateDepthStencilView->Tex1D.ArraySize - 1 + in CreateDepthStencilView()
307 desc.u.tex.last_layer = pCreateDepthStencilView->Tex2D.ArraySize - 1 + in CreateDepthStencilView()
314 desc.u.tex.last_layer = pCreateDepthStencilView->TexCube.ArraySize - 1 + in CreateDepthStencilView()
/third_party/mesa3d/src/gallium/include/pipe/
H A Dp_state.h444 unsigned last_layer:16; member
498 unsigned last_layer:16; /**< last layer to use for array textures */ member
524 unsigned last_layer:16; /**< last layer to use for array textures */ member
/third_party/mesa3d/src/gallium/drivers/softpipe/
H A Dsp_state_sampler.c236 num_layers = view->u.tex.last_layer - view->u.tex.first_layer + 1; in prepare_shader_sampling()
245 assert(view->u.tex.first_layer <= view->u.tex.last_layer); in prepare_shader_sampling()
246 assert(view->u.tex.last_layer < res->array_size); in prepare_shader_sampling()
/third_party/mesa3d/src/gallium/drivers/llvmpipe/
H A Dlp_state_sampler.c328 num_layers = view->u.tex.last_layer - view->u.tex.first_layer + 1; in prepare_shader_sampling()
337 assert(view->u.tex.first_layer <= view->u.tex.last_layer); in prepare_shader_sampling()
338 assert(view->u.tex.last_layer < res->array_size); in prepare_shader_sampling()
499 num_layers = view->u.tex.last_layer - view->u.tex.first_layer + 1; in prepare_shader_images()
500 assert(view->u.tex.first_layer <= view->u.tex.last_layer); in prepare_shader_images()
H A Dlp_surface.c218 assert(surf_tmpl->u.tex.first_layer <= surf_tmpl->u.tex.last_layer); in llvmpipe_create_surface()
223 ps->u.tex.last_layer = surf_tmpl->u.tex.last_layer; in llvmpipe_create_surface()
333 box.depth = dst->u.tex.last_layer - dst->u.tex.first_layer + 1; in llvmpipe_clear_render_target()
405 box.depth = dst->u.tex.last_layer - dst->u.tex.first_layer + 1; in llvmpipe_clear_depth_stencil()
/third_party/mesa3d/src/gallium/drivers/iris/
H A Diris_clear.c642 box.depth = psurf->u.tex.last_layer - psurf->u.tex.first_layer + 1; in iris_clear()
655 box.depth = psurf->u.tex.last_layer - psurf->u.tex.first_layer + 1, in iris_clear()
751 .depth = psurf->u.tex.last_layer - psurf->u.tex.first_layer + 1 in iris_clear_render_target()
782 .depth = psurf->u.tex.last_layer - psurf->u.tex.first_layer + 1 in iris_clear_depth_stencil()

Completed in 29 milliseconds

1234567