summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Rob Herring <robh@kernel.org> 2017-11-29 09:26:31 -0600
committer Rob Herring <rob.herring@linaro.org> 2017-12-13 14:30:21 +0000
commit4ee4d209089a4b46c9ef7c4c8b51ad352ffea68a (patch)
tree5cd58d15a45bbe9433103903aeb21e0a9babd777
parent125d736bbe356383656223e79e23df383bd63d1d (diff)
renderthread: relax error handling for wide gamut EGL configs
It is valid to advertise EGL_EXT_pixel_format_float, but not have a the requested EGL config. Instead of aborting, fallback to the default behavior. Change-Id: I6c602233b627dc2070364434fece57d3d0aab435 Cc: Romain Guy <romainguy@google.com> Signed-off-by: Rob Herring <robh@kernel.org>
-rw-r--r--libs/hwui/renderthread/EglManager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/hwui/renderthread/EglManager.cpp b/libs/hwui/renderthread/EglManager.cpp
index 16d77364942e..bd4708da562a 100644
--- a/libs/hwui/renderthread/EglManager.cpp
+++ b/libs/hwui/renderthread/EglManager.cpp
@@ -223,9 +223,9 @@ void EglManager::loadConfigs() {
numConfigs = 1;
if (!eglChooseConfig(mEglDisplay, attribs16F, &mEglConfigWideGamut, numConfigs, &numConfigs)
|| numConfigs != 1) {
- LOG_ALWAYS_FATAL(
- "Device claims wide gamut support, cannot find matching config, error = %s",
+ ALOGE("Device claims wide gamut support, cannot find matching config, error = %s",
eglErrorString());
+ EglExtensions.pixelFormatFloat = false;
}
}
}