iris: Flag for resolves when stencil enable changes, too.

The watcher of this dirty flag looks at this state, so it sure seems like
it needs it.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9768>
This commit is contained in:
Eric Anholt
2021-03-22 21:15:16 -07:00
committed by Marge Bot
parent bbe5eb43c7
commit 57e00aed8e

View File

@@ -1484,7 +1484,7 @@ iris_bind_zsa_state(struct pipe_context *ctx, void *state)
if (cso_changed(alpha_func))
ice->state.dirty |= IRIS_DIRTY_BLEND_STATE;
if (cso_changed(depth_writes_enabled))
if (cso_changed(depth_writes_enabled) || cso_changed(stencil_writes_enabled))
ice->state.dirty |= IRIS_DIRTY_RENDER_RESOLVES_AND_FLUSHES;
ice->state.depth_writes_enabled = new_cso->depth_writes_enabled;