From 57e00aed8e22ff96faec67c19c88b353a34182ea Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Mon, 22 Mar 2021 21:15:16 -0700 Subject: [PATCH] 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 Part-of: --- src/gallium/drivers/iris/iris_state.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/iris/iris_state.c b/src/gallium/drivers/iris/iris_state.c index ed4804f9722..aa37c835540 100644 --- a/src/gallium/drivers/iris/iris_state.c +++ b/src/gallium/drivers/iris/iris_state.c @@ -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;