Lines Matching refs:dsa

44     struct r300_dsa_state *dsa = r300->dsa_state.state;  in r300_get_hiz_func()  local
46 switch (dsa->dsa.depth.func) { in r300_get_hiz_func()
66 struct r300_dsa_state *dsa = r300->dsa_state.state; in r300_get_sc_hz_max() local
67 unsigned func = dsa->dsa.depth.func; in r300_get_sc_hz_max()
74 struct r300_dsa_state *dsa = r300->dsa_state.state; in r300_is_hiz_func_valid() local
75 unsigned func = dsa->dsa.depth.func; in r300_is_hiz_func_valid()
101 struct r300_dsa_state *dsa = r300->dsa_state.state; in r300_hiz_allowed() local
115 if (r300_dsa_stencil_op_not_keep(&dsa->dsa.stencil[0]) || in r300_hiz_allowed()
116 r300_dsa_stencil_op_not_keep(&dsa->dsa.stencil[1])) in r300_hiz_allowed()
119 if (dsa->dsa.depth.enabled) { in r300_hiz_allowed()
121 if (dsa->dsa.depth.func == PIPE_FUNC_EQUAL && !r300screen->caps.is_r500) in r300_hiz_allowed()
125 if (dsa->dsa.depth.func == PIPE_FUNC_NOTEQUAL) in r300_hiz_allowed()
137 struct r300_dsa_state *dsa = r300->dsa_state.state; in r300_update_hyperz() local
173 if (!dsa->dsa.depth.enabled && in r300_update_hyperz()
174 !dsa->dsa.stencil[0].enabled && in r300_update_hyperz()
175 !dsa->dsa.stencil[1].enabled) { in r300_update_hyperz()
176 assert(!dsa->dsa.depth.writemask); in r300_update_hyperz()
193 if (dsa->dsa.depth.writemask) { in r300_update_hyperz()
198 DBG(r300, DBG_HYPERZ, "r300: Z-func: %i\n", dsa->dsa.depth.func); in r300_update_hyperz()
232 struct pipe_depth_stencil_alpha_state *dsa) in r300_dsa_writes_depth_stencil() argument
237 if (dsa->depth.enabled && dsa->depth.writemask && in r300_dsa_writes_depth_stencil()
238 dsa->depth.func != PIPE_FUNC_NEVER) in r300_dsa_writes_depth_stencil()
241 if (r300_dsa_writes_stencil(&dsa->stencil[0]) || in r300_dsa_writes_depth_stencil()
242 r300_dsa_writes_stencil(&dsa->stencil[1])) in r300_dsa_writes_depth_stencil()
249 struct pipe_depth_stencil_alpha_state *dsa) in r300_dsa_alpha_test_enabled() argument
254 return dsa->alpha.enabled && dsa->alpha.func != PIPE_FUNC_ALWAYS; in r300_dsa_alpha_test_enabled()