Mesa (main): zink: don't flag renderpass change on depth write change as often

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Jul 20 17:47:06 UTC 2022


Module: Mesa
Branch: main
Commit: ca3d696f80fe9a772350bca897a2e95391e18c5c
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=ca3d696f80fe9a772350bca897a2e95391e18c5c

Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Date:   Thu Jul 14 18:04:46 2022 -0400

zink: don't flag renderpass change on depth write change as often

this is only "sometimes" required and only if dynamic render isn't being
used

Reviewed-by: Dave Airlie <airlied at redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17640>

---

 src/gallium/drivers/zink/zink_state.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/zink/zink_state.c b/src/gallium/drivers/zink/zink_state.c
index 941b281d0f6..11f45761925 100644
--- a/src/gallium/drivers/zink/zink_state.c
+++ b/src/gallium/drivers/zink/zink_state.c
@@ -533,8 +533,8 @@ zink_bind_depth_stencil_alpha_state(struct pipe_context *pctx, void *cso)
       }
    }
    if (prev_zwrite != (ctx->dsa_state ? ctx->dsa_state->hw_state.depth_write : false)) {
+      /* flag renderpass for re-check on next draw */
       ctx->rp_changed = true;
-      zink_batch_no_rp(ctx);
    }
 }
 



More information about the mesa-commit mailing list