Home
last modified time | relevance | path

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

12

/external/mesa3d/src/mesa/state_tracker/
Dst_texture.c195 if (ptWidth != u_minify(pt->width0, image->Level) || in st_texture_match_image()
196 ptHeight != u_minify(pt->height0, image->Level) || in st_texture_match_image()
197 ptDepth != u_minify(pt->depth0, image->Level) || in st_texture_match_image()
310 layers = u_minify(dst->depth0, level); in st_texture_image_data()
317 u_minify(dst->width0, level), in st_texture_image_data()
318 u_minify(dst->height0, level)); in st_texture_image_data()
325 u_minify(dst->width0, level), in st_texture_image_data()
326 u_minify(dst->height0, level)); /* width, height */ in st_texture_image_data()
374 GLuint width = u_minify(dst->width0, dstLevel); in st_texture_image_copy()
375 GLuint height = u_minify(dst->height0, dstLevel); in st_texture_image_copy()
[all …]
Dst_gen_mipmap.c225 dstWidth = u_minify(pt->width0, dstLevel); in st_generate_mipmap()
230 dstHeight = u_minify(pt->height0, dstLevel); in st_generate_mipmap()
236 dstDepth = u_minify(pt->depth0, dstLevel); in st_generate_mipmap()
Dst_atom_framebuffer.c69 if (u_minify(resource->width0, level) == rtt_width && in update_renderbuffer_surface()
70 u_minify(resource->height0, level) == rtt_height) { in update_renderbuffer_surface()
Dst_cb_texture.c1132 assert(u_minify(stImage->pt->width0, src_level) == stImage->base.Width); in copy_image_data_to_texture()
1134 u_minify(stImage->pt->height0, src_level) == stImage->base.Height); in copy_image_data_to_texture()
1136 u_minify(stImage->pt->depth0, src_level) == stImage->base.Depth); in copy_image_data_to_texture()
1288 (stImage->base.Width == u_minify(stObj->width0, level) && in st_finalize_texture()
1289 stImage->base.Height == u_minify(stObj->height0, level) && in st_finalize_texture()
1290 stImage->base.Depth == u_minify(stObj->depth0, level))) { in st_finalize_texture()
/external/mesa3d/src/gallium/drivers/softpipe/
Dsp_texture.c81 width = u_minify(width, 1); in softpipe_resource_layout()
82 height = u_minify(height, 1); in softpipe_resource_layout()
83 depth = u_minify(depth, 1); in softpipe_resource_layout()
233 const unsigned hgt = u_minify(spr->base.height0, level); in sp_get_tex_image_offset()
273 ps->width = u_minify(pt->width0, level); in softpipe_create_surface()
274 ps->height = u_minify(pt->height0, level); in softpipe_create_surface()
325 assert(box->x + box->width <= u_minify(resource->width0, level)); in softpipe_get_transfer()
330 assert(box->y + box->height <= u_minify(resource->height0, level)); in softpipe_get_transfer()
338 assert(box->z + box->depth <= (u_minify(resource->depth0, level))); in softpipe_get_transfer()
367 const unsigned hgt = u_minify(spr->base.height0, level); in softpipe_get_transfer()
Dsp_tex_sample.c496 float rho = MAX2(dsdx, dsdy) * u_minify(texture->width0, samp->view->u.tex.first_level); in compute_lambda_1d()
513 float maxx = MAX2(dsdx, dsdy) * u_minify(texture->width0, samp->view->u.tex.first_level); in compute_lambda_2d()
514 float maxy = MAX2(dtdx, dtdy) * u_minify(texture->height0, samp->view->u.tex.first_level); in compute_lambda_2d()
534 float maxx = MAX2(dsdx, dsdy) * u_minify(texture->width0, samp->view->u.tex.first_level); in compute_lambda_3d()
535 float maxy = MAX2(dtdx, dtdy) * u_minify(texture->height0, samp->view->u.tex.first_level); in compute_lambda_3d()
536 float maxz = MAX2(dpdx, dpdy) * u_minify(texture->depth0, samp->view->u.tex.first_level); in compute_lambda_3d()
600 if (x < 0 || x >= (int) u_minify(texture->width0, level) || in get_texel_2d()
601 y < 0 || y >= (int) u_minify(texture->height0, level)) { in get_texel_2d()
693 if (x < 0 || x >= (int) u_minify(texture->width0, level) || in get_texel_3d()
694 y < 0 || y >= (int) u_minify(texture->height0, level) || in get_texel_3d()
[all …]
Dsp_tex_tile_cache.c268 width = u_minify(tc->texture->width0, addr.bits.level); in sp_find_cached_tile_tex()
274 height = u_minify(tc->texture->height0, addr.bits.level); in sp_find_cached_tile_tex()
/external/mesa3d/src/gallium/drivers/svga/
Dsvga_surface.c126 key->size.width = u_minify(tex->b.b.width0, start_mip); in svga_texture_view_surface()
127 key->size.height = u_minify(tex->b.b.height0, start_mip); in svga_texture_view_surface()
128 key->size.depth = zslice_pick < 0 ? u_minify(tex->b.b.depth0, start_mip) : 1; in svga_texture_view_surface()
163 u_minify(tex->b.b.depth0, i + start_mip) : in svga_texture_view_surface()
172 u_minify(tex->b.b.width0, i + start_mip), in svga_texture_view_surface()
173 u_minify(tex->b.b.height0, i + start_mip), in svga_texture_view_surface()
220 s->base.width = u_minify(pt->width0, surf_tmpl->u.tex.level); in svga_create_surface()
221 s->base.height = u_minify(pt->height0, surf_tmpl->u.tex.level); in svga_create_surface()
381 u_minify(tex->b.b.width0, surf->u.tex.level), in svga_propagate_surface()
382 u_minify(tex->b.b.height0, surf->u.tex.level), 1); in svga_propagate_surface()
Dsvga_sampler_view.c195 u_minify(tex->b.b.width0, i), in svga_validate_sampler_view()
196 u_minify(tex->b.b.height0, i), in svga_validate_sampler_view()
197 u_minify(tex->b.b.depth0, i)); in svga_validate_sampler_view()
Dsvga_screen_cache.c63 unsigned w = u_minify(key->size.width, i); in surface_size()
64 unsigned h = u_minify(key->size.height, i); in surface_size()
65 unsigned d = u_minify(key->size.depth, i); in surface_size()
/external/mesa3d/src/gallium/drivers/r300/
Dr300_texture_desc.c101 texdim = u_minify(tex->tex.width0, level); in r300_texture_macro_switch()
103 texdim = u_minify(tex->tex.height0, level); in r300_texture_macro_switch()
137 width = u_minify(tex->tex.width0, level); in r300_texture_get_stride()
161 height = u_minify(tex->tex.height0, level); in r300_texture_get_nblocksy()
258 size = layer_size * u_minify(tex->tex.depth0, i); in r300_setup_miptree()
268 i, u_minify(tex->tex.width0, i), u_minify(tex->tex.height0, i), in r300_setup_miptree()
269 u_minify(tex->tex.depth0, i), stride, tex->tex.size_in_bytes, in r300_setup_miptree()
373 height = u_minify(tex->b.b.height0, i); in r300_setup_hyperz_properties()
Dr300_texture.c814 width = u_minify(width0_override, level); in r300_texture_setup_format_state()
815 height = u_minify(height0_override, level); in r300_texture_setup_format_state()
816 depth = u_minify(desc->depth0, level); in r300_texture_setup_format_state()
1091 surface->base.width = u_minify(width0_override, level); in r300_create_surface_custom()
1092 surface->base.height = u_minify(height0_override, level); in r300_create_surface_custom()
/external/mesa3d/src/gallium/drivers/nv50/
Dnv50_miptree.c241 w = u_minify(w, 1); in nv50_miptree_init_layout_tiled()
242 h = u_minify(h, 1); in nv50_miptree_init_layout_tiled()
243 d = u_minify(d, 1); in nv50_miptree_init_layout_tiled()
355 u_minify(pt->height0, l)); in nv50_mt_zslice_offset()
388 ns->width = u_minify(mt->base.base.width0, ps->u.tex.level); in nv50_surface_from_miptree()
389 ns->height = u_minify(mt->base.base.height0, ps->u.tex.level); in nv50_surface_from_miptree()
Dnv50_transfer.c21 const unsigned w = u_minify(res->width0, l); in nv50_m2mf_rect_setup()
22 const unsigned h = u_minify(res->height0, l); in nv50_m2mf_rect_setup()
44 rect->depth = u_minify(res->depth0, l); in nv50_m2mf_rect_setup()
/external/mesa3d/src/gallium/drivers/nv30/
Dnv30_miptree.c95 rect->w = u_minify(pt->width0, level) << mt->ms_x; in define_rect()
97 rect->h = u_minify(pt->height0, level) << mt->ms_y; in define_rect()
103 rect->d = u_minify(pt->depth0, level); in define_rect()
335 w = u_minify(w, 1); in nv30_miptree_create()
336 h = u_minify(h, 1); in nv30_miptree_create()
337 d = u_minify(d, 1); in nv30_miptree_create()
419 ns->width = u_minify(pt->width0, ps->u.tex.level); in nv30_miptree_surface_new()
420 ns->height = u_minify(pt->height0, ps->u.tex.level); in nv30_miptree_surface_new()
/external/mesa3d/src/gallium/drivers/i915/
Di915_resource_texture.c353 width = u_minify(width, 1); in i915_texture_layout_2d()
354 height = u_minify(height, 1); in i915_texture_layout_2d()
382 width = u_minify(width, 1); in i915_texture_layout_3d()
383 height = u_minify(height, 1); in i915_texture_layout_3d()
394 depth = u_minify(depth, 1); in i915_texture_layout_3d()
461 align_nblocksx(pt->format, u_minify(pt->width0, 1), align_x) + in i945_texture_layout_2d()
462 util_format_get_nblocksx(pt->format, u_minify(pt->width0, 2)); in i945_texture_layout_2d()
490 width = u_minify(width, 1); in i945_texture_layout_2d()
491 height = u_minify(height, 1); in i945_texture_layout_2d()
545 width = u_minify(width, 1); in i945_texture_layout_3d()
[all …]
Di915_surface.c296 ps->width = u_minify(pt->width0, surf_tmpl->u.tex.level); in i915_create_surface()
297 ps->height = u_minify(pt->height0, surf_tmpl->u.tex.level); in i915_create_surface()
/external/mesa3d/src/gallium/drivers/nvc0/
Dnvc0_miptree.c246 w = u_minify(w, 1); in nvc0_miptree_init_layout_tiled()
247 h = u_minify(h, 1); in nvc0_miptree_init_layout_tiled()
248 d = u_minify(d, 1); in nvc0_miptree_init_layout_tiled()
336 u_minify(pt->height0, l)); in nvc0_mt_zslice_offset()
/external/mesa3d/src/gallium/state_trackers/d3d1x/gd3d11/
Dd3d11.cpp113 box.width = u_minify(resource->width0, level); in d3d11_to_pipe_box()
114 box.height = u_minify(resource->height0, level); in d3d11_to_pipe_box()
115 box.depth = u_minify(resource->depth0, level); in d3d11_to_pipe_box()
/external/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_texture.c178 width = u_minify(width, 1); in llvmpipe_texture_layout()
179 height = u_minify(height, 1); in llvmpipe_texture_layout()
180 depth = u_minify(depth, 1); in llvmpipe_texture_layout()
377 assert(layer < (u_minify(resource->depth0, level) + resource->array_size - 1)); in llvmpipe_resource_map()
570 ps->width = u_minify(pt->width0, surf_tmpl->u.tex.level); in llvmpipe_create_surface()
571 ps->height = u_minify(pt->height0, surf_tmpl->u.tex.level); in llvmpipe_create_surface()
794 const unsigned width = u_minify(lpr->base.width0, level); in tex_image_face_size()
795 const unsigned height = u_minify(lpr->base.height0, level); in tex_image_face_size()
1037 const unsigned width = u_minify(lpr->base.width0, level); in llvmpipe_get_texture_image()
1038 const unsigned height = u_minify(lpr->base.height0, level); in llvmpipe_get_texture_image()
/external/mesa3d/src/gallium/auxiliary/util/
Du_gen_mipmap.c1116 u_minify(pt->width0, srcLevel), in make_1d_mipmap()
1117 u_minify(pt->height0, srcLevel)); in make_1d_mipmap()
1120 u_minify(pt->width0, dstLevel), in make_1d_mipmap()
1121 u_minify(pt->height0, dstLevel)); in make_1d_mipmap()
1157 u_minify(pt->width0, srcLevel), in make_2d_mipmap()
1158 u_minify(pt->height0, srcLevel)); in make_2d_mipmap()
1161 u_minify(pt->width0, dstLevel), in make_2d_mipmap()
1162 u_minify(pt->height0, dstLevel)); in make_2d_mipmap()
1203 src_box.width = u_minify(pt->width0, srcLevel); in make_3d_mipmap()
1204 src_box.height = u_minify(pt->height0, srcLevel); in make_3d_mipmap()
[all …]
Du_blit.c639 s0 /= (float)(u_minify(sampler_view->texture->width0, src_level)); in util_blit_pixels()
640 s1 /= (float)(u_minify(sampler_view->texture->width0, src_level)); in util_blit_pixels()
641 t0 /= (float)(u_minify(sampler_view->texture->height0, src_level)); in util_blit_pixels()
642 t1 /= (float)(u_minify(sampler_view->texture->height0, src_level)); in util_blit_pixels()
845 float w = (float) u_minify(tex->width0, level); in util_blit_pixels_tex()
846 float h = (float) u_minify(tex->height0, level); in util_blit_pixels_tex()
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()
Du_blitter.c565 out[0] = x1 / (float)u_minify(src_width0, level); in get_texcoords()
566 out[1] = y1 / (float)u_minify(src_height0, level); in get_texcoords()
567 out[2] = x2 / (float)u_minify(src_width0, level); in get_texcoords()
568 out[3] = y2 / (float)u_minify(src_height0, level); in get_texcoords()
620 float r = layer / (float)u_minify(src->texture->depth0, in blitter_set_texcoords()
1019 src->target == PIPE_TEXTURE_3D ? u_minify(src->depth0, srclevel) - 1 in util_blitter_default_src_texture()
/external/mesa3d/src/gallium/drivers/r600/
Dr600_blit.c116 return u_minify(r->depth0, level) - 1; in u_max_layer()
388 unsigned dst_width = u_minify(info->dst.res->width0, info->dst.level); in is_simple_resolve()
389 unsigned dst_height = u_minify(info->dst.res->height0, info->dst.level); in is_simple_resolve()

12