mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 13:58:04 +02:00
panfrost: Align NPOT divisor records
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
1760511e02
commit
afc4ebdcc0
1 changed files with 4 additions and 0 deletions
|
|
@ -1756,6 +1756,10 @@ panfrost_emit_vertex_data(struct panfrost_batch *batch,
|
|||
unsigned magic_divisor =
|
||||
panfrost_compute_magic_divisor(hw_divisor, &shift, &extra_flags);
|
||||
|
||||
/* Records with continuations must be aligned */
|
||||
k = ALIGN_POT(k, 2);
|
||||
attrib_to_buffer[i] = k;
|
||||
|
||||
pan_pack(bufs + k, ATTRIBUTE_BUFFER, cfg) {
|
||||
cfg.type = MALI_ATTRIBUTE_TYPE_1D_NPOT_DIVISOR;
|
||||
cfg.pointer = addr;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue