mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-03 12:08:06 +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> (cherry picked from commit5e9dcffffd)
This commit is contained in:
parent
d0d8b3508d
commit
b03733fc6b
2 changed files with 2 additions and 2 deletions
|
|
@ -614,7 +614,7 @@
|
|||
"description": "nvk: Should use alignment instead of align",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "87686a22205cf338b59a33b8ec21f9b3d8ad3d29",
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -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