Mesa (master): iris: Flag for resolves when stencil enable changes, too.
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Mar 24 20:44:06 UTC 2021
Module: Mesa
Branch: master
Commit: 57e00aed8e22ff96faec67c19c88b353a34182ea
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=57e00aed8e22ff96faec67c19c88b353a34182ea
Author: Eric Anholt <eric at anholt.net>
Date: Mon Mar 22 21:15:16 2021 -0700
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 at whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9768>
---
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;
More information about the mesa-commit
mailing list