Home
last modified time | relevance | path

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

12345

/external/virglrenderer/src/gallium/auxiliary/util/
Du_surface.c345 width = u_minify(res->width0, level); in is_box_inside_resource()
351 width = u_minify(res->width0, level); in is_box_inside_resource()
352 height = u_minify(res->height0, level); in is_box_inside_resource()
356 width = u_minify(res->width0, level); in is_box_inside_resource()
357 height = u_minify(res->height0, level); in is_box_inside_resource()
358 depth = u_minify(res->depth0, level); in is_box_inside_resource()
361 width = u_minify(res->width0, level); in is_box_inside_resource()
362 height = u_minify(res->height0, level); in is_box_inside_resource()
366 width = u_minify(res->width0, level); in is_box_inside_resource()
371 width = u_minify(res->width0, level); in is_box_inside_resource()
[all …]
/external/mesa3d/src/panfrost/lib/
Dpan_texture.c89 unsigned expected = u_minify(width, l) * bytes_per_pixel; in panfrost_needs_explicit_stride()
299 u_minify(width, l), in panfrost_emit_texture_payload()
300 u_minify(height, l), false); in panfrost_emit_texture_payload()
357 u_minify(width, l), in panfrost_emit_texture_payload_v7()
358u_minify(height, l), false); in panfrost_emit_texture_payload_v7()
393 cfg.width = u_minify(width, first_level); in panfrost_new_texture()
394 cfg.height = u_minify(height, first_level); in panfrost_new_texture()
395 cfg.depth = u_minify(depth, first_level); in panfrost_new_texture()
472 cfg.width = u_minify(width, first_level); in panfrost_new_texture_bifrost()
473 cfg.height = u_minify(height, first_level); in panfrost_new_texture_bifrost()
/external/mesa3d/src/gallium/auxiliary/util/
Du_surface.c276 assert(src_box.x + src_box.width <= (int)u_minify(src->width0, src_level)); in util_resource_copy_region()
277 assert(src_box.y + src_box.height <= (int)u_minify(src->height0, src_level)); in util_resource_copy_region()
278 assert(dst_box.x + dst_box.width <= (int)u_minify(dst->width0, dst_level)); in util_resource_copy_region()
279 assert(dst_box.y + dst_box.height <= (int)u_minify(dst->height0, dst_level)); in util_resource_copy_region()
676 width = u_minify(res->width0, level); in is_box_inside_resource()
682 width = u_minify(res->width0, level); in is_box_inside_resource()
683 height = u_minify(res->height0, level); in is_box_inside_resource()
687 width = u_minify(res->width0, level); in is_box_inside_resource()
688 height = u_minify(res->height0, level); in is_box_inside_resource()
689 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()
/external/mesa3d/src/gallium/frontends/nine/
Dbasetexture9.c329 box.width = u_minify(This->base.info.width0, l); in NineBaseTexture9_UploadSelf()
330 box.height = u_minify(This->base.info.height0, l); in NineBaseTexture9_UploadSelf()
342 box.width = u_minify(This->base.info.width0, l); in NineBaseTexture9_UploadSelf()
343 box.height = u_minify(This->base.info.height0, l); in NineBaseTexture9_UploadSelf()
354 box.width = u_minify(This->base.info.width0, l); in NineBaseTexture9_UploadSelf()
355 box.height = u_minify(This->base.info.height0, l); in NineBaseTexture9_UploadSelf()
356 box.depth = u_minify(This->base.info.depth0, l); in NineBaseTexture9_UploadSelf()
435 templ.width0 = u_minify(templ.width0, This->managed.lod); in NineBaseTexture9_CreatePipeResource()
436 templ.height0 = u_minify(templ.height0, This->managed.lod); in NineBaseTexture9_CreatePipeResource()
437 templ.depth0 = u_minify(templ.depth0, This->managed.lod); in NineBaseTexture9_CreatePipeResource()
[all …]
/external/mesa3d/src/freedreno/fdl/
Dfreedreno_layout.c54 u_minify(layout->width0, level), in fdl_dump_layout()
55 u_minify(layout->height0, level), in fdl_dump_layout()
56 u_minify(layout->depth0, level), in fdl_dump_layout()
Dfd6_layout.c188 uint32_t depth = u_minify(depth0, level); in fdl6_layout()
197 height = u_minify(util_next_power_of_two(height0), level); in fdl6_layout()
199 height = u_minify(height0, level); in fdl6_layout()
241 uint32_t meta_height = align(u_minify(ubwc_height0, level), in fdl6_layout()
Dfreedreno_layout.h145 return align(u_minify(layout->pitch0, level), 1 << layout->pitchalign); in fdl_pitch()
157 return align(u_minify(layout->ubwc_width0, level), RGB_TILE_WIDTH_ALIGNMENT); in fdl_ubwc_pitch()
208 unsigned w = u_minify(layout->width0, level); in fdl_level_linear()
Dfd5_layout.c67 uint32_t nblocksy = util_format_get_nblocksy(format, u_minify(height0, level)); in fdl5_layout()
102 layout->size += slice->size0 * u_minify(depth0, level) * layers_in_level; in fdl5_layout()
/external/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()
/external/mesa3d/src/broadcom/vulkan/
Dv3dv_image.c89 uint32_t pot_width = 2 * util_next_power_of_two(u_minify(width, 1)); in v3d_setup_slices()
90 uint32_t pot_height = 2 * util_next_power_of_two(u_minify(height, 1)); in v3d_setup_slices()
91 uint32_t pot_depth = 2 * util_next_power_of_two(u_minify(depth, 1)); in v3d_setup_slices()
117 level_width = u_minify(width, i); in v3d_setup_slices()
118 level_height = u_minify(height, i); in v3d_setup_slices()
120 level_width = u_minify(pot_width, i); in v3d_setup_slices()
121 level_height = u_minify(pot_height, i); in v3d_setup_slices()
125 level_depth = u_minify(depth, i); in v3d_setup_slices()
127 level_depth = u_minify(pot_depth, i); in v3d_setup_slices()
598 <= u_minify(image->extent.depth, range->baseMipLevel)); in v3dv_CreateImageView()
[all …]
/external/mesa3d/src/gallium/drivers/v3d/
Dv3d_resource.c76 u_minify(util_next_power_of_two(prsc->depth0), i); in v3d_debug_resource_layout()
85 u_minify(prsc->width0, i), in v3d_debug_resource_layout()
86 u_minify(prsc->height0, i), in v3d_debug_resource_layout()
87 u_minify(prsc->depth0, i), in v3d_debug_resource_layout()
510 uint32_t pot_width = 2 * util_next_power_of_two(u_minify(width, 1)); in v3d_setup_slices()
511 uint32_t pot_height = 2 * util_next_power_of_two(u_minify(height, 1)); in v3d_setup_slices()
512 uint32_t pot_depth = 2 * util_next_power_of_two(u_minify(depth, 1)); in v3d_setup_slices()
538 level_width = u_minify(width, i); in v3d_setup_slices()
539 level_height = u_minify(height, i); in v3d_setup_slices()
541 level_width = u_minify(pot_width, i); in v3d_setup_slices()
[all …]
Dv3d_blit.c77 int dst_surface_width = u_minify(info->dst.resource->width0,
79 int dst_surface_height = u_minify(info->dst.resource->height0,
208 .width = u_minify(info->src.resource->width0, in v3d_render_blit()
210 .height = u_minify(info->src.resource->height0, in v3d_render_blit()
297 u_minify(src->base.depth0, in v3d_stencil_blit()
363 int width = u_minify(pdst->width0, base_level) * msaa_scale; in v3d_tfu()
364 int height = u_minify(pdst->height0, base_level) * msaa_scale; in v3d_tfu()
489 int dst_width = u_minify(info->dst.resource->width0, info->dst.level); in v3d_tfu_blit()
490 int dst_height = u_minify(info->dst.resource->height0, info->dst.level); in v3d_tfu_blit()
Dv3d_uniforms.c57 return u_minify(texture->texture->width0, in get_texture_size()
60 return u_minify(texture->texture->height0, in get_texture_size()
63 return u_minify(texture->texture->depth0, in get_texture_size()
84 return u_minify(image->base.resource->width0, in get_image_size()
87 return u_minify(image->base.resource->height0, in get_image_size()
90 return u_minify(image->base.resource->depth0, in get_image_size()
/external/mesa3d/src/gallium/drivers/softpipe/
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()
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 …]
/external/mesa3d/src/mesa/state_tracker/
Dst_texture.c227 if (ptWidth != u_minify(pt->width0, image->Level) || in st_texture_match_image()
228 ptHeight != u_minify(pt->height0, image->Level) || in st_texture_match_image()
229 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()
/external/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()
/external/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.b.height0, i); in r300_setup_hyperz_properties()
/external/mesa3d/src/gallium/drivers/i915/
Di915_resource_texture.c354 width = u_minify(width, 1); in i915_texture_layout_2d()
355 height = u_minify(height, 1); in i915_texture_layout_2d()
383 width = u_minify(width, 1); in i915_texture_layout_3d()
384 height = u_minify(height, 1); in i915_texture_layout_3d()
395 depth = u_minify(depth, 1); in i915_texture_layout_3d()
462 align_nblocksx(pt->format, u_minify(width, 1), align_x) + in i945_texture_layout_2d()
463 util_format_get_nblocksx(pt->format, u_minify(width, 2)); in i945_texture_layout_2d()
491 width = u_minify(width, 1); in i945_texture_layout_2d()
492 height = u_minify(height, 1); in i945_texture_layout_2d()
546 width = u_minify(width, 1); in i945_texture_layout_3d()
[all …]
/external/mesa3d/src/gallium/drivers/freedreno/
Dfreedreno_surface.c54 psurf->width = u_minify(ptex->width0, level); in fd_create_surface()
55 psurf->height = u_minify(ptex->height0, level); in fd_create_surface()
/external/mesa3d/src/gallium/drivers/svga/
Dsvga_surface.c155 u_minify(src_tex->b.b.depth0, miplevel) : 1); in svga_texture_copy_handle_resource()
171 u_minify(src_tex->b.b.width0, miplevel), in svga_texture_copy_handle_resource()
172 u_minify(src_tex->b.b.height0, miplevel), in svga_texture_copy_handle_resource()
209 key->size.width = u_minify(tex->b.b.width0, start_mip); in svga_texture_view_surface()
210 key->size.height = u_minify(tex->b.b.height0, start_mip); in svga_texture_view_surface()
211 key->size.depth = zslice_pick < 0 ? u_minify(tex->b.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()
794 unsigned width = u_minify(tex->b.b.width0, dstLevel); in svga_propagate_surface()
795 unsigned height = u_minify(tex->b.b.height0, dstLevel); in svga_propagate_surface()
Dsvga_sampler_view.c208 u_minify(tex->b.b.width0, i), in svga_validate_sampler_view()
209 u_minify(tex->b.b.height0, i), in svga_validate_sampler_view()
210 u_minify(tex->b.b.depth0, i)); in svga_validate_sampler_view()
/external/mesa3d/src/gallium/drivers/freedreno/a3xx/
Dfd3_resource.c44 uint32_t height = u_minify(prsc->height0, level); in setup_slices()
69 size += slice->size0 * u_minify(prsc->depth0, level) * prsc->array_size; in setup_slices()

12345