lavapipe: remove last VK_ATTACHMENT_UNUSED check

these are all just null checks now

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13349>
This commit is contained in:
Mike Blumenkrantz 2021-10-01 15:57:58 -04:00 committed by Marge Bot
parent 58e18a2be9
commit a0c81efcf4
1 changed files with 1 additions and 2 deletions

View File

@ -1357,8 +1357,7 @@ attachment_needs_clear(struct rendering_state *state,
{
const struct lvp_subpass *subpass = &state->pass->subpasses[state->subpass];
uint32_t view_mask = subpass->view_mask;
return (a != VK_ATTACHMENT_UNUSED &&
state->pending_clear_aspects[a] &&
return (state->pending_clear_aspects[a] &&
(!view_mask || (view_mask & ~state->cleared_views[a])));
}