zink: use a better check for current fb zsbuf in zink_clear_depth_stencil()

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35722>
This commit is contained in:
Mike Blumenkrantz 2025-06-18 16:58:09 -04:00
parent 76e2b61a2f
commit defc3dfa79

View file

@ -600,7 +600,7 @@ zink_clear_depth_stencil(struct pipe_context *pctx, struct pipe_surface *dst,
zink_stop_conditional_render(ctx);
ctx->render_condition_active = false;
}
bool cur_attachment = ctx->fb_zsbuf == dst;
bool cur_attachment = pipe_surface_equal(&ctx->fb_state.zsbuf, dst);
if (dstx > ctx->fb_state.width || dsty > ctx->fb_state.height ||
dstx + width > ctx->fb_state.width ||
dsty + height > ctx->fb_state.height)