diff options
author | Dima Zavin <dima@android.com> | 2010-03-02 15:39:44 -0800 |
---|---|---|
committer | Dima Zavin <dima@android.com> | 2010-03-02 16:44:46 -0800 |
commit | 6b1806b2d3dac4ac11c4c5d306320fcabf5fac1e (patch) | |
tree | 50774c24836a53a008eb18e029ceb8f6c1385f27 /libs/surfaceflinger | |
parent | bd80e560ac09c42b8081fe555d74a922ebca080a (diff) | |
download | frameworks_base-6b1806b2d3dac4ac11c4c5d306320fcabf5fac1e.zip frameworks_base-6b1806b2d3dac4ac11c4c5d306320fcabf5fac1e.tar.gz frameworks_base-6b1806b2d3dac4ac11c4c5d306320fcabf5fac1e.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.cpp | 7 |
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; |