Fix VkDeviceSize -> size_t warning
authorPyry Haulos <phaulos@google.com>
Thu, 16 Jun 2016 16:01:47 +0000 (09:01 -0700)
committerPyry Haulos <phaulos@google.com>
Thu, 16 Jun 2016 16:01:47 +0000 (09:01 -0700)
external/vulkancts/modules/vulkan/api/vktApiCopiesAndBlittingTests.cpp

index 5a7299a..9793203 100644 (file)
@@ -2148,7 +2148,7 @@ ResolveImageToImage::ResolveImageToImage (Context& context, TestParams params)
                VK_CHECK(vk.bindBufferMemory(vkDevice, *vertexBuffer, vertexBufferAlloc->getMemory(), vertexBufferAlloc->getOffset()));
 
                // Load vertices into vertex buffer.
-               deMemcpy(vertexBufferAlloc->getHostPtr(), vertices.data(), vertexDataSize);
+               deMemcpy(vertexBufferAlloc->getHostPtr(), vertices.data(), (size_t)vertexDataSize);
                flushMappedMemoryRange(vk, vkDevice, vertexBufferAlloc->getMemory(), vertexBufferAlloc->getOffset(), vertexDataSize);
        }