From 59ef7c6507b797447420fe308d7819605342119d Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Wed, 20 Jan 2016 07:56:48 -0800 Subject: [PATCH] anv/meta: fix UpdateBuffer in the case where we do multiple updates --- src/vulkan/anv_meta.c | 1 + 1 file changed, 1 insertion(+) 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; } } -- 2.30.2