From 607f907d47b04e9d61afafbe7af3b5e5612c5bf4 Mon Sep 17 00:00:00 2001 From: Tobin Ehlis Date: Tue, 2 Oct 2018 14:39:20 -0600 Subject: [PATCH] Vulkan: Add 565 configs for Android Generate GL_RGB565 internal format configs for Android VK. This allows apps requesting such formats to map to the appropriate corresponding Android internal pixel format. Bug: angleproject:2863 Change-Id: I18f119d6554a601037a40db27234bf33e0ada438 Reviewed-on: https://chromium-review.googlesource.com/c/1258083 Commit-Queue: Tobin Ehlis Reviewed-by: Geoff Lang Reviewed-by: Jamie Madill --- src/libANGLE/renderer/vulkan/android/DisplayVkAndroid.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libANGLE/renderer/vulkan/android/DisplayVkAndroid.cpp b/src/libANGLE/renderer/vulkan/android/DisplayVkAndroid.cpp index bf31b57ca..c90742368 100644 --- a/src/libANGLE/renderer/vulkan/android/DisplayVkAndroid.cpp +++ b/src/libANGLE/renderer/vulkan/android/DisplayVkAndroid.cpp @@ -47,7 +47,7 @@ SurfaceImpl *DisplayVkAndroid::createWindowSurfaceVk(const egl::SurfaceState &st egl::ConfigSet DisplayVkAndroid::generateConfigs() { - constexpr GLenum kColorFormats[] = {GL_RGBA8, GL_RGB8}; + constexpr GLenum kColorFormats[] = {GL_RGBA8, GL_RGB8, GL_RGB565}; constexpr EGLint kSampleCounts[] = {0}; return egl_vk::GenerateConfigs(kColorFormats, egl_vk::kConfigDepthStencilFormats, kSampleCounts, this);