panfrost: Assert alignment of indirect records

Continuation records need alignment, this shows they already have it.

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11123>
This commit is contained in:
Alyssa Rosenzweig 2021-06-03 15:15:01 -04:00 committed by Marge Bot
parent 4b52b0841f
commit c88c5b1218

View file

@ -1700,6 +1700,9 @@ panfrost_emit_vertex_data(struct panfrost_batch *batch,
unsigned stride = buf->stride;
if (ctx->indirect_draw) {
/* We allocated 2 records for each attribute buffer */
assert((k & 1) == 0);
/* With indirect draws we can't guess the vertex_count.
* Pre-set the address, stride and size fields, the
* compute shader do the rest.