summaryrefslogtreecommitdiffstats
path: root/libs/surfaceflinger
diff options
context:
space:
mode:
authorDima Zavin <dima@android.com>2010-03-02 15:39:44 -0800
committerDima Zavin <dima@android.com>2010-03-02 16:44:46 -0800
commit4fe6ac33d14ba3998fff5f289d36b0f9dd67fa28 (patch)
tree74e1ffb9104e2c6d605cff34f71a2aa28482451e /libs/surfaceflinger
parent32f027250bcc3cfff26c3648750696ce85f07136 (diff)
downloadframeworks_native-4fe6ac33d14ba3998fff5f289d36b0f9dd67fa28.zip
frameworks_native-4fe6ac33d14ba3998fff5f289d36b0f9dd67fa28.tar.gz
frameworks_native-4fe6ac33d14ba3998fff5f289d36b0f9dd67fa28.tar.bz2
surfaceflinger: remove un-cached buffers hack for Adreno
Change-Id: I5ae4e74bfa3e25b55be2cddf7b3c51368a140ab9 Signed-off-by: Dima Zavin <dima@android.com>
Diffstat (limited to 'libs/surfaceflinger')
-rw-r--r--libs/surfaceflinger/DisplayHardware/DisplayHardware.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/libs/surfaceflinger/DisplayHardware/DisplayHardware.cpp b/libs/surfaceflinger/DisplayHardware/DisplayHardware.cpp
index d9d9bfe..5969617 100644
--- a/libs/surfaceflinger/DisplayHardware/DisplayHardware.cpp
+++ b/libs/surfaceflinger/DisplayHardware/DisplayHardware.cpp
@@ -246,10 +246,15 @@ void DisplayHardware::init(uint32_t dpy)
LOGI("version : %s", glGetString(GL_VERSION));
LOGI("extensions: %s", gl_extensions);
- if (strstr(gl_renderer, "Adreno")) {
+#if 0
+ // for drivers that don't have proper support for flushing cached buffers
+ // on gralloc unlock, uncomment this block and test for the specific
+ // renderer substring
+ if (strstr(gl_renderer, "<some vendor string>")) {
LOGD("Assuming uncached graphics buffers.");
mFlags &= ~CACHED_BUFFERS;
}
+#endif
if (strstr(gl_extensions, "GL_ARB_texture_non_power_of_two")) {
mFlags |= NPOT_EXTENSION;