/third_party/mesa3d/src/gallium/drivers/lima/ |
D | lima_texture.c | 73 unsigned first_level, unsigned last_level, unsigned first_layer) in lima_texture_desc_set_res() argument 109 for (i = 1; i <= (last_level - first_level); i++) { in lima_texture_desc_set_res() 124 unsigned last_level; in lima_update_tex_desc() local 146 last_level = texture->base.u.tex.last_level; in lima_update_tex_desc() 148 if (last_level - first_level >= LIMA_MAX_MIP_LEVELS) in lima_update_tex_desc() 149 last_level = first_level + LIMA_MAX_MIP_LEVELS - 1; in lima_update_tex_desc() 153 (last_level - first_level)); in lima_update_tex_desc() 235 first_level, last_level, first_layer); in lima_update_tex_desc() 244 unsigned last_level = texture->base.u.tex.last_level; in lima_calc_tex_desc_size() local 246 if (last_level - first_level >= LIMA_MAX_MIP_LEVELS) in lima_calc_tex_desc_size() [all …]
|
/third_party/mesa3d/src/util/ |
D | u_debug_describe.c | 47 …uf, "pipe_texture1d<%u,%s,%u>", ptr->width0, util_format_short_name(ptr->format), ptr->last_level); in debug_describe_resource() 50 …2d<%u,%u,%s,%u>", ptr->width0, ptr->height0, util_format_short_name(ptr->format), ptr->last_level); in debug_describe_resource() 56 …be<%u,%u,%s,%u>", ptr->width0, ptr->height0, util_format_short_name(ptr->format), ptr->last_level); in debug_describe_resource() 59 …u>", ptr->width0, ptr->height0, ptr->depth0, util_format_short_name(ptr->format), ptr->last_level); in debug_describe_resource() 62 …%u,%u,%s,%u>", ptr->width0, ptr->array_size, util_format_short_name(ptr->format), ptr->last_level); in debug_describe_resource() 65 … ptr->width0, ptr->height0, ptr->array_size, util_format_short_name(ptr->format), ptr->last_level); in debug_describe_resource() 68 … ptr->width0, ptr->height0, ptr->array_size, util_format_short_name(ptr->format), ptr->last_level); in debug_describe_resource()
|
/third_party/mesa3d/src/mesa/drivers/dri/i965/ |
D | brw_generate_mipmap.c | 45 unsigned last_level, first_layer, last_layer; in brw_generate_mipmap() local 56 last_level = _mesa_compute_num_levels(ctx, tex_obj, target) - 1; in brw_generate_mipmap() 58 if (last_level == 0) in brw_generate_mipmap() 64 intel_obj->_MaxLevel = last_level; in brw_generate_mipmap() 67 _mesa_prepare_mipmap_levels(ctx, tex_obj, base_level, last_level); in brw_generate_mipmap() 126 dst_level <= last_level; in brw_generate_mipmap()
|
D | brw_mipmap_tree.c | 123 create_mapping_table(GLenum target, unsigned first_level, unsigned last_level, in create_mapping_table() argument 126 for (unsigned level = first_level; level <= last_level; level++) { in create_mapping_table() 138 for (unsigned level = first_level; level <= last_level; level++) in create_mapping_table() 267 assert(level <= mt->last_level); in brw_miptree_check_level_layer() 275 const uint32_t levels = mt->last_level + 1; in create_aux_state_map() 350 unsigned first_level, unsigned last_level, in make_surface() argument 360 if (!create_mapping_table(target, first_level, last_level, depth0, in make_surface() 377 first_level, last_level, mt); in make_surface() 385 .levels = last_level - first_level + 1, in make_surface() 437 mt->last_level = last_level; in make_surface() [all …]
|
/third_party/mesa3d/src/mesa/drivers/dri/i915/ |
D | i915_tex_layout.c | 128 for (level = mt->first_level; level <= mt->last_level; level++) { in i915_miptree_layout_cube() 142 for (level = mt->first_level; level <= mt->last_level; level++) { in i915_miptree_layout_cube() 147 face, level, mt->first_level, mt->last_level); in i915_miptree_layout_cube() 169 for (level = mt->first_level; level <= MAX2(8, mt->last_level); level++) { in i915_miptree_layout_3d() 182 for (level = mt->first_level; level <= mt->last_level; level++) { in i915_miptree_layout_3d() 210 for (level = mt->first_level; level <= mt->last_level; level++) { in i915_miptree_layout_2d() 337 for (level = mt->first_level; level <= mt->last_level; level++) { in i945_miptree_layout_cube() 358 for (level = mt->first_level; level <= mt->last_level; level++) { in i945_miptree_layout_cube() 419 for (level = mt->first_level; level <= mt->last_level; level++) { in i945_miptree_layout_3d()
|
D | intel_mipmap_tree.h | 156 GLuint last_level; member 201 GLuint last_level, 213 GLuint last_level, 265 assert(level <= mt->last_level); in intel_miptree_check_level_layer()
|
/third_party/mesa3d/src/gallium/auxiliary/util/ |
D | u_gen_mipmap.c | 60 enum pipe_format format, uint base_level, uint last_level, in util_gen_mipmap() argument 89 assert(last_level <= pt->last_level); in util_gen_mipmap() 92 assert(last_level > base_level); in util_gen_mipmap() 103 for (dstLevel = base_level + 1; dstLevel <= last_level; dstLevel++) { in util_gen_mipmap()
|
D | u_sampler.c | 51 view->u.tex.last_level = texture->last_level; in default_template()
|
/third_party/mesa3d/src/gallium/drivers/softpipe/ |
D | sp_state_sampler.c | 208 unsigned last_level = 0; in prepare_shader_sampling() local 222 last_level = view->u.tex.last_level; in prepare_shader_sampling() 223 assert(first_level <= last_level); in prepare_shader_sampling() 224 assert(last_level <= res->last_level); in prepare_shader_sampling() 227 for (j = first_level; j <= last_level; j++) { in prepare_shader_sampling() 237 for (j = first_level; j <= last_level; j++) { in prepare_shader_sampling() 278 first_level, last_level, 0, 0, in prepare_shader_sampling()
|
/third_party/mesa3d/src/gallium/drivers/svga/ |
D | svga_sampler_view.c | 72 assert(max_lod <= pt->last_level); in svga_get_tex_sampler_view() 82 if (min_lod == 0 && max_lod >= pt->last_level) in svga_get_tex_sampler_view() 101 pt, min_lod, max_lod, pt->last_level); in svga_get_tex_sampler_view() 131 pt->last_level); in svga_get_tex_sampler_view() 146 pt->last_level); in svga_get_tex_sampler_view()
|
D | svga_state_tss.c | 85 unsigned last_level, min_lod, max_lod; in emit_tex_binding_unit() local 94 last_level = MIN2(sv->u.tex.last_level, sv->texture->last_level); in emit_tex_binding_unit() 96 min_lod = MIN2(min_lod, last_level); in emit_tex_binding_unit() 97 max_lod = MIN2(s->view_max_lod + sv->u.tex.first_level, last_level); in emit_tex_binding_unit()
|
D | svga_resource_texture.c | 359 tex->b.last_level + 1); in svga_texture_transfer_map_direct() 462 tex->b.last_level + 1, 1, 0); in svga_texture_transfer_map_direct() 466 tex->b.last_level + 1, /* numMips */ in svga_texture_transfer_map_direct() 780 tex->b.last_level + 1); in svga_texture_transfer_unmap_direct() 854 assert(template->last_level < SVGA_MAX_TEXTURE_LEVELS); in svga_texture_create() 855 if (template->last_level >= SVGA_MAX_TEXTURE_LEVELS) { in svga_texture_create() 883 assert(template->last_level == 0); in svga_texture_create() 889 assert(1 << template->last_level <= max_dim); in svga_texture_create() 1057 tex->key.numMipLevels = template->last_level + 1; in svga_texture_create() 1151 template->last_level != 0 || in svga_texture_from_handle() [all …]
|
/third_party/mesa3d/src/gallium/drivers/r300/ |
D | r300_texture_desc.c | 127 if (level > tex->b.last_level) { in r300_texture_get_stride() 129 __FUNCTION__, level, tex->b.last_level); in r300_texture_get_stride() 163 tex->b.last_level != 0) { in r300_texture_get_nblocksy() 186 if (level == 0 && tex->b.last_level == 0 && in r300_texture_get_nblocksy() 227 for (i = 0; i <= base->last_level; i++) { in r300_setup_miptree() 303 for (i = 0; i <= tex->b.last_level; i++) in r300_setup_cbzb_flags() 363 for (i = 0; i <= tex->b.last_level; i++) { in r300_setup_hyperz_properties() 427 tex->b.last_level > 0 || in r300_setup_cmask_properties() 535 tex->b.last_level, tex->tex.size_in_bytes, in r300_tex_print_info() 550 tex->b.last_level = base->last_level; in r300_texture_desc_init()
|
/third_party/mesa3d/src/gallium/drivers/i915/ |
D | i915_resource_texture.c | 193 if (pt->last_level > 0 || util_format_get_blocksize(pt->format) != 4) in i9x5_scanout_layout() 230 if (pt->last_level > 0 || util_format_get_blocksize(pt->format) != 4) in i9x5_display_target_layout() 339 for (level = 0; level <= pt->last_level; level++) in i9x5_texture_layout_cube() 347 for (level = 0; level <= pt->last_level; level++) { in i9x5_texture_layout_cube() 376 for (level = 0; level <= pt->last_level; level++) { in i915_texture_layout_2d() 406 for (level = 0; level <= MAX2(8, pt->last_level); level++) { in i915_texture_layout_3d() 418 for (level = 0; level <= pt->last_level; level++) { in i915_texture_layout_3d() 486 if (pt->last_level > 0) { in i945_texture_layout_2d() 500 for (level = 0; level <= pt->last_level; level++) { in i945_texture_layout_2d() 543 for (level = 0; level <= pt->last_level; level++) { in i945_texture_layout_3d() [all …]
|
/third_party/mesa3d/src/panfrost/lib/ |
D | pan_texture.c | 454 unsigned first_level, unsigned last_level, in panfrost_texture_num_elements() argument 466 unsigned levels = 1 + last_level - first_level; in panfrost_texture_num_elements() 491 panfrost_texture_num_elements(iview->first_level, iview->last_level, in GENX() 502 unsigned level, first_level, last_level; member 510 unsigned first_level, unsigned last_level, in panfrost_surface_iter_begin() argument 517 iter->last_level = last_level; in panfrost_surface_iter_begin() 635 iview->first_level, iview->last_level, in panfrost_emit_texture_payload() 679 for (unsigned l = iview->first_level; l <= iview->last_level; ++l) { in panfrost_needs_explicit_stride() 753 assert(!iview->first_level && !iview->last_level); in GENX() 775 cfg.levels = iview->last_level - iview->first_level + 1; in GENX()
|
/third_party/mesa3d/src/gallium/frontends/d3d10umd/ |
D | Resource.cpp | 157 UINT MipLevels = resource->last_level + 1; in subResourceBox() 286 templat.last_level = pCreateResource->MipLevels - 1; in CreateResource() 473 if (resource->last_level == 0 && resource->array_size == 1) { in ResourceMap() 632 assert(dst_resource->last_level == src_resource->last_level); in ResourceCopy() 639 for (unsigned level = 0; level <= dst_resource->last_level; ++level) { in ResourceCopy() 701 unsigned dst_level = DstSubResource % (dst_resource->last_level + 1); in ResourceCopyRegion() 702 unsigned dst_layer = DstSubResource / (dst_resource->last_level + 1); in ResourceCopyRegion() 703 unsigned src_level = SrcSubResource % (src_resource->last_level + 1); in ResourceCopyRegion() 704 unsigned src_layer = SrcSubResource / (src_resource->last_level + 1); in ResourceCopyRegion() 843 UINT DstMipLevels = dst_resource->last_level + 1; in ResourceUpdateSubResourceUP()
|
/third_party/mesa3d/src/gallium/drivers/etnaviv/ |
D | etnaviv_clear_blit.c | 188 struct pipe_resource *src, int first_level, int last_level) in etna_copy_resource() argument 195 assert(last_level <= dst->last_level && last_level <= src->last_level); in etna_copy_resource() 207 for (int level = first_level; level <= last_level; level++) { in etna_copy_resource()
|
/third_party/mesa3d/src/gallium/drivers/radeonsi/ |
D | si_blit.c | 282 unsigned required_planes, unsigned first_level, unsigned last_level, in si_decompress_depth() argument 287 unsigned level_mask = u_bit_consecutive(first_level, last_level - first_level + 1); in si_decompress_depth() 316 first_level, last_level, levels_z, levels_s); in si_decompress_depth() 380 tex->buffer.b.b.last_level == 0 && in si_decompress_depth() 420 view->u.tex.first_level, view->u.tex.last_level, 0, in si_decompress_sampler_depth_textures() 433 unsigned first_level, unsigned last_level, in si_blit_decompress_color() argument 439 unsigned level_mask = u_bit_consecutive(first_level, last_level - first_level + 1); in si_blit_decompress_color() 450 first_level, last_level, level_mask); in si_blit_decompress_color() 459 for (int i = first_level; i <= last_level; i++) { in si_blit_decompress_color() 539 unsigned first_level, unsigned last_level, in si_decompress_color_texture() argument [all …]
|
/third_party/mesa3d/src/gallium/frontends/nine/ |
D | basetexture9.c | 71 This->level_count = (Usage & D3DUSAGE_AUTOGENMIPMAP) ? 1 : (This->base.info.last_level+1); in NineBaseTexture9_ctor() 382 unsigned last_level = This->base.info.last_level - This->managed.lod; in NineBaseTexture9_GenerateMipSubLevels() local 405 base_level, last_level, in NineBaseTexture9_GenerateMipSubLevels() 423 This->managed.lod, This->base.info.last_level); in NineBaseTexture9_CreatePipeResource() 434 templ.last_level = This->base.info.last_level - This->managed.lod; in NineBaseTexture9_CreatePipeResource() 464 for (; l <= templ.last_level; ++l, ++m) { in NineBaseTexture9_CreatePipeResource() 563 templ.u.tex.last_level = resource->last_level; in NineBaseTexture9_UpdateSamplerView() 618 This->base.info.array_size, This->base.info.last_level, in NineBaseTexture9_Dump()
|
/third_party/mesa3d/src/gallium/drivers/llvmpipe/ |
D | lp_state_sampler.c | 300 unsigned last_level = 0; in prepare_shader_sampling() local 311 last_level = view->u.tex.last_level; in prepare_shader_sampling() 312 assert(first_level <= last_level); in prepare_shader_sampling() 313 assert(last_level <= res->last_level); in prepare_shader_sampling() 318 for (j = first_level; j <= last_level; j++) { in prepare_shader_sampling() 328 for (j = first_level; j <= last_level; j++) { in prepare_shader_sampling() 366 first_level, last_level, in prepare_shader_sampling()
|
/third_party/flutter/skia/third_party/externals/libwebp/src/utils/ |
D | quant_levels_dec_utils.c | 184 int i, j, last_level; in CountLevels() local 200 last_level = -1; in CountLevels() 204 if (last_level >= 0) { in CountLevels() 205 const int level_dist = i - last_level; in CountLevels() 210 last_level = i; in CountLevels()
|
/third_party/skia/third_party/externals/libwebp/src/utils/ |
D | quant_levels_dec_utils.c | 184 int i, j, last_level; in CountLevels() local 200 last_level = -1; in CountLevels() 204 if (last_level >= 0) { in CountLevels() 205 const int level_dist = i - last_level; in CountLevels() 210 last_level = i; in CountLevels()
|
/third_party/mesa3d/src/mesa/state_tracker/ |
D | st_sampler_view.c | 484 last_level(const struct st_texture_object *stObj) in last_level() function 487 stObj->pt->last_level); in last_level() 599 templ.u.tex.first_level = templ.u.tex.last_level = stObj->level_override; in st_create_texture_sampler_view_from_stobj() 603 templ.u.tex.last_level = last_level(stObj); in st_create_texture_sampler_view_from_stobj() 612 assert(templ.u.tex.first_level <= templ.u.tex.last_level); in st_create_texture_sampler_view_from_stobj() 653 assert(stObj->level_override >= 0 || last_level(stObj) == view->u.tex.last_level); in st_get_texture_sampler_view_from_stobj()
|
D | st_draw_feedback.c | 330 unsigned last_level = 0; in st_feedback_draw_vbo() local 339 last_level = view->u.tex.last_level; in st_feedback_draw_vbo() 343 for (unsigned j = first_level; j <= last_level; j++) { in st_feedback_draw_vbo() 364 for (unsigned j = first_level; j <= last_level; j++) { in st_feedback_draw_vbo() 389 last_level, 0, 0, (void*)base_addr, row_stride, in st_feedback_draw_vbo() 483 j <= view->u.tex.last_level; j++) { in st_feedback_draw_vbo()
|
/third_party/mesa3d/src/gallium/winsys/virgl/drm/ |
D | virgl_drm_winsys.c | 174 uint32_t last_level, in virgl_drm_winsys_resource_create_blob() argument 194 .last_level = last_level, in virgl_drm_winsys_resource_create_blob() 217 cmd[VIRGL_PIPE_RES_CREATE_LAST_LEVEL] = last_level; in virgl_drm_winsys_resource_create_blob() 257 uint32_t last_level, in virgl_drm_winsys_resource_create() argument 276 .last_level = last_level, in virgl_drm_winsys_resource_create() 291 createcmd.last_level = last_level; in virgl_drm_winsys_resource_create() 412 uint32_t last_level, in virgl_drm_winsys_resource_cache_create() argument 429 .last_level = last_level, in virgl_drm_winsys_resource_cache_create() 452 array_size, last_level, in virgl_drm_winsys_resource_cache_create() 457 last_level, nr_samples, size, in virgl_drm_winsys_resource_cache_create()
|