zink: allow zink_is_zsbuf_used() without tc / rp optimizing
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Fri, 17 Mar 2023 13:47:56 +0000 (09:47 -0400)
committerMarge Bot <emma+marge@anholt.net>
Mon, 20 Mar 2023 18:24:07 +0000 (18:24 +0000)
this info should be up-to-date and usable now in all cases

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21988>

src/gallium/drivers/zink/zink_context.h

index 80cfabd..a9664bf 100644 (file)
@@ -77,9 +77,7 @@ zink_program_cache_stages(uint32_t stages_present)
 static inline bool
 zink_is_zsbuf_used(const struct zink_context *ctx)
 {
-   return !ctx->tc || ctx->blitting ||
-         !zink_screen(ctx->base.screen)->driver_workarounds.track_renderpasses ||
-         tc_renderpass_info_is_zsbuf_used(&ctx->dynamic_fb.tc_info);
+   return ctx->blitting || tc_renderpass_info_is_zsbuf_used(&ctx->dynamic_fb.tc_info);
 }
 
 void