v3dv: assert on subpasses that use input or resolve attachments

We don't support these yet, so we might as well assert early.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6766>
This commit is contained in:
Iago Toral Quiroga 2020-04-02 12:11:09 +02:00 committed by Marge Bot
parent 79b07b85b6
commit 53de8892f4

View file

@ -1704,6 +1704,10 @@ v3dv_cmd_buffer_subpass_start(struct v3dv_cmd_buffer *cmd_buffer,
framebuffer->layers,
subpass->color_count,
internal_bpp);
/* FIXME: we don't support input/resolve attachments yet */
assert(subpass->input_count == 0);
assert(subpass->resolve_attachments == NULL);
}
/* If we can't use TLB clears then we need to emit draw clears for any