From 2d099c46cc68613d5e93404aa64bc90b66ed5406 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Fri, 17 Mar 2023 09:47:56 -0400 Subject: [PATCH] zink: allow zink_is_zsbuf_used() without tc / rp optimizing this info should be up-to-date and usable now in all cases Part-of: --- src/gallium/drivers/zink/zink_context.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/gallium/drivers/zink/zink_context.h b/src/gallium/drivers/zink/zink_context.h index 80cfabdd3a1..a9664bf2532 100644 --- a/src/gallium/drivers/zink/zink_context.h +++ b/src/gallium/drivers/zink/zink_context.h @@ -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