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:
parent
58e18a2be9
commit
a0c81efcf4
|
@ -1357,8 +1357,7 @@ attachment_needs_clear(struct rendering_state *state,
|
||||||
{
|
{
|
||||||
const struct lvp_subpass *subpass = &state->pass->subpasses[state->subpass];
|
const struct lvp_subpass *subpass = &state->pass->subpasses[state->subpass];
|
||||||
uint32_t view_mask = subpass->view_mask;
|
uint32_t view_mask = subpass->view_mask;
|
||||||
return (a != VK_ATTACHMENT_UNUSED &&
|
return (state->pending_clear_aspects[a] &&
|
||||||
state->pending_clear_aspects[a] &&
|
|
||||||
(!view_mask || (view_mask & ~state->cleared_views[a])));
|
(!view_mask || (view_mask & ~state->cleared_views[a])));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue