Home
last modified time | relevance | path

Searched refs:zs (Results 1 - 25 of 55) sorted by relevance

123

/third_party/zlib/contrib/iostream2/
H A Dzstream.h115 inline int read(izstream& zs, T* x, Items items) { in read() argument
116 return ::gzread(zs.fp(), x, items*sizeof(T)); in read()
123 inline izstream& operator>(izstream& zs, T& x) { in operator >() argument
124 ::gzread(zs.fp(), &x, sizeof(T)); in operator >()
125 return zs; in operator >()
129 inline zstringlen::zstringlen(izstream& zs) { in zstringlen() argument
130 zs > val.byte; in zstringlen()
131 if (val.byte == 255) zs > val.word; in zstringlen()
138 inline izstream& operator>(izstream& zs, char* x) { in operator >() argument
139 zstringlen len(zs); in operator >()
145 read_string(izstream& zs) read_string() argument
264 write(ozstream& zs, const T* x, Items items) write() argument
272 operator <(ozstream& zs, const T& x) operator <() argument
277 zstringlen(ozstream& zs, const char* x) zstringlen() argument
[all...]
/third_party/mesa3d/src/panfrost/lib/
H A Dpan_cs.c183 const struct pan_image_view *s = fb->zs.view.s; in pan_prepare_s()
210 const struct pan_image_view *zs = fb->zs.view.zs; in pan_prepare_zs() local
212 if (!zs) in pan_prepare_zs()
215 unsigned level = zs->first_level; in pan_prepare_zs()
217 ext->zs_msaa = mali_sampling_mode(zs); in pan_prepare_zs()
220 pan_iview_get_surface(zs, 0, 0, 0, &surf); in pan_prepare_zs()
221 UNUSED const struct pan_image_slice_layout *slice = &zs->image->layout.slices[level]; in pan_prepare_zs()
223 if (drm_is_afbc(zs in pan_prepare_zs()
902 const struct pan_image_view *zs = fb->zs.view.zs; pan_emit_fbd() local
[all...]
H A Dpan_blitter.c238 UNUSED bool zs = (views->dst_z || views->dst_s); in pan_blitter_emit_rsd() local
262 if (zs) { in pan_blitter_emit_rsd()
279 cfg.properties.allow_forward_pixel_to_kill = !zs; in pan_blitter_emit_rsd()
282 cfg.properties.allow_forward_pixel_to_be_killed = !zs; in pan_blitter_emit_rsd()
289 cfg.properties.force_early_z = !zs; in pan_blitter_emit_rsd()
806 pan_preload_get_views(const struct pan_fb_info *fb, bool zs, struct pan_image_view *patched_s) in pan_preload_get_views() argument
810 if (zs) { in pan_preload_get_views()
811 if (fb->zs.preload.z) in pan_preload_get_views()
812 views.src_z = views.dst_z = fb->zs.view.zs; in pan_preload_get_views()
847 pan_preload_needed(const struct pan_fb_info *fb, bool zs) pan_preload_needed() argument
977 pan_preload_emit_textures(struct pan_pool *pool, const struct pan_fb_info *fb, bool zs, unsigned *tex_count_out) pan_preload_emit_textures() argument
1075 pan_preload_emit_dcd(struct pan_pool *pool, struct pan_fb_info *fb, bool zs, mali_ptr coordinates, mali_ptr tsd, void *out, bool always_write) pan_preload_emit_dcd() argument
1252 pan_preload_emit_pre_frame_dcd(struct pan_pool *desc_pool, struct pan_fb_info *fb, bool zs, mali_ptr coords, mali_ptr tsd) pan_preload_emit_pre_frame_dcd() argument
1318 pan_preload_emit_tiler_job(struct pan_pool *desc_pool, struct pan_scoreboard *scoreboard, struct pan_fb_info *fb, bool zs, mali_ptr coords, mali_ptr tsd) pan_preload_emit_tiler_job() argument
1353 pan_preload_fb_part(struct pan_pool *pool, struct pan_scoreboard *scoreboard, struct pan_fb_info *fb, bool zs, mali_ptr coords, mali_ptr tsd, mali_ptr tiler) pan_preload_fb_part() argument
[all...]
H A Dpan_cs.h50 const struct pan_image_view *zs, *s; member
110 struct pan_fb_zs_attachment zs; member
/third_party/mesa3d/src/gallium/drivers/panfrost/
H A Dpan_job.c471 struct pan_image_view *zs, in panfrost_batch_to_fb_info()
477 memset(zs, 0, sizeof(*zs)); in panfrost_batch_to_fb_info()
539 zs->format = surf->format == PIPE_FORMAT_Z32_FLOAT_S8X24_UINT ? in panfrost_batch_to_fb_info()
541 zs->dim = MALI_TEXTURE_DIMENSION_2D; in panfrost_batch_to_fb_info()
542 zs->last_level = zs->first_level = surf->u.tex.level; in panfrost_batch_to_fb_info()
543 zs->first_layer = surf->u.tex.first_layer; in panfrost_batch_to_fb_info()
544 zs->last_layer = surf->u.tex.last_layer; in panfrost_batch_to_fb_info()
545 zs in panfrost_batch_to_fb_info()
468 panfrost_batch_to_fb_info(const struct panfrost_batch *batch, struct pan_fb_info *fb, struct pan_image_view *rts, struct pan_image_view *zs, struct pan_image_view *s, bool reserve) panfrost_batch_to_fb_info() argument
817 struct pan_image_view rts[8], zs, s; panfrost_batch_submit() local
[all...]
/third_party/mesa3d/src/gallium/drivers/zink/
H A Dzink_compiler.h116 zink_shader_compile(struct zink_screen *screen, struct zink_shader *zs, nir_shader *nir, const struct zink_shader_key *key);
118 zink_shader_spirv_compile(struct zink_screen *screen, struct zink_shader *zs, struct spirv_shader *spirv);
130 zink_shader_tcs_compile(struct zink_screen *screen, struct zink_shader *zs, unsigned patch_vertices);
135 zink_shader_descriptor_is_buffer(struct zink_shader *zs, enum zink_descriptor_type type, unsigned i) in zink_shader_descriptor_is_buffer() argument
137 return zs->bindings[type][i].type == VK_DESCRIPTOR_TYPE_STORAGE_TEXEL_BUFFER || in zink_shader_descriptor_is_buffer()
138 zs->bindings[type][i].type == VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; in zink_shader_descriptor_is_buffer()
H A Dzink_program.c93 struct zink_shader *zs, struct zink_gfx_program *prog, in get_shader_module_for_stage()
96 gl_shader_stage stage = zs->nir->info.stage; in get_shader_module_for_stage()
103 if (pstage == PIPE_SHADER_TESS_CTRL && !zs->is_generated) { in get_shader_module_for_stage()
107 if (ctx && zs->nir->info.num_inlinable_uniforms && in get_shader_module_for_stage()
109 if (zs->can_inline && (screen->is_cpu || prog->inlined_variant_count[pstage] < ZINK_MAX_INLINED_VARIANTS)) in get_shader_module_for_stage()
110 inline_size = zs->nir->info.num_inlinable_uniforms; in get_shader_module_for_stage()
132 if (pstage == PIPE_SHADER_TESS_CTRL && zs->is_generated && zs->spirv) { in get_shader_module_for_stage()
134 mod = zink_shader_tcs_compile(screen, zs, patch_vertices); in get_shader_module_for_stage()
136 mod = zink_shader_compile(screen, zs, pro in get_shader_module_for_stage()
92 get_shader_module_for_stage(struct zink_context *ctx, struct zink_screen *screen, struct zink_shader *zs, struct zink_gfx_program *prog, struct zink_gfx_pipeline_state *state) get_shader_module_for_stage() argument
292 struct zink_shader *zs = comp->shader; update_cs_shader_module() local
514 struct zink_shader *zs = comp->shader; zink_program_update_compute_pipeline_state() local
584 struct zink_shader *zs = NULL; zink_program_get_descriptor_usage() local
620 struct zink_shader *zs = NULL; zink_program_descriptor_is_buffer() local
642 get_num_bindings(struct zink_shader *zs, enum zink_descriptor_type type) get_num_bindings() argument
1035 struct zink_shader *zs = cso; zink_bind_vs_state() local
[all...]
H A Dzink_compiler.c480 get_bo_vars(struct zink_shader *zs, nir_shader *shader) in get_bo_vars() argument
484 if (zs->ubos_used) in get_bo_vars()
485 bo.first_ubo = ffs(zs->ubos_used & ~BITFIELD_BIT(0)) - 2; in get_bo_vars()
487 if (zs->ssbos_used) in get_bo_vars()
488 bo.first_ssbo = ffs(zs->ssbos_used) - 1; in get_bo_vars()
570 bound_bo_access(nir_shader *shader, struct zink_shader *zs) in bound_bo_access() argument
572 struct bo_vars bo = get_bo_vars(zs, shader); in bound_bo_access()
577 optimize_nir(struct nir_shader *s, struct zink_shader *zs) in optimize_nir() argument
602 if (zs) in optimize_nir()
603 NIR_PASS(progress, s, bound_bo_access, zs); in optimize_nir()
821 update_so_info(struct zink_shader *zs, const struct pipe_stream_output_info *so_info, uint64_t outputs_written, bool have_psiz) update_so_info() argument
1364 remove_bo_access(nir_shader *shader, struct zink_shader *zs) remove_bo_access() argument
1924 zink_shader_spirv_compile(struct zink_screen *screen, struct zink_shader *zs, struct spirv_shader *spirv) zink_shader_spirv_compile() argument
2057 zink_shader_compile(struct zink_screen *screen, struct zink_shader *zs, nir_shader *base_nir, const struct zink_shader_key *key) zink_shader_compile() argument
2219 unbreak_bos(nir_shader *shader, struct zink_shader *zs, bool needs_size) unbreak_bos() argument
2327 analyze_io(struct zink_shader *zs, nir_shader *shader) analyze_io() argument
2742 scan_nir(struct zink_screen *screen, nir_shader *shader, struct zink_shader *zs) scan_nir() argument
3293 zink_shader_tcs_compile(struct zink_screen *screen, struct zink_shader *zs, unsigned patch_vertices) zink_shader_tcs_compile() argument
[all...]
H A Dzink_descriptors.c1613 calc_descriptor_state_hash_ubo(struct zink_context *ctx, struct zink_shader *zs, enum pipe_shader_type shader, int i, int idx, uint32_t hash, bool need_offset) in calc_descriptor_state_hash_ubo() argument
1615 for (unsigned k = 0; k < zs->bindings[ZINK_DESCRIPTOR_TYPE_UBO][i].size; k++) { in calc_descriptor_state_hash_ubo()
1629 calc_descriptor_state_hash_ssbo(struct zink_context *ctx, struct zink_shader *zs, enum pipe_shader_type shader, int i, int idx, uint32_t hash) in calc_descriptor_state_hash_ssbo() argument
1631 for (unsigned k = 0; k < zs->bindings[ZINK_DESCRIPTOR_TYPE_SSBO][i].size; k++) { in calc_descriptor_state_hash_ssbo()
1650 calc_descriptor_state_hash_sampler(struct zink_context *ctx, struct zink_shader *zs, enum pipe_shader_type shader, int i, int idx, uint32_t hash) in calc_descriptor_state_hash_sampler() argument
1652 for (unsigned k = 0; k < zs->bindings[ZINK_DESCRIPTOR_TYPE_SAMPLER_VIEW][i].size; k++) { in calc_descriptor_state_hash_sampler()
1654 bool is_buffer = zink_shader_descriptor_is_buffer(zs, ZINK_DESCRIPTOR_TYPE_SAMPLER_VIEW, i); in calc_descriptor_state_hash_sampler()
1672 calc_descriptor_state_hash_image(struct zink_context *ctx, struct zink_shader *zs, enum pipe_shader_type shader, int i, int idx, uint32_t hash) in calc_descriptor_state_hash_image() argument
1674 for (unsigned k = 0; k < zs->bindings[ZINK_DESCRIPTOR_TYPE_IMAGE][i].size; k++) { in calc_descriptor_state_hash_image()
1675 bool is_buffer = zink_shader_descriptor_is_buffer(zs, ZINK_DESCRIPTOR_TYPE_IMAG in calc_descriptor_state_hash_image()
1686 struct zink_shader *zs = shader == PIPE_SHADER_COMPUTE ? ctx->compute_stage : ctx->gfx_stages[shader]; update_descriptor_stage_state() local
[all...]
H A Dzink_clear.c310 clear->zs.depth = depth; in zink_clear()
312 clear->zs.stencil = stencil; in zink_clear()
313 clear->zs.bits |= (buffers & PIPE_CLEAR_DEPTHSTENCIL); in zink_clear()
399 /* zs bits are both set here if those aspects should be cleared at some point */ in zink_clear_framebuffer()
403 clear_bits |= zsclear->zs.bits; in zink_clear_framebuffer()
408 zsclear ? zsclear->zs.depth : 0, in zink_clear_framebuffer()
409 zsclear ? zsclear->zs.stencil : 0); in zink_clear_framebuffer()
414 zink_clear(&ctx->base, clear->zs.bits, in zink_clear_framebuffer()
417 clear->zs.depth, in zink_clear_framebuffer()
418 clear->zs in zink_clear_framebuffer()
[all...]
H A Dzink_render_pass.c335 (zink_fb_clear_element(fb_clear, 0)->zs.bits & PIPE_CLEAR_DEPTH); in zink_init_zs_attachment()
338 (zink_fb_clear_element(fb_clear, 0)->zs.bits & PIPE_CLEAR_STENCIL); in zink_init_zs_attachment()
344 (zink_fb_clear_enabled(ctx, PIPE_MAX_COLOR_BUFS) && (zink_fb_clear_element(fb_clear, 0)->zs.bits & PIPE_CLEAR_DEPTH)); in zink_init_zs_attachment()
347 (zink_fb_clear_enabled(ctx, PIPE_MAX_COLOR_BUFS) && (zink_fb_clear_element(fb_clear, 0)->zs.bits & PIPE_CLEAR_STENCIL)); in zink_init_zs_attachment()
475 /* if zs layout has gone from read-only to read-write, split renderpass */ in rp_must_change()
607 clears[fb_state->nr_cbufs].depthStencil.depth = clear->zs.depth; in begin_render_pass()
608 clears[fb_state->nr_cbufs].depthStencil.stencil = clear->zs.stencil; in begin_render_pass()
610 clear_validate |= clear->zs.bits; in begin_render_pass()
617 clear_buffers |= zink_fb_clear_element(fb_clear, j)->zs.bits; in begin_render_pass()
/third_party/mesa3d/src/panfrost/vulkan/
H A Dpanvk_cmd_buffer.c327 cmdbuf->state.zs.s_front.compare_mask = compareMask; in panvk_CmdSetStencilCompareMask()
330 cmdbuf->state.zs.s_back.compare_mask = compareMask; in panvk_CmdSetStencilCompareMask()
344 cmdbuf->state.zs.s_front.write_mask = writeMask; in panvk_CmdSetStencilWriteMask()
347 cmdbuf->state.zs.s_back.write_mask = writeMask; in panvk_CmdSetStencilWriteMask()
361 cmdbuf->state.zs.s_front.ref = reference; in panvk_CmdSetStencilReference()
364 cmdbuf->state.zs.s_back.ref = reference; in panvk_CmdSetStencilReference()
469 fbinfo->zs.clear.z = subpass->zs_attachment.clear; in panvk_cmd_fb_info_set_subpass()
470 fbinfo->zs.clear_value.depth = clears[subpass->zs_attachment.idx].depth; in panvk_cmd_fb_info_set_subpass()
471 fbinfo->zs.view.zs in panvk_cmd_fb_info_set_subpass()
[all...]
H A Dpanvk_vX_cs.c692 cfg.stencil_front.mask = state->zs.s_front.compare_mask; in emit_dyn_fs_rsd()
693 cfg.stencil_back.mask = state->zs.s_back.compare_mask; in emit_dyn_fs_rsd()
697 cfg.stencil_mask_misc.stencil_mask_front = state->zs.s_front.write_mask; in emit_dyn_fs_rsd()
698 cfg.stencil_mask_misc.stencil_mask_back = state->zs.s_back.write_mask; in emit_dyn_fs_rsd()
702 cfg.stencil_front.reference_value = state->zs.s_front.ref; in emit_dyn_fs_rsd()
703 cfg.stencil_back.reference_value = state->zs.s_back.ref; in emit_dyn_fs_rsd()
727 bool writes_zs = pipeline->zs.z_write || pipeline->zs.s_test; in emit_base_fs_rsd()
728 bool zs_always_passes = !pipeline->zs.z_test && !pipeline->zs in emit_base_fs_rsd()
[all...]
H A Dpanvk_vX_meta_blit.c74 fbinfo->zs.view.zs = &views[0]; in panvk_meta_blit()
75 fbinfo->zs.preload.z = true; in panvk_meta_blit()
76 fbinfo->zs.preload.s = util_format_has_stencil(fdesc); in panvk_meta_blit()
78 fbinfo->zs.view.s = &views[0]; in panvk_meta_blit()
79 fbinfo->zs.preload.s = true; in panvk_meta_blit()
100 fbinfo->zs.view.s = &views[1]; in panvk_meta_blit()
H A Dpanvk_vX_meta_clear.c419 .zs.clear_value.depth = value->depth, in panvk_meta_clear_zs_img()
420 .zs.clear_value.stencil = value->stencil, in panvk_meta_clear_zs_img()
421 .zs.clear.z = range->aspectMask & VK_IMAGE_ASPECT_DEPTH_BIT, in panvk_meta_clear_zs_img()
422 .zs.clear.s = range->aspectMask & VK_IMAGE_ASPECT_STENCIL_BIT in panvk_meta_clear_zs_img()
429 fbinfo->zs.view.zs = &view; in panvk_meta_clear_zs_img()
431 fbinfo->zs.preload.z = !fbinfo->zs.clear.z; in panvk_meta_clear_zs_img()
432 fbinfo->zs.preload.s = !fbinfo->zs in panvk_meta_clear_zs_img()
[all...]
H A Dpanvk_vX_pipeline.c636 pipeline->zs.z_test = builder->create_info.gfx->pDepthStencilState->depthTestEnable; in panvk_pipeline_builder_parse_zs()
647 pipeline->zs.z_write = pipeline->zs.z_test && in panvk_pipeline_builder_parse_zs()
650 pipeline->zs.z_compare_func = in panvk_pipeline_builder_parse_zs()
652 pipeline->zs.s_test = builder->create_info.gfx->pDepthStencilState->stencilTestEnable; in panvk_pipeline_builder_parse_zs()
653 pipeline->zs.s_front.fail_op = in panvk_pipeline_builder_parse_zs()
655 pipeline->zs.s_front.pass_op = in panvk_pipeline_builder_parse_zs()
657 pipeline->zs.s_front.z_fail_op = in panvk_pipeline_builder_parse_zs()
659 pipeline->zs.s_front.compare_func = in panvk_pipeline_builder_parse_zs()
661 pipeline->zs in panvk_pipeline_builder_parse_zs()
[all...]
/third_party/musl/src/math/
H A Dfmal.c168 long double xs, ys, zs, adj; in fmal() local
190 zs = frexpl(z, &ez); in fmal()
234 zs = scalbnl(zs, -spread); in fmal()
236 zs = copysignl(LDBL_MIN, zs); in fmal()
249 r = dd_add(xy.hi, zs); in fmal()
259 volatile long double vzs = zs; /* XXX gcc CSE bug workaround */ in fmal()
/third_party/musl/porting/liteos_a/kernel/src/math/
H A Dfmal.c168 long double xs, ys, zs, adj; in fmal() local
190 zs = frexpl(z, &ez); in fmal()
234 zs = scalbnl(zs, -spread); in fmal()
236 zs = copysignl(LDBL_MIN, zs); in fmal()
249 r = dd_add(xy.hi, zs); in fmal()
259 volatile long double vzs = zs; /* XXX gcc CSE bug workaround */ in fmal()
/third_party/decimal.js/test/modules/
H A DdpSd.js5 function t(n, dp, sd, zs) {
8 T.assertEqual(sd, new Decimal(n).sd(zs));
9 T.assertEqual(sd, new Decimal(n).precision(zs));
/third_party/mesa3d/src/gallium/frontends/osmesa/
H A Dosmesa.c108 void *zs; member
404 if (osmesa->zs) { in osmesa_st_framebuffer_flush_front()
406 osmesa->zs, osmesa->zs_stride, true); in osmesa_st_framebuffer_flush_front()
730 free(osmesa->zs); in OSMesaDestroyContext()
938 if (!c->zs) { in OSMesaGetDepthBuffer()
940 c->zs = calloc(c->zs_stride, *height); in OSMesaGetDepthBuffer()
941 if (!c->zs) in OSMesaGetDepthBuffer()
944 osmesa_read_buffer(c, res, c->zs, c->zs_stride, true); in OSMesaGetDepthBuffer()
947 *buffer = c->zs; in OSMesaGetDepthBuffer()
/third_party/typescript/tests/baselines/reference/
H A DarrayLiteralsWithRecursiveGenerics.js23 var zs = [list, null]; // List<number>[] variable
66 var zs = [list, null]; // List<number>[] variable
/third_party/mesa3d/src/gallium/drivers/v3d/
H A Dv3dx_rcl.c219 /* When blitting, no color or zs buffer is loaded; instead the blit in v3d_rcl_emit_loads()
510 cl_emit(&job->rcl, TILE_RENDERING_MODE_CFG_Z_STENCIL, zs) { in v3d_emit_z_stencil_config()
511 zs.address = cl_address(rsc->bo, surf->offset); in v3d_emit_z_stencil_config()
514 zs.internal_type = surf->internal_type; in v3d_emit_z_stencil_config()
515 zs.output_image_format = surf->format; in v3d_emit_z_stencil_config()
517 zs.z_stencil_id = 1; /* Separate stencil */ in v3d_emit_z_stencil_config()
520 zs.padded_height_of_output_image_in_uif_blocks = in v3d_emit_z_stencil_config()
524 zs.memory_format = surf->tiling; in v3d_emit_z_stencil_config()
/third_party/mesa3d/src/gallium/winsys/radeon/drm/
H A Dradeon_drm_surface.c168 &surf_ws->u.legacy.zs.stencil_level[i], in surf_winsys_to_drm()
170 surf_drm->stencil_tiling_index[i] = surf_ws->u.legacy.zs.stencil_tiling_index[i]; in surf_winsys_to_drm()
210 surf_level_drm_to_winsys(&surf_ws->u.legacy.zs.stencil_level[i], in surf_drm_to_winsys()
213 surf_ws->u.legacy.zs.stencil_tiling_index[i] = surf_drm->stencil_tiling_index[i]; in surf_drm_to_winsys()
/third_party/cups-filters/cupsfilters/
H A Drgb.c62 int xs, ys, zs, /* Current RGB row offsets */ in cupsRGBDoGray() local
84 zs = rgbptr->num_channels; in cupsRGBDoGray()
146 tempg = (color[0] * gm0 + color[xs + ys + zs] * gm1) / 256; in cupsRGBDoGray()
/third_party/mesa3d/src/amd/common/
H A Dac_surface.c679 AddrSurfInfoIn->basePitch = surf->u.legacy.zs.stencil_level[0].nblk_x; in gfx6_compute_level()
693 surf_level = is_stencil ? &surf->u.legacy.zs.stencil_level[level] : &surf->u.legacy.level[level]; in gfx6_compute_level()
717 surf->u.legacy.zs.stencil_tiling_index[level] = AddrSurfInfoOut->tileIndex; in gfx6_compute_level()
1282 if (surf->u.legacy.zs.stencil_level[level].nblk_x != surf->u.legacy.level[level].nblk_x) in gfx6_compute_surface()
1285 surf->u.legacy.level[level].nblk_x = surf->u.legacy.zs.stencil_level[level].nblk_x; in gfx6_compute_surface()
1741 surf->u.gfx9.zs.stencil_swizzle_mode = in->swizzleMode; in gfx9_compute_miptree()
1742 surf->u.gfx9.zs.stencil_epitch = in gfx9_compute_miptree()
1745 surf->u.gfx9.zs.stencil_offset = align(surf->surf_size, out.baseAlign); in gfx9_compute_miptree()
1746 surf->surf_size = surf->u.gfx9.zs.stencil_offset + out.surfSize; in gfx9_compute_miptree()
1851 ac_copy_htile_equation(info, &hout, &surf->u.gfx9.zs in gfx9_compute_miptree()
[all...]

Completed in 28 milliseconds

123