dEQP-VK.dynamic_state tests: fix sizeof(size) bug
authorSlawomir Cygan <slawomir.cygan@intel.com>
Thu, 22 Sep 2016 14:33:02 +0000 (16:33 +0200)
committerPyry Haulos <phaulos@google.com>
Thu, 22 Sep 2016 18:52:10 +0000 (14:52 -0400)
Change-Id: I7e90b30a88bb59bbe73fec00ecb8ce0fd92ac1f0

external/vulkancts/modules/vulkan/dynamic_state/vktDynamicStateDSTests.cpp
external/vulkancts/modules/vulkan/dynamic_state/vktDynamicStateRSTests.cpp

index 5fe145d419891cec08bdc6bf6a653b898d96722f..67e2244bc16ad52669f4f3f6444641b8758cddb6 100644 (file)
@@ -277,7 +277,7 @@ protected:
                vk::flushMappedMemoryRange(m_vk, device,
                        m_vertexBuffer->getBoundMemory().getMemory(),
                        m_vertexBuffer->getBoundMemory().getOffset(),
-                       sizeof(dataSize));
+                       dataSize);
 
                const CmdPoolCreateInfo cmdPoolCreateInfo(m_context.getUniversalQueueFamilyIndex());
                m_cmdPool = vk::createCommandPool(m_vk, device, &cmdPoolCreateInfo);
index 016d71549c31a46483033db2cf80679a581505e1..1102eda9d4257cadd3427c8e6ab21bc21b0b47dc 100644 (file)
@@ -249,7 +249,7 @@ protected:
                vk::flushMappedMemoryRange(m_vk, device,
                                                                   m_vertexBuffer->getBoundMemory().getMemory(),
                                                                   m_vertexBuffer->getBoundMemory().getOffset(),
-                                                                  sizeof(dataSize));
+                                                                  dataSize);
 
                const CmdPoolCreateInfo cmdPoolCreateInfo(m_context.getUniversalQueueFamilyIndex());
                m_cmdPool = vk::createCommandPool(m_vk, device, &cmdPoolCreateInfo);