mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 09:08:10 +02:00
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:
parent
4b52b0841f
commit
c88c5b1218
1 changed files with 3 additions and 0 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue