aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Marek <[email protected]>2020-04-08 19:43:24 -0400
committerMarge Bot <[email protected]>2020-04-09 02:05:52 +0000
commit420ca1e4a1814c86af5fabff8658526a6e2baab1 (patch)
tree818d51a22d07a0e85f29a3a964e1e38482c7383c
parente62f8ae15a34b51a1fe1aa5752034e3037646d33 (diff)
turnip: use buffer size instead of bo size for VFD_FETCH_SIZE
Signed-off-by: Jonathan Marek <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4224>
-rw-r--r--src/freedreno/vulkan/tu_cmd_buffer.c2
1 files changed, 1 insertions, 1 deletions
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),