Module: Mesa
Branch: main
Commit: 5e9dcffffde8b4ecf78531c0285a0d296e1fc7a9
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=5e9dcffffde8b4ecf78531c0285a0d296e1fc7a9

Author: Yonggang Luo <luoyongg...@gmail.com>
Date:   Thu Nov  2 04:43:10 2023 +0800

nvk: Should use alignment instead of align

align is a function, don't know why align > 0 is working

Fixes: 87686a22205 ("nvk: Rework side-band data upload")

Signed-off-by: Yonggang Luo <luoyongg...@gmail.com>
Reviewed-by: Faith Ekstrand <faith.ekstr...@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26035>

---

 src/nouveau/vulkan/nvk_cmd_buffer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/nouveau/vulkan/nvk_cmd_buffer.c 
b/src/nouveau/vulkan/nvk_cmd_buffer.c
index f93e6da6899..b6d7ee3979a 100644
--- a/src/nouveau/vulkan/nvk_cmd_buffer.c
+++ b/src/nouveau/vulkan/nvk_cmd_buffer.c
@@ -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);

Reply via email to