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:
committed by
Marge Bot
parent
4b52b0841f
commit
c88c5b1218
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user