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:

committed by
Marge Bot

parent
c900b9e35f
commit
2d099c46cc
@@ -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
|
||||
|
Reference in New Issue
Block a user