mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 09:38:07 +02:00
nvk: Should use alignment instead of align
align is a function, don't know why align > 0 is working
Fixes: 87686a2220 ("nvk: Rework side-band data upload")
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26035>
This commit is contained in:
parent
80b87c18d1
commit
5e9dcffffd
1 changed files with 1 additions and 1 deletions
|
|
@ -183,7 +183,7 @@ nvk_cmd_buffer_upload_alloc(struct nvk_cmd_buffer *cmd,
|
|||
assert(size <= NVK_CMD_BO_SIZE);
|
||||
|
||||
uint32_t offset = cmd->upload_offset;
|
||||
if (align > 0)
|
||||
if (alignment > 0)
|
||||
offset = align(offset, alignment);
|
||||
|
||||
assert(offset <= NVK_CMD_BO_SIZE);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue