From f4289262ed3eece585f3685c5ed131a6c06cc77f Mon Sep 17 00:00:00 2001 From: Arkadiusz Sarwa Date: Fri, 8 Sep 2017 15:33:41 +0200 Subject: [PATCH] Fix build errors with uint64_t and default constructor Components: Vulkan Change-Id: Ie6b26ba735838d7ba3214a9f86f455697b2f43c9 --- .../vulkan/protected_memory/vktProtectedMemBufferValidator.hpp | 6 +++--- .../modules/vulkan/protected_memory/vktProtectedMemUtils.cpp | 2 +- .../modules/vulkan/protected_memory/vktProtectedMemUtils.hpp | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/external/vulkancts/modules/vulkan/protected_memory/vktProtectedMemBufferValidator.hpp b/external/vulkancts/modules/vulkan/protected_memory/vktProtectedMemBufferValidator.hpp index 8547ab3..bd96d42 100644 --- a/external/vulkancts/modules/vulkan/protected_memory/vktProtectedMemBufferValidator.hpp +++ b/external/vulkancts/modules/vulkan/protected_memory/vktProtectedMemBufferValidator.hpp @@ -76,20 +76,19 @@ enum BufferType { void initBufferValidatorPrograms (vk::SourceCollections& programCollection, TestType testType, BufferType bufferType); vk::VkDescriptorType getDescriptorType (BufferType bufferType); - template class BufferValidator { public: BufferValidator (const ValidationData data) : m_refData (data) - , m_refDataStorage () + , m_refDataStorage (*reinterpret_cast*>( &std::vector(sizeof(ValidationDataStorage), '\0').front())) , m_bufferType (SAMPLER_BUFFER) { } BufferValidator (const ValidationDataStorage data) - : m_refData () + : m_refData (*reinterpret_cast*>( &std::vector(sizeof(ValidationData), '\0').front())) , m_refDataStorage (data) , m_bufferType (STORAGE_BUFFER) { @@ -107,6 +106,7 @@ private: const ValidationData m_refData; const ValidationDataStorage m_refDataStorage; + BufferType m_bufferType; }; diff --git a/external/vulkancts/modules/vulkan/protected_memory/vktProtectedMemUtils.cpp b/external/vulkancts/modules/vulkan/protected_memory/vktProtectedMemUtils.cpp index 884f614..585bd06 100644 --- a/external/vulkancts/modules/vulkan/protected_memory/vktProtectedMemUtils.cpp +++ b/external/vulkancts/modules/vulkan/protected_memory/vktProtectedMemUtils.cpp @@ -436,7 +436,7 @@ vk::VkResult queueSubmit (ProtectedContext& context, vk::VkQueue queue, vk::VkCommandBuffer cmdBuffer, vk::VkFence fence, - uint64_t timeout) + deUint64 timeout) { const vk::DeviceInterface& vk = context.getDeviceInterface(); const vk::VkDevice& device = context.getDevice(); diff --git a/external/vulkancts/modules/vulkan/protected_memory/vktProtectedMemUtils.hpp b/external/vulkancts/modules/vulkan/protected_memory/vktProtectedMemUtils.hpp index 3280839..74011f2 100644 --- a/external/vulkancts/modules/vulkan/protected_memory/vktProtectedMemUtils.hpp +++ b/external/vulkancts/modules/vulkan/protected_memory/vktProtectedMemUtils.hpp @@ -109,7 +109,7 @@ vk::VkResult queueSubmit (ProtectedContext& context, vk::VkQueue queue, vk::VkCommandBuffer cmdBuffer, vk::VkFence fence, - uint64_t timeout); + deUint64 timeout); vk::Move makeDescriptorSet (const vk::DeviceInterface& vk, const vk::VkDevice device, -- 2.7.4