Lines Matching refs:dsa
33 struct pipe_depth_stencil_alpha_state dsa; in nine_convert_dsa_state() local
35 memset(&dsa, 0, sizeof(dsa)); /* memcmp safety */ in nine_convert_dsa_state()
38 dsa.depth.enabled = 1; in nine_convert_dsa_state()
39 dsa.depth.func = d3dcmpfunc_to_pipe_func(rs[D3DRS_ZFUNC]); in nine_convert_dsa_state()
41 dsa.depth.writemask = !!rs[D3DRS_ZWRITEENABLE] && in nine_convert_dsa_state()
42 dsa.depth.func != PIPE_FUNC_EQUAL && in nine_convert_dsa_state()
43 dsa.depth.func != PIPE_FUNC_NEVER; in nine_convert_dsa_state()
47 dsa.stencil[0].enabled = 1; in nine_convert_dsa_state()
48 dsa.stencil[0].func = d3dcmpfunc_to_pipe_func(rs[D3DRS_STENCILFUNC]); in nine_convert_dsa_state()
49 dsa.stencil[0].fail_op = d3dstencilop_to_pipe_stencil_op(rs[D3DRS_STENCILFAIL]); in nine_convert_dsa_state()
50 dsa.stencil[0].zpass_op = d3dstencilop_to_pipe_stencil_op(rs[D3DRS_STENCILPASS]); in nine_convert_dsa_state()
51 dsa.stencil[0].zfail_op = d3dstencilop_to_pipe_stencil_op(rs[D3DRS_STENCILZFAIL]); in nine_convert_dsa_state()
52 dsa.stencil[0].valuemask = rs[D3DRS_STENCILMASK]; in nine_convert_dsa_state()
53 dsa.stencil[0].writemask = rs[D3DRS_STENCILWRITEMASK]; in nine_convert_dsa_state()
56 dsa.stencil[1].enabled = 1; in nine_convert_dsa_state()
57 dsa.stencil[1].func = d3dcmpfunc_to_pipe_func(rs[D3DRS_CCW_STENCILFUNC]); in nine_convert_dsa_state()
58 dsa.stencil[1].fail_op = d3dstencilop_to_pipe_stencil_op(rs[D3DRS_CCW_STENCILFAIL]); in nine_convert_dsa_state()
59 dsa.stencil[1].zpass_op = d3dstencilop_to_pipe_stencil_op(rs[D3DRS_CCW_STENCILPASS]); in nine_convert_dsa_state()
60 dsa.stencil[1].zfail_op = d3dstencilop_to_pipe_stencil_op(rs[D3DRS_CCW_STENCILZFAIL]); in nine_convert_dsa_state()
61 dsa.stencil[1].valuemask = dsa.stencil[0].valuemask; in nine_convert_dsa_state()
62 dsa.stencil[1].writemask = dsa.stencil[0].writemask; in nine_convert_dsa_state()
67 dsa.alpha.enabled = 1; in nine_convert_dsa_state()
68 dsa.alpha.func = d3dcmpfunc_to_pipe_func(rs[D3DRS_ALPHAFUNC]); in nine_convert_dsa_state()
69 dsa.alpha.ref_value = (float)rs[D3DRS_ALPHAREF] / 255.0f; in nine_convert_dsa_state()
72 *dsa_state = dsa; in nine_convert_dsa_state()