Fix a missing VkComponentMapping field of the VkAndroidHardwareBufferFormatPropertiesANDROID
structure. This is causing incorrect values to be populated to the
structure, as well as, a stack overwrite of other stack-located locals.
Affects:
dEQP-VK.api.external.memory.android_hardware_buffer.image_formats.r8g8b8a8_unorm
dEQP-VK.api.external.memory.android_hardware_buffer.image_formats.r5g6b5_unorm_pack16
dEQP-VK.api.external.memory.android_hardware_buffer.image_formats.r16g16b16a16_sfloat
dEQP-VK.api.external.memory.android_hardware_buffer.image_formats.a2b10g10r10_unorm_pack32
Components: Vulkan
VK-GL-CTS issue: 1305
VK-GL-CTS issue: 1316
Bug: b/
112705952
Change-Id: I81eb1cc605912bf0adebe67b65d7ccdd31236ec9
(cherry picked from Khronos commit
0116a17ddb4eb4f25624698bc0ba1c68e51a6950)
s << "\tformat = " << value.format << '\n';
s << "\texternalFormat = " << value.externalFormat << '\n';
s << "\tformatFeatures = " << getFormatFeatureFlagsStr(value.formatFeatures) << '\n';
+ s << "\tsamplerYcbcrConversionComponents = " << value.samplerYcbcrConversionComponents << '\n';
s << "\tsuggestedYcbcrModel = " << value.suggestedYcbcrModel << '\n';
s << "\tsuggestedYcbcrRange = " << value.suggestedYcbcrRange << '\n';
s << "\tsuggestedXChromaOffset = " << value.suggestedXChromaOffset << '\n';
VkFormat format;
deUint64 externalFormat;
VkFormatFeatureFlags formatFeatures;
+ VkComponentMapping samplerYcbcrConversionComponents;
VkSamplerYcbcrModelConversion suggestedYcbcrModel;
VkSamplerYcbcrRange suggestedYcbcrRange;
VkChromaLocation suggestedXChromaOffset;
vk::VK_FORMAT_UNDEFINED,
0u,
0u,
+ { vk::VK_COMPONENT_SWIZZLE_IDENTITY, vk::VK_COMPONENT_SWIZZLE_IDENTITY, vk::VK_COMPONENT_SWIZZLE_IDENTITY, vk::VK_COMPONENT_SWIZZLE_IDENTITY },
vk::VK_SAMPLER_YCBCR_MODEL_CONVERSION_RGB_IDENTITY,
vk::VK_SAMPLER_YCBCR_RANGE_ITU_FULL,
vk::VK_CHROMA_LOCATION_COSITED_EVEN,
VkFormat format;
uint64_t externalFormat;
VkFormatFeatureFlags formatFeatures;
+ VkComponentMapping samplerYcbcrConversionComponents;
VkSamplerYcbcrModelConversion suggestedYcbcrModel;
VkSamplerYcbcrRange suggestedYcbcrRange;
VkChromaLocation suggestedXChromaOffset;