mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2024-11-30 21:54:16 +08:00
zink: fix dsa state parsing for tc info
stencil test implies zs write Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21988>
This commit is contained in:
parent
d8bb8af4f5
commit
1b9e9a54ab
@ -5284,7 +5284,7 @@ static void
|
||||
zink_tc_parse_dsa(void *state, struct tc_renderpass_info *info)
|
||||
{
|
||||
struct zink_depth_stencil_alpha_state *cso = state;
|
||||
info->zsbuf_write_dsa |= (cso->hw_state.depth_write || cso->base.stencil[0].writemask || cso->base.stencil[1].writemask);
|
||||
info->zsbuf_write_dsa |= (cso->hw_state.depth_write || cso->hw_state.stencil_test);
|
||||
info->zsbuf_read_dsa |= (cso->hw_state.depth_test || cso->hw_state.stencil_test);
|
||||
/* TODO: if zsbuf fbfetch is ever supported */
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user