From 420ca1e4a1814c86af5fabff8658526a6e2baab1 Mon Sep 17 00:00:00 2001 From: Jonathan Marek Date: Wed, 8 Apr 2020 19:43:24 -0400 Subject: [PATCH] turnip: use buffer size instead of bo size for VFD_FETCH_SIZE Signed-off-by: Jonathan Marek Part-of: --- src/freedreno/vulkan/tu_cmd_buffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/freedreno/vulkan/tu_cmd_buffer.c b/src/freedreno/vulkan/tu_cmd_buffer.c index e629c941ef2..1a01e67267b 100644 --- a/src/freedreno/vulkan/tu_cmd_buffer.c +++ b/src/freedreno/vulkan/tu_cmd_buffer.c @@ -3443,7 +3443,7 @@ tu6_bind_draw_states(struct tu_cmd_buffer *cmd, const VkDeviceSize offset = buf->bo_offset + cmd->state.vb.offsets[binding]; const VkDeviceSize size = - offset < buf->bo->size ? buf->bo->size - offset : 0; + offset < buf->size ? buf->size - offset : 0; tu_cs_emit_regs(cs, A6XX_VFD_FETCH_BASE(i, .bo = buf->bo, .bo_offset = offset), -- 2.30.2