diff --git a/system/vulkan_enc/AndroidHardwareBuffer.cpp b/system/vulkan_enc/AndroidHardwareBuffer.cpp index fd04797a0eefb0b71ad50e1e018ee3ef29a4fd60..05f14f1f3a3f9246592492a7dd94cd8c73c7f0d1 100644 --- a/system/vulkan_enc/AndroidHardwareBuffer.cpp +++ b/system/vulkan_enc/AndroidHardwareBuffer.cpp @@ -76,10 +76,8 @@ VkResult getAndroidHardwareBufferPropertiesANDROID( return VK_ERROR_INVALID_EXTERNAL_HANDLE; } - ahbFormatProps->format = - vk_format_from_android(desc.format); - - ahbFormatProps->externalFormat = VK_FORMAT_G8B8G8R8_422_UNORM; + ahbFormatProps->format = VK_FORMAT_UNDEFINED; + ahbFormatProps->externalFormat = desc.format; // The formatFeatures member must include // VK_FORMAT_FEATURE_SAMPLED_IMAGE_BIT and at least one of