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: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21988>
This commit is contained in:
Mike Blumenkrantz
2023-03-17 09:47:56 -04:00
committed by Marge Bot
parent c900b9e35f
commit 2d099c46cc

View 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