Lines Matching refs:dsa

580     struct r300_dsa_state* dsa = CALLOC_STRUCT(r300_dsa_state);  in r300_create_dsa_state()  local
583 dsa->dsa = *state; in r300_create_dsa_state()
587 dsa->z_buffer_control |= R300_Z_WRITE_ENABLE; in r300_create_dsa_state()
591 dsa->z_buffer_control |= R300_Z_ENABLE; in r300_create_dsa_state()
593 dsa->z_stencil_control |= in r300_create_dsa_state()
598 dsa->z_buffer_control |= R300_Z_ENABLE; in r300_create_dsa_state()
599 dsa->z_stencil_control |= R300_ZS_ALWAYS; in r300_create_dsa_state()
604 dsa->z_buffer_control |= R300_STENCIL_ENABLE; in r300_create_dsa_state()
605 dsa->z_stencil_control |= in r300_create_dsa_state()
615 dsa->stencil_ref_mask = in r300_create_dsa_state()
620 dsa->two_sided = TRUE; in r300_create_dsa_state()
622 dsa->z_buffer_control |= R300_STENCIL_FRONT_BACK; in r300_create_dsa_state()
623 dsa->z_stencil_control |= in r300_create_dsa_state()
633 dsa->stencil_ref_bf = in r300_create_dsa_state()
638 dsa->z_buffer_control |= R500_STENCIL_REFMASK_FRONT_BACK; in r300_create_dsa_state()
640 dsa->two_sided_stencil_ref = in r300_create_dsa_state()
649 dsa->alpha_function = in r300_create_dsa_state()
653 dsa->alpha_function |= float_to_ubyte(state->alpha.ref_value); in r300_create_dsa_state()
654 dsa->alpha_value = util_float_to_half(state->alpha.ref_value); in r300_create_dsa_state()
657 dsa->alpha_function_fp16 = dsa->alpha_function | in r300_create_dsa_state()
659 dsa->alpha_function |= R500_FG_ALPHA_FUNC_8BIT; in r300_create_dsa_state()
663 BEGIN_CB(&dsa->cb_begin, 10); in r300_create_dsa_state()
664 OUT_CB_REG(R300_FG_ALPHA_FUNC, dsa->alpha_function); in r300_create_dsa_state()
666 OUT_CB(dsa->z_buffer_control); in r300_create_dsa_state()
667 OUT_CB(dsa->z_stencil_control); in r300_create_dsa_state()
668 OUT_CB(dsa->stencil_ref_mask); in r300_create_dsa_state()
669 OUT_CB_REG(R500_ZB_STENCILREFMASK_BF, dsa->stencil_ref_bf); in r300_create_dsa_state()
670 OUT_CB_REG(R500_FG_ALPHA_VALUE, dsa->alpha_value); in r300_create_dsa_state()
673 BEGIN_CB(&dsa->cb_begin_fp16, 10); in r300_create_dsa_state()
674 OUT_CB_REG(R300_FG_ALPHA_FUNC, dsa->alpha_function_fp16); in r300_create_dsa_state()
676 OUT_CB(dsa->z_buffer_control); in r300_create_dsa_state()
677 OUT_CB(dsa->z_stencil_control); in r300_create_dsa_state()
678 OUT_CB(dsa->stencil_ref_mask); in r300_create_dsa_state()
679 OUT_CB_REG(R500_ZB_STENCILREFMASK_BF, dsa->stencil_ref_bf); in r300_create_dsa_state()
680 OUT_CB_REG(R500_FG_ALPHA_VALUE, dsa->alpha_value); in r300_create_dsa_state()
685 BEGIN_CB(dsa->cb_zb_no_readwrite, 10); in r300_create_dsa_state()
686 OUT_CB_REG(R300_FG_ALPHA_FUNC, dsa->alpha_function); in r300_create_dsa_state()
692 OUT_CB_REG(R500_FG_ALPHA_VALUE, dsa->alpha_value); in r300_create_dsa_state()
695 BEGIN_CB(dsa->cb_fp16_zb_no_readwrite, 10); in r300_create_dsa_state()
696 OUT_CB_REG(R300_FG_ALPHA_FUNC, dsa->alpha_function_fp16); in r300_create_dsa_state()
702 OUT_CB_REG(R500_FG_ALPHA_VALUE, dsa->alpha_value); in r300_create_dsa_state()
705 return (void*)dsa; in r300_create_dsa_state()
710 struct r300_dsa_state *dsa = in r300_dsa_inject_stencilref() local
713 if (!dsa) in r300_dsa_inject_stencilref()
716 dsa->stencil_ref_mask = in r300_dsa_inject_stencilref()
717 (dsa->stencil_ref_mask & ~R300_STENCILREF_MASK) | in r300_dsa_inject_stencilref()
719 dsa->stencil_ref_bf = in r300_dsa_inject_stencilref()
720 (dsa->stencil_ref_bf & ~R300_STENCILREF_MASK) | in r300_dsa_inject_stencilref()