From c88c5b1218d20a4d5087e78eace7154571cc0dbd Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Thu, 3 Jun 2021 15:15:01 -0400 Subject: [PATCH] panfrost: Assert alignment of indirect records Continuation records need alignment, this shows they already have it. Signed-off-by: Alyssa Rosenzweig Part-of: --- src/gallium/drivers/panfrost/pan_cmdstream.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gallium/drivers/panfrost/pan_cmdstream.c b/src/gallium/drivers/panfrost/pan_cmdstream.c index f2c1193d5b5..68e1e9aa12c 100644 --- a/src/gallium/drivers/panfrost/pan_cmdstream.c +++ b/src/gallium/drivers/panfrost/pan_cmdstream.c @@ -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.