Commit f120c92a by Nicolas Capens Committed by Alexis Hétu

Add support for RGBA16F external images.

Bug b/75778024 Change-Id: Idf17c094ef858b3712839ffe335dc943cd0bd084 Reviewed-on: https://swiftshader-review.googlesource.com/17828Tested-by: 's avatarNicolas Capens <nicolascapens@google.com> Reviewed-by: 's avatarAlexis Hétu <sugoi@google.com>
parent e12d27ca
......@@ -219,6 +219,9 @@ inline GLenum GLPixelFormatFromAndroid(int halFormat)
#ifdef GRALLOC_MODULE_API_VERSION_0_2
case HAL_PIXEL_FORMAT_YCbCr_420_888: return SW_YV12_BT601;
#endif
#if PLATFORM_SDK_VERSION >= 26
case HAL_PIXEL_FORMAT_RGBA_FP16: return GL_RGBA16F;
#endif
case HAL_PIXEL_FORMAT_RGB_888: // Unsupported.
default:
ALOGE("Unsupported EGL image format %d", halFormat); ASSERT(false);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment