Home
last modified time | relevance | path

Searched refs:zsa (Results 1 – 25 of 52) sorted by relevance

123

/external/mesa3d/src/gallium/drivers/etnaviv/
Detnaviv_state.h37 return ctx->zsa && ctx->zsa->depth.enabled; in etna_depth_enabled()
43 return ctx->zsa && ctx->zsa->stencil[0].enabled; in etna_stencil_enabled()
Detnaviv_zsa.h43 etna_zsa_state(struct pipe_depth_stencil_alpha_state *zsa) in etna_zsa_state() argument
45 return (struct etna_zsa_state *)zsa; in etna_zsa_state()
Detnaviv_emit.c475 uint32_t val = etna_zsa_state(ctx->zsa)->PE_DEPTH_CONFIG; in etna_emit_state()
492 uint32_t val = etna_zsa_state(ctx->zsa)->PE_STENCIL_OP; in etna_emit_state()
496 uint32_t val = etna_zsa_state(ctx->zsa)->PE_STENCIL_CONFIG; in etna_emit_state()
500 uint32_t val = etna_zsa_state(ctx->zsa)->PE_ALPHA_OP; in etna_emit_state()
Detnaviv_context.h152 struct pipe_depth_stencil_alpha_state *zsa; member
/external/mesa3d/src/gallium/drivers/freedreno/
Dfreedreno_state.h37 return ctx->zsa && ctx->zsa->depth.enabled; in fd_depth_enabled()
42 return ctx->zsa && ctx->zsa->stencil[0].enabled; in fd_stencil_enabled()
/external/mesa3d/src/gallium/drivers/freedreno/a2xx/
Dfd2_zsa.h48 fd2_zsa_stateobj(struct pipe_depth_stencil_alpha_state *zsa) in fd2_zsa_stateobj() argument
50 return (struct fd2_zsa_stateobj *)zsa; in fd2_zsa_stateobj()
Dfd2_emit.c188 struct fd2_zsa_stateobj *zsa = fd2_zsa_stateobj(ctx->zsa); in fd2_emit_state() local
209 OUT_RING(ring, zsa->rb_depthcontrol); in fd2_emit_state()
213 OUT_RING(ring, zsa->rb_stencilrefmask_bf | in fd2_emit_state()
215 OUT_RING(ring, zsa->rb_stencilrefmask | in fd2_emit_state()
217 OUT_RING(ring, zsa->rb_alpha_ref); in fd2_emit_state()
299 OUT_RING(ring, zsa->rb_colorcontrol | blend->rb_colorcontrol); in fd2_emit_state()
/external/mesa3d/src/gallium/drivers/freedreno/a3xx/
Dfd3_zsa.h49 fd3_zsa_stateobj(struct pipe_depth_stencil_alpha_state *zsa) in fd3_zsa_stateobj() argument
51 return (struct fd3_zsa_stateobj *)zsa; in fd3_zsa_stateobj()
Dfd3_emit.c506 uint32_t val = fd3_zsa_stateobj(ctx->zsa)->rb_render_control | in fd3_emit_state()
526 struct fd3_zsa_stateobj *zsa = fd3_zsa_stateobj(ctx->zsa); in fd3_emit_state() local
530 OUT_RING(ring, zsa->rb_alpha_ref); in fd3_emit_state()
533 OUT_RING(ring, zsa->rb_stencil_control); in fd3_emit_state()
536 OUT_RING(ring, zsa->rb_stencilrefmask | in fd3_emit_state()
538 OUT_RING(ring, zsa->rb_stencilrefmask_bf | in fd3_emit_state()
543 uint32_t val = fd3_zsa_stateobj(ctx->zsa)->rb_depth_control; in fd3_emit_state()
/external/mesa3d/src/gallium/drivers/freedreno/a5xx/
Dfd5_zsa.h49 fd5_zsa_stateobj(struct pipe_depth_stencil_alpha_state *zsa) in fd5_zsa_stateobj() argument
51 return (struct fd5_zsa_stateobj *)zsa; in fd5_zsa_stateobj()
Dfd5_emit.c515 struct fd5_zsa_stateobj *zsa = fd5_zsa_stateobj(ctx->zsa); in fd5_emit_state() local
516 uint32_t rb_alpha_control = zsa->rb_alpha_control; in fd5_emit_state()
525 OUT_RING(ring, zsa->rb_stencil_control); in fd5_emit_state()
530 struct fd5_zsa_stateobj *zsa = fd5_zsa_stateobj(ctx->zsa); in fd5_emit_state() local
534 uint32_t gras_lrz_cntl = zsa->gras_lrz_cntl; in fd5_emit_state()
538 else if (emit->key.binning_pass && blend->lrz_write && zsa->lrz_write) in fd5_emit_state()
547 struct fd5_zsa_stateobj *zsa = fd5_zsa_stateobj(ctx->zsa); in fd5_emit_state() local
551 OUT_RING(ring, zsa->rb_stencilrefmask | in fd5_emit_state()
553 OUT_RING(ring, zsa->rb_stencilrefmask_bf | in fd5_emit_state()
558 struct fd5_zsa_stateobj *zsa = fd5_zsa_stateobj(ctx->zsa); in fd5_emit_state() local
[all …]
/external/mesa3d/src/gallium/drivers/freedreno/a4xx/
Dfd4_zsa.h50 fd4_zsa_stateobj(struct pipe_depth_stencil_alpha_state *zsa) in fd4_zsa_stateobj() argument
52 return (struct fd4_zsa_stateobj *)zsa; in fd4_zsa_stateobj()
Dfd4_emit.c528 struct fd4_zsa_stateobj *zsa = fd4_zsa_stateobj(ctx->zsa); in fd4_emit_state() local
530 uint32_t rb_alpha_control = zsa->rb_alpha_control; in fd4_emit_state()
539 OUT_RING(ring, zsa->rb_stencil_control); in fd4_emit_state()
540 OUT_RING(ring, zsa->rb_stencil_control2); in fd4_emit_state()
544 struct fd4_zsa_stateobj *zsa = fd4_zsa_stateobj(ctx->zsa); in fd4_emit_state() local
548 OUT_RING(ring, zsa->rb_stencilrefmask | in fd4_emit_state()
550 OUT_RING(ring, zsa->rb_stencilrefmask_bf | in fd4_emit_state()
555 struct fd4_zsa_stateobj *zsa = fd4_zsa_stateobj(ctx->zsa); in fd4_emit_state() local
560 OUT_RING(ring, zsa->rb_depth_control | in fd4_emit_state()
569 OUT_RING(ring, zsa->gras_alpha_control | in fd4_emit_state()
/external/mesa3d/src/gallium/drivers/vc5/
Dvc5_emit.c386 if (vc5->zsa->base.depth.enabled) { in v3dX()
388 vc5->zsa->base.depth.writemask; in v3dX()
390 (vc5->zsa->early_z_enable && in v3dX()
393 vc5->zsa->base.depth.func; in v3dX()
399 vc5->zsa->base.stencil[0].enabled; in v3dX()
504 struct pipe_stencil_state *front = &vc5->zsa->base.stencil[0]; in v3dX()
505 struct pipe_stencil_state *back = &vc5->zsa->base.stencil[1]; in v3dX()
509 vc5->zsa->stencil_front, config) { in v3dX()
517 vc5->zsa->stencil_back, config) { in v3dX()
Dvc5_draw.c509 if (vc5->zsa && job->zsbuf && in vc5_draw_vbo()
510 (vc5->zsa->base.depth.enabled || in vc5_draw_vbo()
511 vc5->zsa->base.stencil[0].enabled)) { in vc5_draw_vbo()
515 if (vc5->zsa->base.depth.enabled) { in vc5_draw_vbo()
519 if (vc5->zsa->early_z_enable) in vc5_draw_vbo()
523 if (vc5->zsa->base.stencil[0].enabled) { in vc5_draw_vbo()
Dvc5_program.c366 key->depth_enabled = (vc5->zsa->base.depth.enabled || in vc5_update_compiled_fs()
367 vc5->zsa->base.stencil[0].enabled); in vc5_update_compiled_fs()
368 if (vc5->zsa->base.alpha.enabled) { in vc5_update_compiled_fs()
370 key->alpha_test_func = vc5->zsa->base.alpha.func; in vc5_update_compiled_fs()
Dvc5_uniforms.c353 vc5->zsa->stencil_uniforms[uinfo->data[i]] | in vc5_write_uniforms()
361 vc5->zsa->base.alpha.ref_value); in vc5_write_uniforms()
/external/mesa3d/src/gallium/drivers/vc4/
Dvc4_emit.c107 vc4->zsa->config_bits[0]) & rasosm_mask_out); in vc4_emit_state()
110 vc4->zsa->config_bits[1]); in vc4_emit_state()
113 vc4->zsa->config_bits[2]) & ez_enable_mask_out); in vc4_emit_state()
Dvc4_draw.c507 if (vc4->zsa && vc4->framebuffer.zsbuf) { in vc4_draw_vbo()
511 if (vc4->zsa->base.depth.enabled) { in vc4_draw_vbo()
516 if (vc4->zsa->base.stencil[0].enabled) { in vc4_draw_vbo()
Dvc4_uniforms.c333 vc4->zsa->stencil_uniforms[uinfo->data[i]] | in vc4_write_uniforms()
341 vc4->zsa->base.alpha.ref_value); in vc4_write_uniforms()
/external/mesa3d/src/gallium/drivers/nouveau/nvc0/
Dnvc0_state_validate.c460 PUSH_SPACE(push, nvc0->zsa->size); in nvc0_validate_zsa()
461 PUSH_DATAp(push, nvc0->zsa->state, nvc0->zsa->size); in nvc0_validate_zsa()
646 bool zs = nvc0->zsa && in nvc0_validate_fp_zsa_rast()
647 (nvc0->zsa->pipe.depth.enabled || nvc0->zsa->pipe.stencil[0].enabled); in nvc0_validate_fp_zsa_rast()
667 if (nvc0->zsa && nvc0->zsa->pipe.alpha.enabled && in nvc0_validate_zsa_fb()
832 if (!ctx_to->zsa) in nvc0_switch_pipe_context()
/external/mesa3d/src/gallium/drivers/nouveau/nv50/
Dnv50_state_validate.c342 if (nv50->zsa && nv50->zsa->pipe.alpha.enabled && in nv50_validate_derived_2()
398 PUSH_SPACE(push, nv50->zsa->size); in nv50_validate_zsa()
399 PUSH_DATAp(push, nv50->zsa->state, nv50->zsa->size); in nv50_validate_zsa()
483 if (!ctx_to->zsa) in nv50_switch_pipe_context()
Dnv50_shader_state.c180 if (nv50->zsa && nv50->zsa->pipe.alpha.enabled) { in nv50_fragprog_validate()
197 alphatest = nv50->zsa->pipe.alpha.func + 1; in nv50_fragprog_validate()
/external/mesa3d/src/gallium/drivers/nouveau/nv30/
Dnv30_state_validate.c309 PUSH_SPACE(push, nv30->zsa->size); in nv30_validate_zsa()
310 PUSH_DATAp(push, nv30->zsa->data, nv30->zsa->size); in nv30_validate_zsa()
456 if (!nv30->zsa) in nv30_state_context_switch()
Dnv30_context.h67 struct nv30_zsa_stateobj *zsa; member

123