Mesa (main): zink: remove redundant renderpass update check for clears

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


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

Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Date:   Fri Jul 15 09:25:07 2022 -0400

zink: remove redundant renderpass update check for clears

this should be handled already in the clear code

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

---

 src/gallium/drivers/zink/zink_render_pass.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/gallium/drivers/zink/zink_render_pass.c b/src/gallium/drivers/zink/zink_render_pass.c
index 3691b1d82c9..de786bfe44a 100644
--- a/src/gallium/drivers/zink/zink_render_pass.c
+++ b/src/gallium/drivers/zink/zink_render_pass.c
@@ -443,8 +443,6 @@ setup_framebuffer(struct zink_context *ctx)
 
    zink_update_vk_sample_locations(ctx);
 
-   if (rp)
-      ctx->rp_changed |= ctx->rp_clears_enabled != rp->state.clears;
    if (ctx->rp_changed)
       rp = get_render_pass(ctx);
 



More information about the mesa-commit mailing list