From: Jason Ekstrand Date: Wed, 20 Jan 2016 15:56:48 +0000 (-0800) Subject: anv/meta: fix UpdateBuffer in the case where we do multiple updates X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=59ef7c6507b797447420fe308d7819605342119d;p=mesa.git anv/meta: fix UpdateBuffer in the case where we do multiple updates --- diff --git a/src/vulkan/anv_meta.c b/src/vulkan/anv_meta.c index 3331d3abe08..9e13299e3a2 100644 --- a/src/vulkan/anv_meta.c +++ b/src/vulkan/anv_meta.c @@ -920,6 +920,7 @@ void anv_CmdUpdateBuffer( copy_size / bs, 1, format); dataSize -= copy_size; + dstOffset += copy_size; pData = (void *)pData + copy_size; } }