Lines Matching refs:dsa_state
473 struct pipe_depth_stencil_alpha_state *dsa_state; in vrend_decode_create_dsa() local
479 dsa_state = CALLOC_STRUCT(pipe_depth_stencil_alpha_state); in vrend_decode_create_dsa()
480 if (!dsa_state) in vrend_decode_create_dsa()
484 dsa_state->depth.enabled = tmp & 0x1; in vrend_decode_create_dsa()
485 dsa_state->depth.writemask = (tmp >> 1) & 0x1; in vrend_decode_create_dsa()
486 dsa_state->depth.func = (tmp >> 2) & 0x7; in vrend_decode_create_dsa()
488 dsa_state->alpha.enabled = (tmp >> 8) & 0x1; in vrend_decode_create_dsa()
489 dsa_state->alpha.func = (tmp >> 9) & 0x7; in vrend_decode_create_dsa()
493 dsa_state->stencil[i].enabled = tmp & 0x1; in vrend_decode_create_dsa()
494 dsa_state->stencil[i].func = (tmp >> 1) & 0x7; in vrend_decode_create_dsa()
495 dsa_state->stencil[i].fail_op = (tmp >> 4) & 0x7; in vrend_decode_create_dsa()
496 dsa_state->stencil[i].zpass_op = (tmp >> 7) & 0x7; in vrend_decode_create_dsa()
497 dsa_state->stencil[i].zfail_op = (tmp >> 10) & 0x7; in vrend_decode_create_dsa()
498 dsa_state->stencil[i].valuemask = (tmp >> 13) & 0xff; in vrend_decode_create_dsa()
499 dsa_state->stencil[i].writemask = (tmp >> 21) & 0xff; in vrend_decode_create_dsa()
503 dsa_state->alpha.ref_value = uif(tmp); in vrend_decode_create_dsa()
505 …tmp = vrend_renderer_object_insert(ctx->grctx, dsa_state, sizeof(struct pipe_depth_stencil_alpha_s… in vrend_decode_create_dsa()
508 FREE(dsa_state); in vrend_decode_create_dsa()