turnip : Fix wrong offset calculation for xfb buffer.
authorHyunjun Ko <zzoon@igalia.com>
Mon, 6 Apr 2020 05:14:01 +0000 (05:14 +0000)
committerMarge Bot <eric+marge@anholt.net>
Thu, 23 Apr 2020 01:14:19 +0000 (01:14 +0000)
In vulkan, offsets are already provided through the api
vkCmdBindTransformFeedbackBuffersEXT, so this is duplicated
calculation.

Fixes : 9ff1959ca5d24afe48bec20edf7e3d059d254134

Signed-off-by: Hyunjun Ko <zzoon@igalia.com>
Reviewed-by: Brian Ho <brian@brkho.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4604>

src/freedreno/vulkan/tu_cmd_buffer.c

index f830f07e2ef991f9d9e6a09c3db0df1109a1f0bb..b4539745a8e28b9c5e12f0ffb45ce4ee2e2ae2d2 100644 (file)
@@ -2817,8 +2817,6 @@ tu6_emit_streamout(struct tu_cmd_buffer *cmd, struct tu_cs *cs)
       tu_cs_emit_regs(cs, A6XX_VPC_SO_BUFFER_SIZE(i, buf->size));
 
       if (cmd->state.streamout_reset & (1 << i)) {
-         offset *= tf->stride[i];
-
          tu_cs_emit_regs(cs, A6XX_VPC_SO_BUFFER_OFFSET(i, offset));
          cmd->state.streamout_reset &= ~(1  << i);
       } else {