From: Hyunjun Ko Date: Mon, 6 Apr 2020 05:14:01 +0000 (+0000) Subject: turnip : Fix wrong offset calculation for xfb buffer. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e892733b80fb2ecf4f48787116e47b8230fcf951;p=mesa.git turnip : Fix wrong offset calculation for xfb buffer. In vulkan, offsets are already provided through the api vkCmdBindTransformFeedbackBuffersEXT, so this is duplicated calculation. Fixes : 9ff1959ca5d24afe48bec20edf7e3d059d254134 Signed-off-by: Hyunjun Ko Reviewed-by: Brian Ho Part-of: --- diff --git a/src/freedreno/vulkan/tu_cmd_buffer.c b/src/freedreno/vulkan/tu_cmd_buffer.c index f830f07e2ef..b4539745a8e 100644 --- a/src/freedreno/vulkan/tu_cmd_buffer.c +++ b/src/freedreno/vulkan/tu_cmd_buffer.c @@ -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 {