From be76ee8c17770221262f5eb15f1a4efc6cc45426 Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Thu, 10 Nov 2022 12:01:27 +0200 Subject: [PATCH] Fix uninitialized blendConstants in ColorBlendState Components: Vulkan VK-GL-CTS issue: 4094 Affects: dEQP-VK.draw.* dEQP-VK.dynamic_state.* dEQP-VK.pipeline.* dEQP-VK.query_pool.* Change-Id: Ia39d960e0809420b9755c4242510c657fcf7838b --- external/vulkancts/modules/vulkan/draw/vktDrawCreateInfoUtil.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/external/vulkancts/modules/vulkan/draw/vktDrawCreateInfoUtil.cpp b/external/vulkancts/modules/vulkan/draw/vktDrawCreateInfoUtil.cpp index 187f900..bb40d5f 100644 --- a/external/vulkancts/modules/vulkan/draw/vktDrawCreateInfoUtil.cpp +++ b/external/vulkancts/modules/vulkan/draw/vktDrawCreateInfoUtil.cpp @@ -900,6 +900,7 @@ PipelineCreateInfo::ColorBlendState::ColorBlendState (const std::vector(m_attachments.size()); pAttachments = &m_attachments[0]; + deMemset(blendConstants, 0, sizeof(blendConstants)); } PipelineCreateInfo::ColorBlendState::ColorBlendState (deUint32 _attachmentCount, @@ -915,6 +916,7 @@ PipelineCreateInfo::ColorBlendState::ColorBlendState (deUint32 _attach logicOp = _logicOp; attachmentCount = static_cast(m_attachments.size()); pAttachments = &m_attachments[0]; + deMemset(blendConstants, 0, sizeof(blendConstants)); } PipelineCreateInfo::ColorBlendState::ColorBlendState (const vk::VkPipelineColorBlendStateCreateInfo& createInfo) @@ -927,6 +929,7 @@ PipelineCreateInfo::ColorBlendState::ColorBlendState (const vk::VkPipelineColorB logicOp = createInfo.logicOp; attachmentCount = static_cast(m_attachments.size()); pAttachments = &m_attachments[0]; + deMemset(blendConstants, 0, sizeof(blendConstants)); } PipelineCreateInfo::ColorBlendState::ColorBlendState (const ColorBlendState& createInfo, std::vector _blendConstants) -- 2.7.4