Home
last modified time | relevance | path

Searched refs:u_minify (Results 1 – 25 of 131) sorted by relevance

123456

/third_party/mesa3d/src/gallium/drivers/radeonsi/
Dsi_test_image_copy_region.c48 unsigned width = u_minify(templ->width0, level); in alloc_cpu_texture()
49 unsigned height = u_minify(templ->height0, level); in alloc_cpu_texture()
64 unsigned width = u_minify(tex->width0, level); in set_random_pixels()
65 unsigned height = u_minify(tex->height0, level); in set_random_pixels()
100 … unsigned width = align(u_minify(tex1->width0, level), util_format_get_blockwidth(tex1->format)); in set_random_pixels_for_2_textures()
101 …unsigned height = align(u_minify(tex1->height0, level), util_format_get_blockheight(tex1->format)); in set_random_pixels_for_2_textures()
144 unsigned width = u_minify(tex->width0, level); in compare_textures()
145 unsigned height = u_minify(tex->height0, level); in compare_textures()
177 unsigned width = u_minify(tex1->width0, level); in compare_gpu_textures()
178 unsigned height = u_minify(tex1->height0, level); in compare_gpu_textures()
[all …]
/third_party/mesa3d/src/gallium/auxiliary/util/
Du_surface.c282 assert(src_box.x + src_box.width <= (int)u_minify(src->width0, src_level)); in util_resource_copy_region()
283 assert(src_box.y + src_box.height <= (int)u_minify(src->height0, src_level)); in util_resource_copy_region()
284 assert(dst_box.x + dst_box.width <= (int)u_minify(dst->width0, dst_level)); in util_resource_copy_region()
285 assert(dst_box.y + dst_box.height <= (int)u_minify(dst->height0, dst_level)); in util_resource_copy_region()
707 width = u_minify(res->width0, level); in is_box_inside_resource()
713 width = u_minify(res->width0, level); in is_box_inside_resource()
714 height = u_minify(res->height0, level); in is_box_inside_resource()
718 width = u_minify(res->width0, level); in is_box_inside_resource()
719 height = u_minify(res->height0, level); in is_box_inside_resource()
720 depth = u_minify(res->depth0, level); in is_box_inside_resource()
[all …]
Du_resource.c60 width = u_minify(width, 1); in util_resource_size()
61 height = u_minify(height, 1); in util_resource_size()
62 depth = u_minify(depth, 1); in util_resource_size()
Du_gen_mipmap.c107 blit.src.box.width = u_minify(pt->width0, blit.src.level); in util_gen_mipmap()
108 blit.src.box.height = u_minify(pt->height0, blit.src.level); in util_gen_mipmap()
110 blit.dst.box.width = u_minify(pt->width0, blit.dst.level); in util_gen_mipmap()
111 blit.dst.box.height = u_minify(pt->height0, blit.dst.level); in util_gen_mipmap()
/third_party/mesa3d/src/gallium/frontends/nine/
Dbasetexture9.c324 box.width = u_minify(This->base.info.width0, l); in NineBaseTexture9_UploadSelf()
325 box.height = u_minify(This->base.info.height0, l); in NineBaseTexture9_UploadSelf()
337 box.width = u_minify(This->base.info.width0, l); in NineBaseTexture9_UploadSelf()
338 box.height = u_minify(This->base.info.height0, l); in NineBaseTexture9_UploadSelf()
349 box.width = u_minify(This->base.info.width0, l); in NineBaseTexture9_UploadSelf()
350 box.height = u_minify(This->base.info.height0, l); in NineBaseTexture9_UploadSelf()
351 box.depth = u_minify(This->base.info.depth0, l); in NineBaseTexture9_UploadSelf()
430 templ.width0 = u_minify(templ.width0, This->managed.lod); in NineBaseTexture9_CreatePipeResource()
431 templ.height0 = u_minify(templ.height0, This->managed.lod); in NineBaseTexture9_CreatePipeResource()
432 templ.depth0 = u_minify(templ.depth0, This->managed.lod); in NineBaseTexture9_CreatePipeResource()
[all …]
/third_party/mesa3d/src/freedreno/fdl/
Dfreedreno_layout.c69 util_format_name(layout->format), u_minify(layout->width0, level), in fdl_dump_layout()
70 u_minify(layout->height0, level), u_minify(layout->depth0, level), in fdl_dump_layout()
Dfd6_layout.c196 uint32_t depth = u_minify(depth0, level); in fdl6_layout()
201 uint32_t height = u_minify(height0, level); in fdl6_layout()
231 slice->size0 = u_minify(layout->slices[0].size0, level * 2); in fdl6_layout()
262 align(u_minify(ubwc_height0, level), ubwc_tile_height_alignment); in fdl6_layout()
/third_party/mesa3d/src/gallium/drivers/freedreno/a4xx/
Dfd4_resource.c77 width = u_minify(width, 1); in fd4_setup_slices()
78 height = u_minify(height, 1); in fd4_setup_slices()
79 depth = u_minify(depth, 1); in fd4_setup_slices()
/third_party/mesa3d/src/gallium/drivers/v3d/
Dv3d_resource.c75 u_minify(util_next_power_of_two(prsc->depth0), i); in v3d_debug_resource_layout()
84 u_minify(prsc->width0, i), in v3d_debug_resource_layout()
85 u_minify(prsc->height0, i), in v3d_debug_resource_layout()
86 u_minify(prsc->depth0, i), in v3d_debug_resource_layout()
540 uint32_t pot_width = 2 * util_next_power_of_two(u_minify(width, 1)); in v3d_setup_slices()
541 uint32_t pot_height = 2 * util_next_power_of_two(u_minify(height, 1)); in v3d_setup_slices()
542 uint32_t pot_depth = 2 * util_next_power_of_two(u_minify(depth, 1)); in v3d_setup_slices()
568 level_width = u_minify(width, i); in v3d_setup_slices()
569 level_height = u_minify(height, i); in v3d_setup_slices()
571 level_width = u_minify(pot_width, i); in v3d_setup_slices()
[all …]
Dv3d_uniforms.c63 return u_minify(texture->texture->width0, in get_texture_size()
67 return u_minify(texture->texture->height0, in get_texture_size()
71 return u_minify(texture->texture->depth0, in get_texture_size()
98 return u_minify(image->base.resource->width0, in get_image_size()
103 return u_minify(image->base.resource->height0, in get_image_size()
107 return u_minify(image->base.resource->depth0, in get_image_size()
/third_party/mesa3d/src/mesa/state_tracker/
Dst_texture.c229 if (ptWidth != u_minify(pt->width0, image->Level) || in st_texture_match_image()
230 ptHeight != u_minify(pt->height0, image->Level) || in st_texture_match_image()
231 ptDepth != u_minify(pt->depth0, image->Level) || in st_texture_match_image()
358 GLuint width = u_minify(dst->width0, dstLevel); in st_texture_image_copy()
359 GLuint height = u_minify(dst->height0, dstLevel); in st_texture_image_copy()
360 GLuint depth = u_minify(dst->depth0, dstLevel); in st_texture_image_copy()
364 if (u_minify(src->width0, srcLevel) != width || in st_texture_image_copy()
365 u_minify(src->height0, srcLevel) != height || in st_texture_image_copy()
366 u_minify(src->depth0, srcLevel) != depth) { in st_texture_image_copy()
/third_party/mesa3d/src/gallium/drivers/softpipe/
Dsp_tex_sample.c520 const float rho = MAX2(dsdx, dsdy) * u_minify(texture->width0, sview->base.u.tex.first_level); in compute_lambda_1d_explicit_gradients()
564 const float maxx = MAX2(dsdx, dsdy) * u_minify(texture->width0, sview->base.u.tex.first_level); in compute_lambda_2d_explicit_gradients()
565 const float maxy = MAX2(dtdx, dtdy) * u_minify(texture->height0, sview->base.u.tex.first_level); in compute_lambda_2d_explicit_gradients()
610 const float maxx = MAX2(dsdx, dsdy) * u_minify(texture->width0, sview->base.u.tex.first_level); in compute_lambda_3d_explicit_gradients()
611 const float maxy = MAX2(dtdx, dtdy) * u_minify(texture->height0, sview->base.u.tex.first_level); in compute_lambda_3d_explicit_gradients()
612 const float maxz = MAX2(dpdx, dpdy) * u_minify(texture->depth0, sview->base.u.tex.first_level); in compute_lambda_3d_explicit_gradients()
646 …const float rho = MAX3(maxx, maxy, maxz) * u_minify(texture->width0, sview->base.u.tex.first_level… in compute_lambda_cube_explicit_gradients()
755 if (x < 0 || x >= (int) u_minify(texture->width0, level) || in get_texel_2d()
756 y < 0 || y >= (int) u_minify(texture->height0, level)) { in get_texel_2d()
981 if (x < 0 || x >= (int) u_minify(texture->width0, level) || in get_texel_3d()
[all …]
Dsp_texture.c93 width = u_minify(width, 1); in softpipe_resource_layout()
94 height = u_minify(height, 1); in softpipe_resource_layout()
95 depth = u_minify(depth, 1); in softpipe_resource_layout()
305 ps->width = u_minify(pt->width0, surf_tmpl->u.tex.level); in softpipe_create_surface()
306 ps->height = u_minify(pt->height0, surf_tmpl->u.tex.level); in softpipe_create_surface()
373 assert(box->x + box->width <= (int) u_minify(resource->width0, level)); in softpipe_transfer_map()
378 assert(box->y + box->height <= (int) u_minify(resource->height0, level)); in softpipe_transfer_map()
389 assert(box->z + box->depth <= (int) u_minify(resource->depth0, level)); in softpipe_transfer_map()
/third_party/mesa3d/src/gallium/drivers/i915/
Di915_resource_texture.c382 width = u_minify(width, 1); in i915_texture_layout_2d()
383 height = u_minify(height, 1); in i915_texture_layout_2d()
411 width = u_minify(width, 1); in i915_texture_layout_3d()
412 height = u_minify(height, 1); in i915_texture_layout_3d()
423 depth = u_minify(depth, 1); in i915_texture_layout_3d()
488 align_nblocksx(pt->format, u_minify(width, 1), align_x) + in i945_texture_layout_2d()
489 util_format_get_nblocksx(pt->format, u_minify(width, 2)); in i945_texture_layout_2d()
517 width = u_minify(width, 1); in i945_texture_layout_2d()
518 height = u_minify(height, 1); in i945_texture_layout_2d()
575 width = u_minify(width, 1); in i945_texture_layout_3d()
[all …]
/third_party/mesa3d/src/gallium/drivers/r300/
Dr300_texture_desc.c97 texdim = u_minify(tex->tex.width0, level); in r300_texture_macro_switch()
99 texdim = u_minify(tex->tex.height0, level); in r300_texture_macro_switch()
133 width = u_minify(tex->tex.width0, level); in r300_texture_get_stride()
157 height = u_minify(tex->tex.height0, level); in r300_texture_get_nblocksy()
254 size = layer_size * u_minify(tex->tex.depth0, i); in r300_setup_miptree()
264 i, u_minify(tex->tex.width0, i), u_minify(tex->tex.height0, i), in r300_setup_miptree()
265 u_minify(tex->tex.depth0, i), stride, tex->tex.size_in_bytes, in r300_setup_miptree()
369 height = u_minify(tex->b.height0, i); in r300_setup_hyperz_properties()
/third_party/mesa3d/src/gallium/frontends/d3d10umd/
DResource.cpp166 width = u_minify(resource->width0, *pLevel); in subResourceBox()
167 height = u_minify(resource->height0, *pLevel); in subResourceBox()
168 depth = u_minify(resource->depth0, *pLevel); in subResourceBox()
687 box.width = u_minify(dst_resource->width0, level); in ResourceCopy()
688 box.height = u_minify(dst_resource->height0, level); in ResourceCopy()
689 box.depth = u_minify(dst_resource->depth0, level); in ResourceCopy()
761 src_box.width = u_minify(src_resource->width0, src_level); in ResourceCopyRegion()
762 src_box.height = u_minify(src_resource->height0, src_level); in ResourceCopyRegion()
763 src_box.depth = u_minify(src_resource->depth0, src_level); in ResourceCopyRegion()
/third_party/mesa3d/src/broadcom/vulkan/
Dv3dv_image.c87 uint32_t pot_width = 2 * util_next_power_of_two(u_minify(width, 1)); in v3d_setup_slices()
88 uint32_t pot_height = 2 * util_next_power_of_two(u_minify(height, 1)); in v3d_setup_slices()
89 uint32_t pot_depth = 2 * util_next_power_of_two(u_minify(depth, 1)); in v3d_setup_slices()
115 level_width = u_minify(width, i); in v3d_setup_slices()
116 level_height = u_minify(height, i); in v3d_setup_slices()
118 level_width = u_minify(pot_width, i); in v3d_setup_slices()
119 level_height = u_minify(pot_height, i); in v3d_setup_slices()
123 level_depth = u_minify(depth, i); in v3d_setup_slices()
125 level_depth = u_minify(pot_depth, i); in v3d_setup_slices()
/third_party/mesa3d/src/asahi/lib/
Dtiling.h42 width = u_minify(width, level); in agx_select_tile_shift()
43 height = u_minify(height, level); in agx_select_tile_shift()
/third_party/mesa3d/src/gallium/drivers/d3d12/
Dd3d12_blit.cpp99 if (info->src.box.width != (int)u_minify(info->src.resource->width0, in resolve_supported()
101 info->src.box.height != (int)u_minify(info->src.resource->height0, in resolve_supported()
103 info->dst.box.width != (int)u_minify(info->dst.resource->width0, in resolve_supported()
105 info->dst.box.height != (int)u_minify(info->dst.resource->height0, in resolve_supported()
157 unsigned lwidth = u_minify(res->width0, level); in box_fits()
158 unsigned lheight= u_minify(res->height0, level); in box_fits()
159 unsigned ldepth = res->target == PIPE_TEXTURE_3D ? u_minify(res->depth0, level) : in box_fits()
240 info->src.box.width != (int)u_minify(info->src.resource->width0, in direct_copy_supported()
242 info->src.box.height != (int)u_minify(info->src.resource->height0, in direct_copy_supported()
244 info->src.box.depth != (int)u_minify(info->src.resource->depth0, in direct_copy_supported()
[all …]
/third_party/mesa3d/src/gallium/drivers/freedreno/a2xx/
Dfd2_resource.c43 uint32_t nblocksy = align(u_minify(height0, level), 32); in fd2_setup_slices()
52 size += slice->size0 * u_minify(prsc->depth0, level) * prsc->array_size; in fd2_setup_slices()
/third_party/mesa3d/src/gallium/drivers/svga/
Dsvga_surface.c155 u_minify(src_tex->b.depth0, miplevel) : 1); in svga_texture_copy_handle_resource()
171 u_minify(src_tex->b.width0, miplevel), in svga_texture_copy_handle_resource()
172 u_minify(src_tex->b.height0, miplevel), in svga_texture_copy_handle_resource()
209 key->size.width = u_minify(tex->b.width0, start_mip); in svga_texture_view_surface()
210 key->size.height = u_minify(tex->b.height0, start_mip); in svga_texture_view_surface()
211 key->size.depth = zslice_pick < 0 ? u_minify(tex->b.depth0, start_mip) : 1; in svga_texture_view_surface()
326 s->base.width = u_minify(pt->width0, surf_tmpl->u.tex.level); in svga_create_surface_view()
327 s->base.height = u_minify(pt->height0, surf_tmpl->u.tex.level); in svga_create_surface_view()
811 unsigned width = u_minify(tex->b.width0, dstLevel); in svga_propagate_surface()
812 unsigned height = u_minify(tex->b.height0, dstLevel); in svga_propagate_surface()
/third_party/mesa3d/src/panfrost/lib/
Dpan_layout.c239 unsigned width = u_minify(layout->width, level); in panfrost_get_legacy_stride()
457 width = u_minify(width, 1); in pan_image_layout_init()
458 height = u_minify(height, 1); in pan_image_layout_init()
459 depth = u_minify(depth, 1); in pan_image_layout_init()
491 ASSERTED unsigned depth = u_minify(iview->image->layout.depth, level); in pan_iview_get_surface()
/third_party/mesa3d/src/gallium/drivers/freedreno/
Dfreedreno_surface.c51 psurf->width = u_minify(ptex->width0, level); in fd_create_surface()
52 psurf->height = u_minify(ptex->height0, level); in fd_create_surface()
/third_party/mesa3d/src/gallium/drivers/freedreno/a3xx/
Dfd3_texture.c190 A3XX_TEX_CONST_1_WIDTH(u_minify(prsc->width0, lvl)) | in fd3_sampler_view_create()
191 A3XX_TEX_CONST_1_HEIGHT(u_minify(prsc->height0, lvl)); in fd3_sampler_view_create()
203 so->texconst3 = A3XX_TEX_CONST_3_DEPTH(u_minify(prsc->depth0, lvl)) | in fd3_sampler_view_create()
/third_party/mesa3d/src/vulkan/runtime/
Dvk_image.h106 u_minify(image->extent.width, mip_level), in vk_image_mip_level_extent()
107 u_minify(image->extent.height, mip_level), in vk_image_mip_level_extent()
108 u_minify(image->extent.depth, mip_level), in vk_image_mip_level_extent()

123456