Skip to content
Snippets Groups Projects
Commit 4b725781 authored by Roman Kiryanov's avatar Roman Kiryanov
Browse files

Set format in getAndroidHardwareBufferPropertiesANDROID


We need to set the 'format' field if no external format
is provided.

Bug: 131176903
Test: android.graphics.cts.BasicVulkanGpuTest# \
Test:     testBasicBufferImportAndRenderingExplicitFormat \
Test:     [AHARDWAREBUFFER_FORMAT_R8G8B8A8_UNORM]
Change-Id: I7c11c0e8babf87f8a55e5f8e91df739c2d8ef153
Merged-In: I5a32f4ab0714704a0e3f8dfd3998d6efba66b3e9
Signed-off-by: default avatarRoman Kiryanov <rkir@google.com>
parent f1cf31b8
No related branches found
No related tags found
No related merge requests found
...@@ -76,7 +76,7 @@ VkResult getAndroidHardwareBufferPropertiesANDROID( ...@@ -76,7 +76,7 @@ VkResult getAndroidHardwareBufferPropertiesANDROID(
return VK_ERROR_INVALID_EXTERNAL_HANDLE; return VK_ERROR_INVALID_EXTERNAL_HANDLE;
} }
ahbFormatProps->format = VK_FORMAT_UNDEFINED; ahbFormatProps->format = vk_format_from_android(desc.format);
ahbFormatProps->externalFormat = desc.format; ahbFormatProps->externalFormat = desc.format;
// The formatFeatures member must include // The formatFeatures member must include
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment