mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 04:10:09 +01:00
zink: improve zink_clear_depth_stencil check for current attachment
this is technically more correct since it accounts for multi-context usage Acked-by: Dave Airlie <airlied@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17366>
This commit is contained in:
parent
c1cc2bd48e
commit
3488dc7dd0
1 changed files with 2 additions and 1 deletions
|
|
@ -534,8 +534,9 @@ zink_clear_depth_stencil(struct pipe_context *pctx, struct pipe_surface *dst,
|
|||
struct u_rect rect = {dstx, dstx + width, dsty, dsty + height};
|
||||
bool needs_rp = !zink_blit_region_fills(rect, dst->texture->width0, dst->texture->height0);
|
||||
needs_rp |= check_3d_layers(dst);
|
||||
bool cur_attachment = zink_csurface(ctx->fb_state.zsbuf) == zink_csurface(dst);
|
||||
bool render_condition_active = ctx->render_condition_active;
|
||||
if (res->fb_binds) { //current depth attachment
|
||||
if (cur_attachment) { //current depth attachment
|
||||
struct pipe_scissor_state scissor = {dstx, dsty, dstx + width, dsty + height};
|
||||
if (!render_condition_enabled && render_condition_active) {
|
||||
zink_stop_conditional_render(ctx);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue