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:
Yonggang Luo 2023-11-02 04:43:10 +08:00 committed by Marge Bot
parent 80b87c18d1
commit 5e9dcffffd

View file

@ -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);