Fix offset parameter for flushMappedMemoryRange
authorMark Adams <marka@nvidia.com>
Fri, 15 Jan 2016 22:02:39 +0000 (17:02 -0500)
committerMark Adams <marka@nvidia.com>
Fri, 15 Jan 2016 22:02:39 +0000 (17:02 -0500)
In ShaderRenderCaseInstance::uploadImage2D(), the allocation object was
being passed in instead of the offset. This resulted in attempting to
flush an invalid memory range.

external/vulkancts/modules/vulkan/shaderrender/vktShaderRender.cpp

index 93562a9..d45942f 100644 (file)
@@ -813,7 +813,7 @@ de::MovePtr<Allocation> ShaderRenderCaseInstance::uploadImage2D (const tcu::Text
 
        tcu::copy(destAccess, access);
 
-       flushMappedMemoryRange(vk, vkDevice, allocation->getMemory(), allocation, layout.size);
+       flushMappedMemoryRange(vk, vkDevice, allocation->getMemory(), allocation->getOffset(), layout.size);
 
        return allocation;
 }