summaryrefslogtreecommitdiff
path: root/libs/hwui/renderthread/EglManager.cpp
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2017-11-29 09:26:31 -0600
committerDmitry Shmidt <dimitrysh@google.com>2017-12-12 16:41:27 -0800
commit74883abde36d24425949d5c01504734ce3238cb4 (patch)
tree3fafe66020cb74ade9887a500f38cf4819449bfc /libs/hwui/renderthread/EglManager.cpp
parentd87c6b51f55985e343cf96f57b06e4adebf53d25 (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>
Diffstat (limited to 'libs/hwui/renderthread/EglManager.cpp')
-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 848c6a81d2b7..5b87e1013baf 100644
--- a/libs/hwui/renderthread/EglManager.cpp
+++ b/libs/hwui/renderthread/EglManager.cpp
@@ -239,9 +239,9 @@ void EglManager::loadConfigs() {
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;
}
}
}