Home
last modified time | relevance | path

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

123

/external/mesa3d/src/gallium/auxiliary/util/
Du_surface.c328 src_box.x + src_box.width == u_minify(src->width0, src_level)); in util_resource_copy_region()
330 src_box.y + src_box.height == u_minify(src->height0, src_level)); in util_resource_copy_region()
334 dst_box.x + dst_box.width == u_minify(dst->width0, dst_level)); in util_resource_copy_region()
336 dst_box.y + dst_box.height == u_minify(dst->height0, dst_level)); in util_resource_copy_region()
339 assert(src_box.x + src_box.width <= u_minify(src->width0, src_level)); in util_resource_copy_region()
340 assert(src_box.y + src_box.height <= u_minify(src->height0, src_level)); in util_resource_copy_region()
341 assert(dst_box.x + dst_box.width <= u_minify(dst->width0, dst_level)); in util_resource_copy_region()
342 assert(dst_box.y + dst_box.height <= u_minify(dst->height0, dst_level)); in util_resource_copy_region()
635 width = u_minify(res->width0, level); in is_box_inside_resource()
641 width = u_minify(res->width0, level); in is_box_inside_resource()
[all …]
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()
Du_resource.c59 width = u_minify(width, 1); in util_resource_size()
60 height = u_minify(height, 1); in util_resource_size()
61 depth = u_minify(depth, 1); in util_resource_size()
Du_inlines.h196 ps->width = u_minify(pt->width0, level); in pipe_surface_reset()
197 ps->height = u_minify(pt->height0, level); in pipe_surface_reset()
624 return u_minify(r->depth0, level) - 1; in util_max_layer()
644 width == u_minify(tex->width0, level) && in util_texrange_covers_whole_level()
645 height == u_minify(tex->height0, level) && in util_texrange_covers_whole_level()
/external/mesa3d/src/gallium/state_trackers/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 …]
Dvolumetexture9.c117 voldesc.Width = u_minify(Width, l); in NineVolumeTexture9_ctor()
118 voldesc.Height = u_minify(Height, l); in NineVolumeTexture9_ctor()
119 voldesc.Depth = u_minify(Depth, l); in NineVolumeTexture9_ctor()
/external/mesa3d/src/mesa/state_tracker/
Dst_texture.c224 if (ptWidth != u_minify(pt->width0, image->Level) || in st_texture_match_image()
225 ptHeight != u_minify(pt->height0, image->Level) || in st_texture_match_image()
226 ptDepth != u_minify(pt->depth0, image->Level) || in st_texture_match_image()
354 GLuint width = u_minify(dst->width0, dstLevel); in st_texture_image_copy()
355 GLuint height = u_minify(dst->height0, dstLevel); in st_texture_image_copy()
356 GLuint depth = u_minify(dst->depth0, dstLevel); in st_texture_image_copy()
360 if (u_minify(src->width0, srcLevel) != width || in st_texture_image_copy()
361 u_minify(src->height0, srcLevel) != height || in st_texture_image_copy()
362 u_minify(src->depth0, srcLevel) != depth) { in st_texture_image_copy()
/external/mesa3d/src/gallium/drivers/softpipe/
Dsp_tex_sample.c501 const float rho = MAX2(dsdx, dsdy) * u_minify(texture->width0, sview->base.u.tex.first_level); in compute_lambda_1d()
518 const float maxx = MAX2(dsdx, dsdy) * u_minify(texture->width0, sview->base.u.tex.first_level); in compute_lambda_2d()
519 const float maxy = MAX2(dtdx, dtdy) * u_minify(texture->height0, sview->base.u.tex.first_level); in compute_lambda_2d()
539 const float maxx = MAX2(dsdx, dsdy) * u_minify(texture->width0, sview->base.u.tex.first_level); in compute_lambda_3d()
540 const float maxy = MAX2(dtdx, dtdy) * u_minify(texture->height0, sview->base.u.tex.first_level); in compute_lambda_3d()
541 const float maxz = MAX2(dpdx, dpdy) * u_minify(texture->depth0, sview->base.u.tex.first_level); in compute_lambda_3d()
602 if (x < 0 || x >= (int) u_minify(texture->width0, level) || in get_texel_2d()
603 y < 0 || y >= (int) u_minify(texture->height0, level)) { in get_texel_2d()
845 if (x < 0 || x >= (int) u_minify(texture->width0, level) || in get_texel_3d()
846 y < 0 || y >= (int) u_minify(texture->height0, level) || in get_texel_3d()
[all …]
Dsp_texture.c92 width = u_minify(width, 1); in softpipe_resource_layout()
93 height = u_minify(height, 1); in softpipe_resource_layout()
94 depth = u_minify(depth, 1); in softpipe_resource_layout()
304 ps->width = u_minify(pt->width0, surf_tmpl->u.tex.level); in softpipe_create_surface()
305 ps->height = u_minify(pt->height0, surf_tmpl->u.tex.level); in softpipe_create_surface()
372 assert(box->x + box->width <= (int) u_minify(resource->width0, level)); in softpipe_transfer_map()
377 assert(box->y + box->height <= (int) u_minify(resource->height0, level)); in softpipe_transfer_map()
388 assert(box->z + box->depth <= (int) u_minify(resource->depth0, level)); in softpipe_transfer_map()
Dsp_image.c170 *width = u_minify(spr->base.width0, level); in get_dimensions()
171 *height = u_minify(spr->base.height0, level); in get_dimensions()
174 *depth = u_minify(spr->base.depth0, level); in get_dimensions()
761 dims[0] = u_minify(spr->base.width0, level); in sp_tgsi_get_dims()
774 dims[1] = u_minify(spr->base.height0, level); in sp_tgsi_get_dims()
777 dims[1] = u_minify(spr->base.height0, level); in sp_tgsi_get_dims()
778 dims[2] = u_minify(spr->base.depth0, level); in sp_tgsi_get_dims()
781 dims[1] = u_minify(spr->base.height0, level); in sp_tgsi_get_dims()
/external/mesa3d/src/gallium/drivers/svga/
Dsvga_surface.c132 key->size.width = u_minify(tex->b.b.width0, start_mip); in svga_texture_view_surface()
133 key->size.height = u_minify(tex->b.b.height0, start_mip); in svga_texture_view_surface()
134 key->size.depth = zslice_pick < 0 ? u_minify(tex->b.b.depth0, start_mip) : 1; in svga_texture_view_surface()
179 u_minify(tex->b.b.depth0, i + start_mip) : in svga_texture_view_surface()
188 u_minify(tex->b.b.width0, i + start_mip), in svga_texture_view_surface()
189 u_minify(tex->b.b.height0, i + start_mip), in svga_texture_view_surface()
246 s->base.width = u_minify(pt->width0, surf_tmpl->u.tex.level); in svga_create_surface_view()
247 s->base.height = u_minify(pt->height0, surf_tmpl->u.tex.level); in svga_create_surface_view()
650 u_minify(tex->b.b.width0, surf->u.tex.level), in svga_propagate_surface()
651 u_minify(tex->b.b.height0, surf->u.tex.level), 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/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/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/amd/vulkan/winsys/amdgpu/
Dradv_amdgpu_surface.c173 AddrSurfInfoIn->width = u_minify(surf->npix_x, level); in radv_compute_level()
174 AddrSurfInfoIn->height = u_minify(surf->npix_y, level); in radv_compute_level()
177 AddrSurfInfoIn->numSlices = u_minify(surf->npix_z, level); in radv_compute_level()
206 surf_level->npix_x = u_minify(surf->npix_x, level); in radv_compute_level()
207 surf_level->npix_y = u_minify(surf->npix_y, level); in radv_compute_level()
208 surf_level->npix_z = u_minify(surf->npix_z, level); in radv_compute_level()
/external/mesa3d/src/gallium/drivers/nouveau/nv30/
Dnv30_miptree.c96 rect->w = u_minify(pt->width0, level) << mt->ms_x; in define_rect()
98 rect->h = u_minify(pt->height0, level) << mt->ms_y; in define_rect()
104 rect->d = u_minify(pt->depth0, level); in define_rect()
438 w = u_minify(w, 1); in nv30_miptree_create()
439 h = u_minify(h, 1); in nv30_miptree_create()
440 d = u_minify(d, 1); in nv30_miptree_create()
521 ns->width = u_minify(pt->width0, ps->u.tex.level); in nv30_miptree_surface_new()
522 ns->height = u_minify(pt->height0, ps->u.tex.level); in nv30_miptree_surface_new()
/external/mesa3d/src/gallium/drivers/nouveau/nv50/
Dnv50_miptree.c321 w = u_minify(w, 1); in nv50_miptree_init_layout_tiled()
322 h = u_minify(h, 1); in nv50_miptree_init_layout_tiled()
323 d = u_minify(d, 1); in nv50_miptree_init_layout_tiled()
453 u_minify(pt->height0, l)); in nv50_mt_zslice_offset()
486 ns->width = u_minify(mt->base.base.width0, ps->u.tex.level); in nv50_surface_from_miptree()
487 ns->height = u_minify(mt->base.base.height0, ps->u.tex.level); in nv50_surface_from_miptree()
/external/mesa3d/src/gallium/drivers/nouveau/nvc0/
Dnvc0_miptree.c224 w = u_minify(w, 1); in nvc0_miptree_init_layout_tiled()
225 h = u_minify(h, 1); in nvc0_miptree_init_layout_tiled()
226 d = u_minify(d, 1); in nvc0_miptree_init_layout_tiled()
337 u_minify(pt->height0, l)); in nvc0_mt_zslice_offset()
/external/mesa3d/src/gallium/drivers/freedreno/
Dfreedreno_surface.c58 psurf->width = u_minify(ptex->width0, level); in fd_create_surface()
59 psurf->height = u_minify(ptex->height0, level); in fd_create_surface()
/external/mesa3d/src/gallium/drivers/virgl/
Dvirgl_texture.c102 const unsigned hgt = u_minify(pres->height0, level); in vrend_get_tex_image_offset()
138 const unsigned h = u_minify(vtex->base.u.b.height0, level); in virgl_texture_transfer_map()
269 width = u_minify(width, 1); in vrend_resource_layout()
270 height = u_minify(height, 1); in vrend_resource_layout()
271 depth = u_minify(depth, 1); in vrend_resource_layout()
/external/mesa3d/src/gallium/drivers/swr/
Dswr_screen.cpp715 width += align(u_minify(pt->width0, level), halign); in swr_texture_layout()
730 align(u_minify(pt->width0, 1), halign) + in swr_texture_layout()
731 align(u_minify(pt->width0, 2), halign)); in swr_texture_layout()
739 height += align(u_minify(pt->height0, 1), valign); in swr_texture_layout()
741 unsigned level1 = align(u_minify(pt->height0, 1), valign); in swr_texture_layout()
744 level2 += align(u_minify(pt->height0, level), valign); in swr_texture_layout()
/external/mesa3d/src/gallium/drivers/freedreno/a3xx/
Dfd3_texture.c257 A3XX_TEX_CONST_1_WIDTH(u_minify(prsc->width0, lvl)) | in fd3_sampler_view_create()
258 A3XX_TEX_CONST_1_HEIGHT(u_minify(prsc->height0, lvl)); in fd3_sampler_view_create()
272 A3XX_TEX_CONST_3_DEPTH(u_minify(prsc->depth0, lvl)) | in fd3_sampler_view_create()
/external/mesa3d/src/gallium/drivers/vc4/
Dvc4_resource.c325 uint32_t slice_width = u_minify(prsc->width0, level); in vc4_resource_transfer_map()
331 uint32_t slice_height = u_minify(prsc->height0, level); in vc4_resource_transfer_map()
423 level_width = u_minify(pot_width, i); in vc4_setup_slices()
424 level_height = u_minify(pot_height, i); in vc4_setup_slices()
651 psurf->width = u_minify(ptex->width0, level); in vc4_create_surface()
652 psurf->height = u_minify(ptex->height0, level); in vc4_create_surface()
932 unsigned width = u_minify(shadow->base.b.width0, i); in vc4_update_shadow_baselevel_texture()
933 unsigned height = u_minify(shadow->base.b.height0, i); in vc4_update_shadow_baselevel_texture()
/external/mesa3d/src/gallium/drivers/radeonsi/
Dsi_dma.c273 src_w = u_minify(rsrc->resource.b.b.width0, src_level); in si_dma_copy()
274 dst_w = u_minify(rdst->resource.b.b.width0, dst_level); in si_dma_copy()
281 src_box->height != u_minify(rsrc->resource.b.b.height0, src_level) || in si_dma_copy()
282 src_box->height != u_minify(rdst->resource.b.b.height0, dst_level) || in si_dma_copy()
/external/mesa3d/src/gallium/drivers/ilo/core/
Dilo_image.c605 w = u_minify(info->width, level); in image_get_gen6_slice_size()
606 h = u_minify(info->height, level); in image_get_gen6_slice_size()
898 const int slice_count = u_minify(info->depth, lv); in image_get_gen6_lods()
1203 hz_height += h * u_minify(info->depth, lv); in image_set_gen6_hiz()
1244 if (u_minify(info->width, lv) % hz_clear_w || in image_set_gen6_hiz()
1245 u_minify(info->height, lv) % hz_clear_h) in image_set_gen6_hiz()

123