Home
last modified time | relevance | path

Searched refs:nr_samples (Results 1 – 25 of 202) sorted by relevance

123456789

/third_party/mesa3d/src/mesa/state_tracker/
Dst_cb_eglimage.c44 unsigned nr_samples, unsigned nr_storage_samples, in is_format_supported() argument
48 nr_samples, nr_storage_samples, in is_format_supported()
61 PIPE_TEXTURE_2D, nr_samples, in is_format_supported()
66 PIPE_TEXTURE_2D, nr_samples, in is_format_supported()
69 PIPE_TEXTURE_2D, nr_samples, in is_format_supported()
76 PIPE_TEXTURE_2D, nr_samples, in is_format_supported()
79 PIPE_TEXTURE_2D, nr_samples, in is_format_supported()
86 PIPE_TEXTURE_2D, nr_samples, in is_format_supported()
89 PIPE_TEXTURE_2D, nr_samples, in is_format_supported()
94 PIPE_TEXTURE_2D, nr_samples, in is_format_supported()
[all …]
/third_party/mesa3d/src/gallium/drivers/r300/
Dr300_texture_desc.c90 if (tex->b.nr_samples > 1) { in r300_texture_macro_switch()
94 tile = r300_get_pixel_alignment(tex->b.format, tex->b.nr_samples, in r300_texture_macro_switch()
137 tex->b.nr_samples, in r300_texture_get_stride()
169 tex->b.nr_samples, in r300_texture_get_nblocksy()
247 if (base->nr_samples > 1) { in r300_setup_miptree()
248 layer_size *= base->nr_samples; in r300_setup_miptree()
296 first_level_valid = tex->b.nr_samples <= 1 && in r300_setup_cbzb_flags()
374 tex->b.nr_samples <= 1 ? 8 : 4; in r300_setup_hyperz_properties()
426 if (tex->b.nr_samples <= 1 || in r300_setup_cmask_properties()
477 if (tex->b.nr_samples > 1) { in r300_setup_tiling()
[all …]
Dr300_blit.c563 if (src->nr_samples > 1 || dst->nr_samples > 1) { in r300_resource_copy_region()
579 src->nr_samples, src->nr_storage_samples, in r300_resource_copy_region()
582 dst->nr_samples, dst->nr_storage_samples, in r300_resource_copy_region()
648 dst->target, dst->nr_samples, in r300_resource_copy_region()
652 src->target, src->nr_samples, in r300_resource_copy_region()
691 return info->src.resource->nr_samples > 1 && in r300_is_simple_msaa_resolve()
692 info->dst.resource->nr_samples <= 1 && in r300_is_simple_msaa_resolve()
825 if (info.src.resource->nr_samples > 1 && in r300_blit()
832 if (info.src.resource->nr_samples > 1) { in r300_blit()
841 if (info.dst.resource->nr_samples > 1) { in r300_blit()
/third_party/boost/boost/accumulators/statistics/
Drolling_variance.hpp61 size_t nr_samples = rolling_count(args); in result() local
62 if (nr_samples < 2) return result_type(); in result()
63 return nr_samples*(rolling_moment<2>(args) - mean*mean)/(nr_samples-1); in result()
141 size_t nr_samples = rolling_count(args); in result() local
142 if (nr_samples < 2) return result_type(); in result()
143 return numeric::fdiv(sum_of_squares_,(nr_samples-1)); in result()
/third_party/mesa3d/src/freedreno/fdl/
Dfd5_layout.c34 uint32_t nr_samples, uint32_t width0, uint32_t height0, in fdl5_layout() argument
38 assert(nr_samples > 0); in fdl5_layout()
44 layout->cpp *= nr_samples; in fdl5_layout()
48 layout->nr_samples = nr_samples; in fdl5_layout()
Dfd_layout_test.c50 MAX2(testcase->layout.nr_samples, 1), testcase->layout.width0, in fdl_test_layout()
57 MAX2(testcase->layout.nr_samples, 1), testcase->layout.width0, in fdl_test_layout()
78 layout.height0, layout.depth0, layout.nr_samples, l, in fdl_test_layout()
85 layout.height0, layout.depth0, layout.nr_samples, l, in fdl_test_layout()
94 layout.height0, layout.depth0, layout.nr_samples, l, in fdl_test_layout()
102 layout.height0, layout.depth0, layout.nr_samples, l, in fdl_test_layout()
Dfd6_layout.c99 uint32_t nr_samples, uint32_t width0, uint32_t height0, in fdl6_layout() argument
106 assert(nr_samples > 0); in fdl6_layout()
112 layout->cpp *= nr_samples; in fdl6_layout()
116 layout->nr_samples = nr_samples; in fdl6_layout()
Dfreedreno_layout.h127 uint32_t nr_samples; member
236 uint32_t nr_samples, uint32_t width0, uint32_t height0,
241 uint32_t nr_samples, uint32_t width0, uint32_t height0,
Dfreedreno_layout.c42 layout->nr_samples = 1; in fdl_layout_buffer()
71 layout->cpp, layout->nr_samples, level, fdl_pitch(layout, level), in fdl_dump_layout()
/third_party/mesa3d/src/gallium/drivers/r600/
Dcayman_msaa.c144 static void cayman_emit_msaa_sample_locs(struct radeon_cmdbuf *cs, int nr_samples) in cayman_emit_msaa_sample_locs() argument
146 switch (nr_samples) { in cayman_emit_msaa_sample_locs()
205 void cayman_emit_msaa_state(struct radeon_cmdbuf *cs, int nr_samples, in cayman_emit_msaa_state() argument
208 int setup_samples = nr_samples > 1 ? nr_samples : in cayman_emit_msaa_state()
222 if (nr_samples > 1) { in cayman_emit_msaa_state()
223 cayman_emit_msaa_sample_locs(cs, nr_samples); in cayman_emit_msaa_state()
246 if (nr_samples > 1) { in cayman_emit_msaa_state()
/third_party/mesa3d/src/panfrost/lib/
Dpan_texture.c145 unsigned array_size, unsigned nr_samples, in pan_image_layout_init() argument
153 (depth > 1 || nr_samples > 1 || array_size > 1 || in pan_image_layout_init()
170 layout->nr_samples = nr_samples; in pan_image_layout_init()
178 assert(depth == 1 || nr_samples == 1); in pan_image_layout_init()
267 slice_one_size * effective_depth * nr_samples; in pan_image_layout_init()
456 unsigned nr_samples, in panfrost_texture_num_elements() argument
469 unsigned num_elements = levels * layers * faces * MAX2(nr_samples, 1); in panfrost_texture_num_elements()
493 iview->image->layout.nr_samples, in GENX()
512 unsigned nr_samples) in panfrost_surface_iter_begin() argument
521 iter->last_sample = nr_samples - 1; in panfrost_surface_iter_begin()
[all …]
Dpan_cs.c57 if (view->image->layout.nr_samples > 1) { in mali_sampling_mode()
58 assert(view->nr_samples == view->image->layout.nr_samples); in mali_sampling_mode()
63 if (view->nr_samples > view->image->layout.nr_samples) { in mali_sampling_mode()
64 assert(view->image->layout.nr_samples == 1); in mali_sampling_mode()
68 assert(view->nr_samples == view->image->layout.nr_samples); in mali_sampling_mode()
69 assert(view->nr_samples == 1); in mali_sampling_mode()
177 (s->image->layout.nr_samples > 1) ? in pan_prepare_s()
224 (zs->image->layout.nr_samples > 1) ? in pan_prepare_zs()
305 rt->nr_samples * (*tile_size); in pan_internal_cbuf_size()
427 (rt->image->layout.nr_samples > 1) ? in pan_prepare_rt()
[all …]
Dpan_texture.h92 unsigned nr_samples; member
130 unsigned nr_samples; member
206 unsigned array_size, unsigned nr_samples,
/third_party/mesa3d/src/gallium/drivers/zink/
Dzink_surface.c140 surface->base.nr_samples = templ->nr_samples; in create_surface()
181 surface->base.nr_samples = 0; in zink_get_surface()
229 if (templ->nr_samples) { in zink_create_surface()
232 rtempl.nr_samples = templ->nr_samples; in zink_create_surface()
282 if (!psurface->nr_samples) { in zink_destroy_surface()
380 templ.nr_samples = samples; in zink_surface_create_null()
387 surf_templ.nr_samples = 0; in zink_surface_create_null()
/third_party/mesa3d/src/panfrost/vulkan/
Dpanvk_vX_meta_blit.c42 .nr_samples = blitinfo->dst.planes[0].image->layout.nr_samples, in panvk_meta_blit()
58 .nr_samples = blitinfo->dst.planes[0].image->layout.nr_samples, in panvk_meta_blit()
93 views[1].nr_samples = blitinfo->dst.planes[1].image->layout.nr_samples; in panvk_meta_blit()
/third_party/mesa3d/src/gallium/drivers/etnaviv/
Detnaviv_resource.c98 ts_compress_fmt = (screen->specs.v4_compression || rsc->base.nr_samples > 1) ? in etna_screen_resource_alloc_ts()
148 if (!translate_samples_to_xyscale(templat->nr_samples, NULL, NULL)) in etna_screen_can_create_resource()
218 templat->last_level, templat->nr_samples, templat->usage, in etna_resource_alloc()
222 int nr_samples = templat->nr_samples; in etna_resource_alloc() local
226 nr_samples = 2; in etna_resource_alloc()
228 nr_samples = 4; in etna_resource_alloc()
232 if (!translate_samples_to_xyscale(nr_samples, &msaa_xscale, &msaa_yscale)) { in etna_resource_alloc()
265 rsc->base.nr_samples = nr_samples; in etna_resource_alloc()
500 tmpl->nr_samples, tmpl->usage, tmpl->bind, tmpl->flags); in etna_resource_from_handle()
/third_party/mesa3d/src/gallium/auxiliary/util/
Du_inlines.h667 unsigned nr_samples) in util_pipe_tex_to_tgsi_tex() argument
674 assert(nr_samples <= 1); in util_pipe_tex_to_tgsi_tex()
678 return nr_samples > 1 ? TGSI_TEXTURE_2D_MSAA : TGSI_TEXTURE_2D; in util_pipe_tex_to_tgsi_tex()
681 assert(nr_samples <= 1); in util_pipe_tex_to_tgsi_tex()
685 assert(nr_samples <= 1); in util_pipe_tex_to_tgsi_tex()
689 assert(nr_samples <= 1); in util_pipe_tex_to_tgsi_tex()
693 assert(nr_samples <= 1); in util_pipe_tex_to_tgsi_tex()
697 return nr_samples > 1 ? TGSI_TEXTURE_2D_ARRAY_MSAA : in util_pipe_tex_to_tgsi_tex()
910 return res->nr_samples > 0 ? res->nr_samples : 1; in util_res_sample_count()
Du_framebuffer.c238 return MAX3(1, fb->cbufs[i]->texture->nr_samples, in util_framebuffer_get_num_samples()
239 fb->cbufs[i]->nr_samples); in util_framebuffer_get_num_samples()
243 return MAX3(1, fb->zsbuf->texture->nr_samples, in util_framebuffer_get_num_samples()
244 fb->zsbuf->nr_samples); in util_framebuffer_get_num_samples()
/third_party/mesa3d/src/gallium/winsys/radeon/drm/
Dradeon_drm_surface.c109 surf_drm->nsamples = tex->nr_samples ? tex->nr_samples : 1; in surf_winsys_to_drm()
375 tex->nr_samples >= 2 && in radeon_winsys_surface_init()
382 templ.nr_samples = 1; in radeon_winsys_surface_init()
385 switch (tex->nr_samples) { in radeon_winsys_surface_init()
421 (tex->nr_samples <= 1 || surf_ws->fmask_size)) { in radeon_winsys_surface_init()
447 assert(tex->nr_samples >= 2); in radeon_winsys_surface_init()
453 if (surf_ws->cmask_size && tex->nr_samples >= 2) { in radeon_winsys_surface_init()
/third_party/mesa3d/src/gallium/drivers/d3d12/
Dd3d12_blit.cpp57 return info->src.resource->nr_samples > 1 && in is_resolve()
58 info->dst.resource->nr_samples <= 1; in is_resolve()
181 MAX2(info->src.resource->nr_samples, 1) != MAX2(info->dst.resource->nr_samples, 1)) { in direct_copy_supported()
228 info->src.resource->nr_samples > 1) { in direct_copy_supported()
337 dst->base.nr_samples <= 1 && in copy_subregion_no_barriers()
338 src->base.nr_samples <= 1)); in copy_subregion_no_barriers()
356 dst->base.nr_samples <= 1 && in copy_subregion_no_barriers()
357 src->base.nr_samples <= 1); in copy_subregion_no_barriers()
487 templ.nr_samples = 1; in create_staging_resource()
607 tpl.nr_samples = info->dst.resource->nr_samples; in create_tmp_resource()
[all …]
Dd3d12_surface.cpp95 desc.ViewDimension = view_dsv_dimension(pres->target, pres->nr_samples); in initialize_dsv()
162 desc.ViewDimension = view_rtv_dimension(pres->target, pres->nr_samples); in initialize_rtv()
238 tpl->nr_samples, tpl->nr_samples,bind)) in d3d12_create_surface()
331 templ.nr_samples = src->nr_samples; in d3d12_surface_update_pre_draw()
/third_party/mesa3d/src/gallium/drivers/freedreno/a6xx/
Dfd6_blend.h68 fd6_blend_variant(struct pipe_blend_state *cso, unsigned nr_samples, in fd6_blend_variant() argument
72 unsigned mask = BITFIELD_MASK(nr_samples); in fd6_blend_variant()
/third_party/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_surface.c54 for (unsigned i = 0; i < src->nr_samples; i++) { in lp_resource_copy_ms()
105 if (dst->nr_samples > 1 && in lp_resource_copy()
106 dst->nr_samples == src->nr_samples) { in lp_resource_copy()
314 if (dst->texture->nr_samples > 1) { in llvmpipe_clear_render_target()
382 if (dst->texture->nr_samples > 1) { in llvmpipe_clear_depth_stencil()
409 if (tex->nr_samples <= 1) { in llvmpipe_clear_texture()
/third_party/mesa3d/src/gallium/drivers/freedreno/
Dfreedreno_surface.c53 psurf->nr_samples = surf_tmpl->nr_samples; in fd_create_surface()
/third_party/mesa3d/src/gallium/drivers/nouveau/nvc0/
Dnvc0_miptree.c190 const unsigned ms = util_logbase2(mt->base.base.nr_samples); in nvc0_mt_choose_storage_type()
203 switch (mt->base.base.nr_samples) { in nvc0_miptree_init_ms_mode()
223 NOUVEAU_ERR("invalid nr_samples: %u\n", mt->base.base.nr_samples); in nvc0_miptree_init_ms_mode()
319 mt->base.base.nr_samples, in nvc0_miptree_get_modifier()
325 if (mt->base.base.nr_samples > 1) in nvc0_miptree_get_modifier()
471 pt->nr_samples <= 1) in nvc0_miptree_create()

123456789