anv/meta: fix UpdateBuffer in the case where we do multiple updates
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 20 Jan 2016 15:56:48 +0000 (07:56 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 20 Jan 2016 15:56:48 +0000 (07:56 -0800)
src/vulkan/anv_meta.c

index 3331d3abe08c9aa563a58e6d476bf358cf9ec739..9e13299e3a23d924d9bf0f6ca9207a877aff271b 100644 (file)
@@ -920,6 +920,7 @@ void anv_CmdUpdateBuffer(
                      copy_size / bs, 1, format);
 
       dataSize -= copy_size;
+      dstOffset += copy_size;
       pData = (void *)pData + copy_size;
    }
 }