summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan Villacis <juan.villacis@arm.com>2014-04-02 15:49:20 +0100
committerAmit Pundir <amit.pundir@linaro.org>2014-06-14 12:16:13 +0530
commit7c16b53677d04e31883d66741c88015b0cc51f82 (patch)
tree308e036ff1e293c88c16fa51f629e39d99d14c2c
parente4458a1b4da3d7ad87afced4b78b7587c39ea1b2 (diff)
downloadnative-linaro-armv8-20140531.tar.gz
AArch64: force SurfaceFlinger to use last egl configlinaro-armv8-20140531
This will force SurfaceFlinger to use the last egl config for HDLCD displays on Juno platforms. Depends on earlier patch 9e7fbb41c968fca031af18b8b87f54825f53ca83 . Change-Id: Iea5459785fa534c61d4724ae182789139b9c0142
-rw-r--r--services/surfaceflinger/RenderEngine/RenderEngine.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/services/surfaceflinger/RenderEngine/RenderEngine.cpp b/services/surfaceflinger/RenderEngine/RenderEngine.cpp
index 2871ce996a..264e6f0b1f 100644
--- a/services/surfaceflinger/RenderEngine/RenderEngine.cpp
+++ b/services/surfaceflinger/RenderEngine/RenderEngine.cpp
@@ -296,6 +296,11 @@ static status_t selectConfigForAttribute(EGLDisplay dpy, EGLint const* attrs,
return NO_ERROR;
}
}
+ // HACK: on Juno, force the last config to be used (see "0001-Fix-resolution-issues-for-Juno.patch")
+ ALOGI("no matching config found, selecting last one");
+ *outConfig = configs[n-1];
+ delete [] configs;
+ return NO_ERROR;
} else {
// just pick the first one
*outConfig = configs[0];